// script to allow hover images on mouseover

// code to test to determine the browser type

var ok_browser = 0; 
bName = navigator.appName;             
bVer  = parseInt(navigator.appVersion); 
 
ver = "n2" 

if (bName == "Netscape" && bVer >= 3) 
   {
   ver = "n3";
   }
else 
   {
   if (bName == "Microsoft Internet Explorer" && bVer >= 4) 
      {
      ver = "e4"; 
      }
   }

if (ver == "n3" || ver == "e4")
   {  
   ok_browser = 1; 
   }
else 
   {
   ok_browser = 0;
   }

// code to declare image substitutions

if ( ok_browser == 1 ) 
   {
   ImgHome_on              = new Image(); 
   ImgHome_on.src          = "http://www.melbastudios.com.au/images/nav/btn_home_over.jpg";
   ImgHome_off             = new Image(); 
   ImgHome_off.src         = "http://www.melbastudios.com.au/images/nav/btn_home_out.jpg";
   
 		ImgOpening_on              = new Image(); 
   ImgOpening_on.src          = "http://www.melbastudios.com.au/images/nav/btn_opening_over.jpg";
   ImgOpening_off             = new Image(); 
   ImgOpening_off.src         = "http://www.melbastudios.com.au/images/nav/btn_opening_out.jpg";
			
			ImgMemorabilia_on              = new Image(); 
   ImgMemorabilia_on.src          = "http://www.melbastudios.com.au/images/nav/btn_memorabilia_over.jpg";
   ImgMemorabilia_off             = new Image(); 
   ImgMemorabilia_off.src         = "http://www.melbastudios.com.au/images/nav/btn_memorabilia_out.jpg";
			
			ImgSchoolsUnionLeague_on              = new Image(); 
   ImgSchoolsUnionLeague_on.src          = "http://www.melbastudios.com.au/images/nav/btn_schools_union_league_over.jpg";
   ImgSchoolsUnionLeague_off             = new Image(); 
   ImgSchoolsUnionLeague_off.src         = "http://www.melbastudios.com.au/images/nav/btn_schools_union_league_out.jpg";
			
			ImgRowing_on              = new Image(); 
   ImgRowing_on.src          = "http://www.melbastudios.com.au/images/nav/btn_rowing_over.jpg";
   ImgRowing_off             = new Image(); 
   ImgRowing_off.src         = "http://www.melbastudios.com.au/images/nav/btn_rowing_out.jpg";   
			
			ImgSchools_on              = new Image(); 
   ImgSchools_on.src          = "http://www.melbastudios.com.au/images/nav/btn_schools_over.jpg";
   ImgSchools_off             = new Image(); 
   ImgSchools_off.src         = "http://www.melbastudios.com.au/images/nav/btn_schools_out.jpg";  
			
			ImgPortrait_on              = new Image(); 
   ImgPortrait_on.src          = "http://www.melbastudios.com.au/images/nav/btn_portraiture_over.jpg";
   ImgPortrait_off             = new Image(); 
   ImgPortrait_off.src         = "http://www.melbastudios.com.au/images/nav/btn_portraiture_out.jpg";  
			
			ImgWeddings_on              = new Image(); 
   ImgWeddings_on.src          = "http://www.melbastudios.com.au/images/nav/btn_weddings_over.jpg";
   ImgWeddings_off             = new Image(); 
   ImgWeddings_off.src         = "http://www.melbastudios.com.au/images/nav/btn_weddings_out.jpg"; 
 
   ImgEvents_on                = new Image(); 
   ImgEvents_on.src            = "http://www.melbastudios.com.au/images/nav/btn_events_over.jpg";
   ImgEvents_off               = new Image(); 
   ImgEvents_off.src           = "http://www.melbastudios.com.au/images/nav/btn_events_out.jpg";
			
			ImgCommercial_on                = new Image(); 
   ImgCommercial_on.src            = "http://www.melbastudios.com.au/images/nav/btn_commercial_over.jpg";
   ImgCommercial_off               = new Image(); 
   ImgCommercial_off.src           = "http://www.melbastudios.com.au/images/nav/btn_commercial_out.jpg";
			
			ImgHire_on                = new Image(); 
   ImgHire_on.src            = "http://www.melbastudios.com.au/images/nav/btn_hire_over.jpg";
   ImgHire_off               = new Image(); 
   ImgHire_off.src           = "http://www.melbastudios.com.au/images/nav/btn_hire_out.jpg";
			
			ImgFraming_on                = new Image(); 
   ImgFraming_on.src            = "http://www.melbastudios.com.au/images/nav/btn_framing_over.jpg";
   ImgFraming_off               = new Image(); 
   ImgFraming_off.src           = "http://www.melbastudios.com.au/images/nav/btn_framing_out.jpg";
			
			ImgFundraising_on                = new Image(); 
   ImgFundraising_on.src            = "http://www.melbastudios.com.au/images/nav/btn_fundraising_over.jpg";
   ImgFundraising_off               = new Image(); 
   ImgFundraising_off.src           = "http://www.melbastudios.com.au/images/nav/btn_fundraising_out.jpg";
			
	/* -------------------------- Portraiture navigation links --------------------------------- */		
	
			ImgPortraiture_on                = new Image(); 
   ImgPortraiture_on.src            = "http://www.melbastudios.com.au/images/btn_portraiture_over.jpg";
   ImgPortraiture_off               = new Image(); 
   ImgPortraiture_off.src           = "http://www.melbastudios.com.au/images/btn_portraiture_out.jpg";
			
			ImgBookingForm_on                = new Image(); 
   ImgBookingForm_on.src            = "http://www.melbastudios.com.au/images/btn_bookingform_over.jpg";
   ImgBookingForm_off               = new Image(); 
   ImgBookingForm_off.src           = "http://www.melbastudios.com.au/images/btn_bookingform_out.jpg";
   
   ImgGiftVoucher_on                = new Image(); 
   ImgGiftVoucher_on.src            = "http://www.melbastudios.com.au/images/btn_gift_voucher_over.jpg";
   ImgGiftVoucher_off               = new Image(); 
   ImgGiftVoucher_off.src           = "http://www.melbastudios.com.au/images/btn_gift_voucher.jpg";  
			
			ImgBabyPortraiture_on                = new Image(); 
   ImgBabyPortraiture_on.src            = "http://www.melbastudios.com.au/images/btn_baby_over.jpg";
   ImgBabyPortraiture_off               = new Image(); 
   ImgBabyPortraiture_off.src           = "http://www.melbastudios.com.au/images/btn_baby_out.jpg";  
			
		/*	ImgCorporatePortraiture_on                = new Image(); 
   ImgCorporatePortraiture_on.src            = "http://www.melbastudios.com.au/images/btn_corporate_over.jpg";
   ImgCorporatePortraiture_off               = new Image(); 
   ImgCorporatePortraiture_off.src           = "http://www.melbastudios.com.au/images/btn_corporate_out.jpg";  */
			
			ImgFamilyPortraiture_on                = new Image(); 
   ImgFamilyPortraiture_on.src            = "http://www.melbastudios.com.au/images/btn_family_over.jpg";
   ImgFamilyPortraiture_off               = new Image(); 
   ImgFamilyPortraiture_off.src           = "http://www.melbastudios.com.au/images/btn_family_out.jpg"; 
			
			ImgTeensPortraiture_on                = new Image(); 
   ImgTeensPortraiture_on.src            = "http://www.melbastudios.com.au/images/btn_teens_over.jpg";
   ImgTeensPortraiture_off               = new Image(); 
   ImgTeensPortraiture_off.src           = "http://www.melbastudios.com.au/images/btn_teens_out.jpg"; 
			
			ImgPregnancy_on                = new Image(); 
   ImgPregnancy_on.src            = "http://www.melbastudios.com.au/images/btn_pregnancy_over.jpg";
   ImgPregnancy_off               = new Image(); 
   ImgPregnancy_off.src           = "http://www.melbastudios.com.au/images/btn_pregnancy_out.jpg"; 
			
			ImgModelling_on                = new Image(); 
   ImgModelling_on.src            = "http://www.melbastudios.com.au/images/btn_modelling_over.jpg";
   ImgModelling_off               = new Image(); 
   ImgModelling_off.src           = "http://www.melbastudios.com.au/images/btn_modelling_out.jpg";
			
				ImgPhotoShoot_on                = new Image(); 
   ImgPhotoShoot_on.src            = "http://www.melbastudios.com.au/images/portraiture/btn_photo_shoot_over.jpg";
   ImgPhotoShoot_off               = new Image(); 
   ImgPhotoShoot_off.src           = "http://www.melbastudios.com.au/images/portraiture/btn_photo_shoot.jpg";
			
				ImgPhoto_on                = new Image(); 
   ImgPhoto_on.src            = "http://www.melbastudios.com.au/images/btn_photo_over.jpg";
   ImgPhoto_off               = new Image(); 
   ImgPhoto_off.src           = "http://www.melbastudios.com.au/images/btn_photo_out.jpg";
			
			ImgGift_on                = new Image(); 
   ImgGift_on.src            = "http://www.melbastudios.com.au/images/btn_gift_over.jpg";
   ImgGift_off               = new Image(); 
   ImgGift_off.src           = "http://www.melbastudios.com.au/images/btn_gift_out.jpg"; 
			
			ImgBooking_on                = new Image(); 
   ImgBooking_on.src            = "http://www.melbastudios.com.au/images/btn_booking_over.jpg";
   ImgBooking_off               = new Image(); 
   ImgBooking_off.src           = "http://www.melbastudios.com.au/images/btn_booking_out.jpg";
	
	/* -------------------------- weddings navigation links --------------------------------- */		
	
				
			ImgGallery_on                = new Image(); 
   ImgGallery_on.src            = "http://www.melbastudios.com.au/images/btn_photo_gallery_over.jpg";
   ImgGallery_off               = new Image(); 
   ImgGallery_off.src           = "http://www.melbastudios.com.au/images/btn_photo_gallery_out.jpg";
			
			ImgPackages_on                = new Image(); 
   ImgPackages_on.src            = "http://www.melbastudios.com.au/images/btn_packages_over.jpg";
   ImgPackages_off               = new Image(); 
   ImgPackages_off.src           = "http://www.melbastudios.com.au/images/btn_packages_out.jpg";
			
			ImgAlbums_on                = new Image(); 
   ImgAlbums_on.src            = "http://www.melbastudios.com.au/images/btn_albums_over.jpg";
   ImgAlbums_off               = new Image(); 
   ImgAlbums_off.src           = "http://www.melbastudios.com.au/images/btn_albums_out.jpg";
			
			ImgReferrals_on                = new Image(); 
   ImgReferrals_on.src            = "http://www.melbastudios.com.au/images/btn_referrals_over.jpg";
   ImgReferrals_off               = new Image(); 
   ImgReferrals_off.src           = "http://www.melbastudios.com.au/images/btn_referrals_out.jpg";
			
			ImgContact_on                = new Image(); 
   ImgContact_on.src            = "http://www.melbastudios.com.au/images/btn_contact_over.jpg";
   ImgContact_off               = new Image(); 
   ImgContact_off.src           = "http://www.melbastudios.com.au/images/btn_contact_out.jpg";
   } 

// functions to replace images
function imageon(myname) 
   { 
   if ( ok_browser == 1 ) 
      { 
      imgOn = eval(myname + "_on.src"); 
      document[myname].src = imgOn; 
      } 
   } 

function imageoff(myname) 
   { 
   if ( ok_browser == 1 ) 
      { 
      imgOff = eval(myname + "_off.src"); 
      document[myname].src = imgOff; 
      } 
   }  
  
// end script