// Funtion to display image in a popup window (old version)
function DisplayImageEx(image_file, _title, _description)
{
  var x;
  var y;
  var cx;
  var cy;

  var title_ex = "Zeus for Windows - " + _title;

  var ua   = window.navigator.userAgent;
  var msie = ua.indexOf("MSIE");

  if (msie > 0)
  {
    // Microsoft Internet Explorer
    x  = 50;
    y  = 50;

    picture = new Image();
    picture.src = image_file;

    cx = picture.width  + 140;
    cy = picture.height + 140;

    if (cx < 200) cx = 700;
    if (cy < 200) cy = 600;
  }
  else
  {
    // is other browser
    x  = 50;
    y  = 50;
    cx = 700;
    cy = 600;
  }

  the_window = window.open('', 'ImageWindow', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=no,width='+cx+',height='+cy+',top='+y+',left='+x);

  the_window.document.open();
  the_window.document.write("<HTML>");
  the_window.document.write("<HEAD>");
  the_window.document.write("<TITLE>", title_ex, "</TITLE>");
  the_window.document.write("</HEAD>");
  the_window.document.write("<BODY>");
  the_window.document.write("<FONT SIZE=-1 face='Verdana, ARIAL, ARIAL, HELVETICA'>");
  the_window.document.write("<P>", _description, "</P>");
  the_window.document.write("</FONT>");
  the_window.document.write("<P><IMG align=center src='", image_file, "' border='0'></A></P>");
  the_window.document.write("</BODY>");
  the_window.document.write("</HTML>");
  the_window.document.close();

  the_window.resizeTo(cx, cy);
  the_window.focus();
}

function quote(author, text)
{
    this.author = author;
    this.text   = text;
}

//-- the Zeus quotes
var zeus_quotes = new Array();
zeus_quotes[ 0] = new quote("Alan Stewart"               , "I want to thank you for all the work you've done in creating Zeus. I tried Codewright, I tried Zeus, and I tried CRiSPY. Zeus was the one that I spent any time with, easily customizing it to behave the way I wanted it too. I'm having a great time, having fun just checking everything out in Zeus! Thanks!");
zeus_quotes[ 1] = new quote("Alex Shtol"                 , "You have made a great product! For a long time I have been trying to find a GOOD Programmers text editor, and now I can say - THIS IS THE BEST!");
zeus_quotes[ 2] = new quote("ALeX"                       , "I've just downloaded Zeus at ZDNet's hotfiles.com and so far I like it. This is a text editor made with the programmer in mind and not just another cute notepad replacement with toolbars.");
zeus_quotes[ 3] = new quote("Anders Rehnvall"            , "I've been using Zeus as my main source-code editor every day for quite a while now, and I'm very happy with it. You've done a great job !");
zeus_quotes[ 4] = new quote("Anonymous"                  , "Your's is the best Programmers editor I've ever used. Thanks for your efforts!");
zeus_quotes[ 5] = new quote("Bob Koepke"                 , "We just downloaded the trial copy of Zeus - the user interface is excellent");
zeus_quotes[ 6] = new quote("Bruce B. Buckley"           , "I happened to find the Zeus editor listed on www.python.org, and after briefly evaluating most of the others, I purchased Zeus for my new software development efforts with Python.... the more I use Zeus the better I like it.");
zeus_quotes[ 7] = new quote("Carleton Croft"             , "Being a Clipper programmer for 15 years, I am delighted to have found Zeus after looking at and test driving many other products. Once again congratulations on a great product.");
zeus_quotes[ 8] = new quote("Cherno Jagne"               , "First of all may I say that I've been evaluating your Zeus editor and I just cannot describe how useful I've found it! It can do pretty much anything I would want in a programming text editor.");
zeus_quotes[ 9] = new quote("Daniel Eastham"             , "I have been using your Zeus text editor for several weeks now and have just received a registered version. Since a programmer uses a text editor so much, it's important to be able to adequately evaluate a product before deciding to keep it. I think the shareware approach for this type of software is ideal and I have decided that this is the best text editor for me (I evaluated about 10 of them). Zeus is now my standard editor.");
zeus_quotes[10] = new quote("Dave Doran"                 , "I want to congratulate you on creating such a smooth product. There are very few utilities that I consider worth registering but every so often, a little gem like this comes along.");
zeus_quotes[11] = new quote("Dave Phelps"                , "I purchased your Zeus editor a few weeks ago and am most favourably impressed. I plan to replace Brief with it and make it my standard editor. Well done!");
zeus_quotes[12] = new quote("David Albert"               , "I can't go back to the other limited function freeware editors I was using before Zeus.");
zeus_quotes[13] = new quote("David Burgess"              , "Let me take the opportunity to inform you how much I appreciate the editor, BRIEF lives! Thank you.");
zeus_quotes[14] = new quote("David Frantz"               , "By the way, I would like to take this chance to thank you for an excellent product.");
zeus_quotes[15] = new quote("David Walls"                , "The Brief-compatible keystrokes are a blessing.");
zeus_quotes[16] = new quote("Dr William Valdar"          , "Zeus is the first piece of pay software I've ever considered worth buying online and I now do all my windows development using it.");
zeus_quotes[17] = new quote("Dr. Dietrich Borchardt"     , "It seems to be the perfect 'Brief' under Windows!");
zeus_quotes[18] = new quote("Frank Rehill"               , "Thank you for your excellent work. I have been using Brief in DOS and recently found Zeus----great; thanks for the continuity.");
zeus_quotes[19] = new quote("Fred Petersen"              , "I thought I'd drop a note to let you know that I love your Zeus editor. It fits exactly what I'm working on and will make things a lot easier. I've included a keyword file for the VERILOG language, which is what I am using it for.");
zeus_quotes[20] = new quote("Gary Shay"                  , "I recently registered my version of Zeus and find it to be exceedingly useful. Until we found it, our development was done using the standard DOS editor or Windows Notepad, both of which are as unfriendly as one can get. Your product has made writing code mechanically much easier for me.");
zeus_quotes[21] = new quote("George Jamrok"              , "Great Product! I've been using Brief for a long time and I like the improvements in Zeus.");
zeus_quotes[22] = new quote("Ian Baird"                  , "Many thanks for your excellent product. I tested it late last year as a development platform for the GE Fanuc macro executor customisation tools, and purchased my personal copy this January. We now recommend ZeusEdit to all our UK customers as the workbench to use with our macro executor compiler.");
zeus_quotes[23] = new quote("Ian Holden"                 , "Zeus is the best general purpose programmers editor I've come across!");
zeus_quotes[24] = new quote("Jay"                        , "As a 20 year 'brief' user, I must admit that it was great but with this product, you have eclipsed it by far. Good job...");
zeus_quotes[25] = new quote("Jeff McKay"                 , "Just acquired Zeusedit - very nice, it's great not to feel like a dinosaur anymore for using my 13 year old copy of Brief/DOS.");
zeus_quotes[26] = new quote("Jim Wilson"                 , "Just downloaded a copy of your text editor Zeus. I must say, I'm rather impressed. It appears to be quite a program, with good speed and a lot of useful features. Nice job.");
zeus_quotes[27] = new quote("Joel Richards"              , "When one finds a product as good as Zeus, it is hard not to support it :-) Seeing as how I'm a C++, Java, Oracle, etc. programmer, there isn't a day that goes by that I'm not using it! Keep up the great work!");
zeus_quotes[28] = new quote("Joerg Blattner"             , "I've downloaded and tested the shareware-version of Zeus. It's the best programmer-s editor I've ever seen. That's exactly what I'm looking for since I changed from DOS to Win NT. I'm using it for programming of Micro-controllers in Assembler and for Visual C++.");
zeus_quotes[29] = new quote("John J Pearce"              , "This is a terrific product. I thought I'd never give up Brief even in a Windows environment. Now I've got the keyboard working the way I always needed it. My fingers and thoughts operate at the Mozart level instead of at a nursery rhyme level.");
zeus_quotes[30] = new quote("John Mattison"              , "I would like to place on record that I have been very pleased with your editor as I am a programmer who has decided to eventually move into the 20th century and stop using my very very very very very old version of WordStar to edit my programs. I spent a fair amount of time looking at editors on the Internet and most of them don't even come close to yours. Well Done.");
zeus_quotes[31] = new quote("John Patrick Lestrade"      , "WOW! I have been a devoted qedit user for many years. However, I am very impressed with zeus and I will switch in the very near future.");
zeus_quotes[32] = new quote("Kevin Wittmer"              , "Back in 1998 I was living in Arizona and doing a little programming on the side. I came across Zeus and liked it so much I bought the tool. I used for about a two years before moving to IDE-based tools. In the last four months I have returned to the Zeus, version 3.7, and really enjoyed the improvements.");
zeus_quotes[33] = new quote("Larry Cuba"                 , "Congratulations on Zeus. It's a great (Python) editor. Just what I needed.");
zeus_quotes[34] = new quote("Lizette Padron"             , "You have a real 'snappy' editor!");
zeus_quotes[35] = new quote("Marc Carignan"              , "Finally! A real Programmers editor!");
zeus_quotes[36] = new quote("Mark Chamberlain"           , "Superb product by the way. I used to use QEdit back in the DOS 3.2 days, and this is the first editor (save that, PC program generally!) that I love as much.");
zeus_quotes[37] = new quote("Martin Head"                , "I am most impressed with Zeus and have been using it as my only Editor since getting the demo copy.");
zeus_quotes[38] = new quote("Michael D. Bartman"         , "This is the first editor I've found for NT that has the power to match what I get with TPU on my VMS system at work.");
zeus_quotes[39] = new quote("Mike Denney"                , "Just purchased Zeus. The Brief emulation is very good, thank you.");
zeus_quotes[40] = new quote("Mike Wynn"                  , "I'm very pleased with Zeus 3.50 I had been using Zeus 2.60 since it was released, as I found it to be the best Java editor at that time, IMHO it still is.");
zeus_quotes[41] = new quote("Nelson Stanley"             , "I have used Brief off and on for the last ten years, and using Zeus is like visiting an old friend (only better looking!). This is undoubtedly the most productive tool I have ever used bar none!");
zeus_quotes[42] = new quote("Paul Barton"                , "I LOVE this editor! Until I fell across you guys Windows was a nasty step down. The evaluation copy was so much fun that I haven't gotten any real work done for playing with it.");
zeus_quotes[43] = new quote("Perrault Jean-Paul"         , "Wow, Zeus is a kick ass programmer-s editor. Awesome!");
zeus_quotes[44] = new quote("Rachel Griffith"            , "I've recently purchased your Zeus editor, which I think is fantastic.");
zeus_quotes[45] = new quote("Rick Edwards"               , "Great product! I was having serious Brief withdrawal symptoms before I ran across Zeus.");
zeus_quotes[46] = new quote("Rick Landini"               , "I have been using Zeus for years. I love this editor.");
zeus_quotes[47] = new quote("Roger Horton"               , "I've been working a great deal with a large program in an environment called UniVerse, and your editor is such a great tool that I wanted to again express my gratitude.");
zeus_quotes[48] = new quote("Roger Horton"               , "What a great editor! - Exactly what I was looking for. I've been working a great deal with a large program in an environment called UniVerse, and your editor is such a great tool that I wanted to again express my gratitude..");
zeus_quotes[49] = new quote("Scott Boskovich"            , "First let me start by saying that yesterday I downloaded the Zeus Editor and am very impressed. So far I have 'played' with it for about three hours and consider it to be above par with most IDE's available.");
zeus_quotes[50] = new quote("Sean F. Becket"             , "Although I will not use your software's more robust c and c++ features for debugging and solving problems, I still love it because of the advanced features seldom found on this platform that allow ALL programmers (even those of SQL and PL/SQL) to ease and speed their work. Thank you again for a great product.");
zeus_quotes[51] = new quote("Sean LeBlanc"               , "It's been a while now that we've been using this product as registered users, and I must say, it's great! Sure beats the other options we had, which really weren't options. Keep up the good work...");
zeus_quotes[52] = new quote("Shane Powell"               , "I have been using Zeus for about two weeks now and I must say it's one of the best editors I've seen.");
zeus_quotes[53] = new quote("Simon Hunter"               , "I have been trying out your Zeus programming editor and it is excellent.");
zeus_quotes[54] = new quote("Stephen Swearingen"         , "I really love this program!");
zeus_quotes[55] = new quote("Steve Dinn"                 , "I'd like to say that I think Zeus is a great product. I program in Java and I haven't been able to find an editor that I was happy with until I downloaded the share ware version of Zeus. I found that I easily configured it for HTML editing as well.");
zeus_quotes[56] = new quote("Steve Feldner"              , "I wanted to tell you that the new version is FANTASTIC! You've outdone yourself!");
zeus_quotes[57] = new quote("Steve Pavarno"              , "I work from home on a complex web site in PHP with lots of small classes each stored in their own file. The only access to the development server is by FTP and HTTP, so the 'Open URL' in Zeus is awesome.");
zeus_quotes[58] = new quote("Steve Pavarno"              , "Love this editor: pasted 5400 lines from an email, deleted the first 20 columns of text, trimmed off the top and bottom and saved it to our web server all in about 30 seconds. It would have taken forever with Visual Notepad...");
zeus_quotes[59] = new quote("Steve Pavarno"              , "Thanks for creating such a useful tool. The Brief emulation is very good.");
zeus_quotes[60] = new quote("Storm Shearon"              , "Thank you very much for creating Zeus. This is my first update since I purchased a version several years ago. The product is great and I use it most every day.");
zeus_quotes[61] = new quote("Tim Shearer"                , "You're editor is the best, a co-worker just looked over my shoulder and was real impressed by just a couple of simple things I did.");
zeus_quotes[62] = new quote("Walt Niccoli"               , "I've been enjoying your program for quite some time now and have found it a much better editor than even Brief (never thought I'd be saying that).");
zeus_quotes[63] = new quote("William J. Blackmon"        , "Just ordered my copy. My search is over. You've obviously checked out your competition and included all the best features from each. Very robust and complete. Thank you!");
zeus_quotes[64] = new quote("William Yuknis"             , "I program in a variety of languages, and I always use Zeus because it's quick and simple. I love the powerful macro feature, often I do repetitive tasks and the macro feature saves wear and tear on my wrists.");
zeus_quotes[65] = new quote("Mac McDonald"               , "I think the highest praise that you can give an editor is that it is 'comfortable' and Zeus is certainly that for me. My fingers just 'know' how to use it. I used Brief as long as it was available and when it was discontinued, I switched to Emacs with a Brief emulator that I tweaked until it was workable. That was fine as long as I was working in C++, Java, or Perl, but the jumble that is PHP/HTML really causes problems. I never thought that I could find an editor that would give me the mixture of Brief and Emacs commands that I know and love. Zeus did it!");
zeus_quotes[66] = new quote("Jeff Long"                  , "I am looking forward to finally having a nice BRIEF compatible editor!");
zeus_quotes[67] = new quote("Jeffrey Bakke"              , "Beautifully written editor. Blows away Codewright, JCreator, SlickEdit and others I've tried.  Fast, simple, powerful.. keep up the good work.");
zeus_quotes[68] = new quote("Julio Carlos Sanchez Ortega", "Wow!!! This is a great programmer tool, the best windows editor!!!");
zeus_quotes[69] = new quote("Trevor Lea"                 , "I just want to drop a line to say, 'Zeus Rocks'! I have been on a quest for a good, low cost editor to replace CodeWright and some of our aging IDEs. What I found was a GREAT, low cost editor that does everything I need it to without being bloated with pointless features. Excellent job!");
zeus_quotes[70] = new quote("Kai Griffin"                , "I'm a 'refugee' from Borland C++ Builder's IDE, which crashes at the drop of a hat with projects that reach a certain size. I've tried a few different alternatives, and downloaded Zeus yesterday. I didn't need 45 days to evaluate it! Just 24 hours told me it was exactly what I needed for most of my work, meaning I only need to enter Borland's IDE for form design and debugging.");
zeus_quotes[71] = new quote("Knut Arne Storeide"         , "First, let me congratulate you with a most brilliant tool; it's the editor I always thought I had to make myself, but here I finally find an editor that has solid project management, supports different languages and compilers, incredible flexibility, is keyboard-centric and has endless possibilities for user customization. I especially like the smart templates and the possibility to script in a variety of languages.");
zeus_quotes[72] = new quote("Yvan Carrier"               , "I installed CS-RCS, awesome! I used to work with a command prompt RCSDOS (a GNU-RCS build) which is great, but to have Zeus take charge of my revisions is near heaven for me.");
zeus_quotes[73] = new quote("Mitch Altman"               , "I love Zeus! I've used version 2.6 for years, and I'm finally upgrading.");

// Real quote count
var num_quotes = 74;

// For testing only
//var num_quotes = 1;

// Funtion to display image in a popup window (old version)
function DisplayImage(image_name)
{
  var _title;
  var _image_file;
  var _image_ext;
  var _description;

  _image_ext = ".png"

  switch (image_name)
  {
    case 'zeusdog1':
      _title       = 'Zeus the Dog';
      _description = 'That&#146;s a good boy .....';
      _image_ext   = ".jpg"
      break;

    case 'zeusdog2':
      _title       = 'Zeus the Dog';
      _description = 'Here boy, sit, sit, sit, sit, ........';
      _image_ext   = ".jpg"
      break;

    case 'lookcolor':
      _title       = '';
      _description = '';
      break;

    case 'lookpeplace':
      _title       = '';
      _description = '';
      break;

    case 'lookclass':
      _title       = 'Class Browser';
      _description = 'The Class Browser takes the ctags database and displays the information into an easy to navigate tree display.';
      break;

    case 'lookcode':
      _title       = 'Code Completion';
      _description = 'The ctags database is also used to drive the lightning fast intellisensing, code completion feature.';
      break;

    case 'lookcomp':
      _title       = 'Compilers and Builders';
      _description = 'The compiler window captures the errors and warning produced by the compiler.';
      break;

    case 'lookdoc':
      _title       = 'Document Configuration Dialog';
      _description = 'Zeus comes with syntax highlighting pre-configured for a large number of languages.';
      break;

    case 'lookedit':
      _title       = 'Editor Configuration Dialog';
      _description = 'The look and feel of the editor is fully configurable, so Zeus can be made to work just the way you want it to work.';
      break;

    case 'lookfind':
      _title       = '';
      _description = '';
      break;

    case 'lookfold':
      _title       = 'Code Folding';
      _description = 'The code folding feature allows blocks of code to be hidden away, making it easier to read and understand the code.';
      break;

    case 'lookftp':
      _title       = 'FTP Configuration Dialog';
      _description = 'The seamless FTP file editing features makes editing remote files quick and easy.';
      break;

    case 'lookkeys':
      _title       = 'Keyboard Configuration Dialog';
      _description = 'Not only is the keyboard fully configurable, it comes pre-defined with mappings for some of the more common keyboards including Brief, Epsilon, Wordstar, MSVC, and EMACS.';
      break;

    case 'looklang':
      _title       = 'Language Configuration Dialog';
      _description = 'Even if your language of choice is not pre-configured, the document type configuration model makes it very simple to add a new languages configuration.' ;
      break;

    case 'lookmain':
      _title       = 'Editor Window';
      _description = 'The main editor window showing C++ syntax highlighting, but Zeus can handle also almost any programming language including C#, Ch, D, Java, Perl, Python, PHP just to name a few.';
      break;

    case 'looknav':
      _title       = 'File Navigator Window';
      _description = 'The navigator dialog provides an easy way to load files from disk. The navigator dialog can be run in docking and undocking mode.' ;
      break;

    case 'lookspace':
      _title       = 'Smart Templates in Action';
      _description =  'While the smart indenting and smart bracing makes for easy coding, the smart template makes light work of constructs like <B><I>if</I></B>, <B><I>for</I></B> and <B><I>while</I></B>, making the coding even easier.';
      break;

    case 'lookwork':
      _title       = 'Workspace Manager';
      _description = 'The Workspace Manager makes it easy to manage your project source files. The Workspace Manager also takes care of keeping the ctags database up to date.';
      break;

    default:
      _title       = 'Unknown';
      _description = 'Unknown';
      break;
  }

  // this is the file name
  image_file = './images/' + image_name + _image_ext;

  // display the image
  DisplayImageEx(image_file, _title, _description);
//  DisplayImageEx(image_file, _title, image_file);
}

// Funtion to display image in a popup window
function DisplayImage1(image_file, _title)
{
  picture = new Image();
  picture.src = image_file;

  var x  = 100;
  var y  = 100;
  var cx = picture.width + 20;
  var cy = picture.height + 20;

  the_window = window.open("", 'ImageWindow', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=no,width='+cx+',height='+cy+',top='+y+',left='+x);

  var txt_html = "<html><img src=" + image_file+ ">" + "</html>";
  the_window.document.write(txt_html);
}

// Funtion to display image in a popup window (old version)
function DisplayImage2(image_file, _title)
{
  picture = new Image();
  picture.src = image_file;

  var x  = 100;
  var y  = 100;
  var cx = picture.width + 20;
  var cy = picture.height + 20;

  the_window = window.open(image_file, 'ImageWindow', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=no,width='+cx+',height='+cy+',top='+y+',left='+x);
}

