<!--

var cellName=null;
var imageDir="../images/";

//set to main machine, after dev

//pre-load images if "Image" is defined


if(document.images)
   {
    var slope_IMG_01_off = new Image();
    slope_IMG_01_off.src = imageDir+"hotels.gif"; 
    var slope_IMG_01_on  = new Image();
    slope_IMG_01_on.src  = imageDir+"hotels_over.gif";
    var slope_IMG_01_txt  = new Image();
    slope_IMG_01_txt.src  = imageDir+"img_hotels_nc.jpg";

    var slope_IMG_02_off = new Image();
    slope_IMG_02_off.src = imageDir+"ncruises.gif"; 
    var slope_IMG_02_on  = new Image();
    slope_IMG_02_on.src  = imageDir+"ncruises_over.gif";
    var slope_IMG_02_txt  = new Image();
    slope_IMG_02_txt.src  = imageDir+"img_ncruises_nc.jpg";

    var slope_IMG_03_off = new Image();
    slope_IMG_03_off.src = imageDir+"rentals.gif"; 
    var slope_IMG_03_on  = new Image();
    slope_IMG_03_on.src  = imageDir+"rentals_over.gif";
    var slope_IMG_03_txt  = new Image();
    slope_IMG_03_txt.src  = imageDir+"img_rentals_nc.jpg";


    var slope_IMG_04_off = new Image();
    slope_IMG_04_off.src = imageDir+"diving.gif"; 
    var slope_IMG_04_on  = new Image();
    slope_IMG_04_on.src  = imageDir+"diving_over.gif";
    var slope_IMG_04_txt  = new Image();
    slope_IMG_04_txt.src  = imageDir+"img_diving_nc.jpg";

    var slope_IMG_05_off = new Image();
    slope_IMG_05_off.src = imageDir+"safari.gif"; 
    var slope_IMG_05_on  = new Image();
    slope_IMG_05_on.src  = imageDir+"safari_over.gif";
    var slope_IMG_05_txt  = new Image();
    slope_IMG_05_txt.src  = imageDir+"img_safari_nc.jpg";
    
    
     var slope_IMG_06_off = new Image();
    slope_IMG_06_off.src = imageDir+"packages.gif"; 
    var slope_IMG_06_on  = new Image();
    slope_IMG_06_on.src  = imageDir+"packages_over.gif";
    var slope_IMG_06_txt  = new Image();
    slope_IMG_06_txt.src  = imageDir+"img_packages_nc.jpg";


    var blank_text  = new Image();
    blank_text.src  = imageDir+"img_ncruises_nc.jpg";
   }

function over(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'slope1')
          {
           document[cellName].src = slope_IMG_01_on.src;
           document['explain'].src = slope_IMG_01_txt.src;
          }
       if(cellName == 'slope2')
          {
           document[cellName].src = slope_IMG_02_on.src;
           document['explain'].src = slope_IMG_02_txt.src;
          }
       if(cellName == 'slope3')
          {
           document[cellName].src = slope_IMG_03_on.src;
           document['explain'].src = slope_IMG_03_txt.src;
          }
       if(cellName == 'slope4')
          {
           document[cellName].src = slope_IMG_04_on.src;
           document['explain'].src = slope_IMG_04_txt.src;
          }
       if(cellName == 'slope5')
          {
           document[cellName].src = slope_IMG_05_on.src;
           document['explain'].src = slope_IMG_05_txt.src;
          }
       if(cellName == 'slope6')
          {
           document[cellName].src = slope_IMG_06_on.src;
           document['explain'].src = slope_IMG_06_txt.src;
          }
       }
}

function out(cellName) 
    {
     if(document.images) 
       {
        if(cellName == 'slope1')
          {
           document[cellName].src = slope_IMG_01_off.src;
           document['explain'].src = blank_text.src;
	   }
        if(cellName == 'slope2')
          {
           document[cellName].src = slope_IMG_02_off.src;
           document['explain'].src = blank_text.src;
          }
        if(cellName == 'slope3')
          {
           document[cellName].src = slope_IMG_03_off.src;
           document['explain'].src = blank_text.src;
          }
        if(cellName == 'slope4')
          {
           document[cellName].src = slope_IMG_04_off.src;
           document['explain'].src = blank_text.src;
          }
        if(cellName == 'slope5')
          {
           document[cellName].src = slope_IMG_05_off.src;
           document['explain'].src = blank_text.src;
          }
       if(cellName == 'slope6')
          {
           document[cellName].src = slope_IMG_06_off.src;
           document['explain'].src = blank_text.src;
          }
       }
}




        if (document.images) {
            img20on = new Image();
                                img20on.src = "images/cities_over.gif";
            img20off = new Image();
                                img20off.src = "images/cities.gif";
                     }

		

	 if (document.images) {            
            img2on = new Image();   
                                img2on.src = "images/nparks_over.gif"; 
            img2off = new Image();
                                img2off.src = "images/nparks.gif";
                     }

		
		
		if (document.images) {            
            img3on = new Image();   
                                img3on.src = "images/siteseeing_over.gif"; 
            img3off = new Image();
                                img3off.src = "images/siteseeing.gif";
                     }


	
		if (document.images) {            
            img4on = new Image();   
                                img4on.src = "images/directories_over.gif"; 
            img4off = new Image();
                                img4off.src = "images/directories.gif";
                     }


		if (document.images) {            
            img5on = new Image();   
                                img5on.src = "images/download_over.gif"; 
            img5off = new Image();
                                img5off.src = "images/download.gif";
                     }
                     
		if (document.images) {            
            img6on = new Image();   
                                img6on.src = "images/home_over.gif"; 
            img6off = new Image();
                                img6off.src = "images/home.gif";
                     }                     
    
                     
		if (document.images) {            
            img8on = new Image();   
                                img8on.src = "images/contact_over.jpg"; 
            img8off = new Image();
                                img8off.src = "images/contact.jpg";
                     }


		if (document.images) {            
            img9on = new Image();   
                                img9on.src = "images/about_over.jpg"; 
            img9off = new Image();
                                img9off.src = "images/about.jpg";
                     }


		if (document.images) {            
            img10on = new Image();   
                                img10on.src = "images/help_over.jpg"; 
            img10off = new Image();
                                img10off.src = "images/help.jpg";
                     }
                     
		if (document.images) {            
            img21on = new Image();   
                                img21on.src = "images/5stars_over.gif"; 
            img21off = new Image();
                                img21off.src = "images/5stars.gif";
                     }
                     

		if (document.images) {            
            img22on = new Image();   
                                img22on.src = "images/4stars_over.gif"; 
            img22off = new Image();
                                img22off.src = "images/4stars.gif";

                    } 
                    
                                        
		if (document.images) {            
            img23on = new Image();   
                                img23on.src = "images/3stars_over.gif"; 
            img23off = new Image();
                                img23off.src = "images/3stars.gif";
                     }                     
                     
		if (document.images) {            
            img24on = new Image();   
                                img24on.src = "images/2stars_over.gif"; 
            img24off = new Image();
                                img24off.src = "images/2stars.gif";
                     }
                     
		if (document.images) {            
            img25on = new Image();   
                                img25on.src = "images/1star_over.gif"; 
            img25off = new Image();
                                img25off.src = "images/1star.gif";
                     }                                          

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
        }
}

// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
        }
}


//-->