////////////////////////////////////////////////////////////////////////////////////
//  rolloverLIB 1.0  --  This notice must be left untouched at all times.
//  Copyright Stewart V. Wright 2000.
//
//  By Stewart V. Wright (svwright@bigfoot.com).  Last modified 22 August 2000.
//  This was created from bits-and-pieces that I have picked up from all over the
//  place.  Thus, the people that have unknowingly contributed will remain nameless
//  (as I don't know who they are!)
//
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You can obtain a copy of the GNU General Public License from the GNU web site
//  http://www.gnu.org, or by writing to the Free Software Foundation, Inc.,
//  675 Mass Ave, Cambridge, MA 02139, USA.
//
//  Please give credit on sites that use rolloverLIB and submit changes of the
//  script so other people can use them as well.
//  This script is free to use, don't abuse.
////////////////////////////////////////////////////////////////////////////////////


////////////////////////////////////////////////////////////////////////////////////
//
//    USAGE :
//
//  Place the following in the body of your document...
//
//  <SCRIPT LANGUAGE="JavaScript" SRC="JScripts/rolloverLIB.js"></SCRIPT>
//  <SCRIPT LANGUAGE="JavaScript">
//  <!--  Hide this from old browsers...
//  levelMod = "images/";
//
//  if (iechecker == 0){
//
//        main1_on = new Image(39, 132);
//        main1_on.src = levelMod  + 'on.jpg';
//        main1_off = new Image(39, 132);
//        main1_off.src = levelMod + 'off.jpg';
//  //-->
//  }
//  </script>	
//
//  Add this on the 1st page - it's a popup warning if the browser
//  won't work properly.
//
//  <script language="JavaScript">
//  <!--  Check to see if the browser is OK...
//     AlertBrowser();
//  // -->
//  </script>
//
//  Then where you want the rollover...  (for example...)
//
//  <a href="page1.html" onMouseOver="on('main1_'); return true" 
//   onMouseout="off('main1_')"><img name="main1_" src="images/on.jpg"
//   width="39" height="132" border="0" /></a>
//
//  NOTE: The choice of "main1_" is arbitrary.  Call them anything you want, just
//        remember to be consistent and change ALL the main1_'s ! 
////////////////////////////////////////////////////////////////////////////////////

var browserver = parseInt(navigator.appVersion)
var iechecker = 0;

var levelMod = "";
//  levelMod allows you to change the location of where you store your images.
//  If for instance, you have all your images stored in images (as I do), you can
//  just add the following line to your <script> listed above :
//  levelMod = "images/";

checkbrowser()

function checkbrowser(){
   if(navigator.appName == "Microsoft Internet Explorer" && browserver < 4){
        iechecker = 1;
   }
}

function AlertBrowser(){
   if(navigator.appName == "Microsoft Internet Explorer" && browserver < 4){
        iechecker = 1;
        alert('WARNING!  Your browser is an old version of Internet Explorer.\nThis version DOES NOT obey international standards.\nYou will not be able to see the technology of this page at work.\nPlease upgrade to IE4.0 (or greater), Netscape or other\nappropriate browser.');
    }
}

function on(node_name){ 
    if( iechecker == 0) {
        imgOn  = eval(node_name + 'on.src');
       
      if(document [node_name].src) {
          document [node_name].src  = imgOn;
//          overlib('List of contact details for<br />&nbsp;&curren;&nbsp;AIP2000 Congress Organisers<br /> (including Conference Secretariat)<br />&nbsp;&curren;&nbsp;The Individual Conferences',CAPTION,'Congress Contacts',LEFT);
      }
      return true;
    }
}

function off(node_name){ 
        imgOff  = eval(node_name + 'off.src') ;
       
    if( iechecker == 0) {
        if(document [node_name].src){
            document [node_name].src  = imgOff;
//            nd();
        }
        return true;
    }
}
