
var isIE = ((navigator.appName == "Internet Explorer") || (navigator.appVersion.indexOf("MSIE") !=-1))
           && (parseInt(navigator.appVersion) >=3) // variable for IE
		      
var isNav =  ((navigator.appName == "Netscape") || (navigator.userAgent.indexOf("Nav") !=-1)) // variable for Netscape
            
			

if (document.images) // If browser understands document.images, preload images
{

 ///////////////////  These are the images for the text mouseovers ////////////////
 
 HomeText = new Image(101,120)
 HomeText.src = "../kirkland/images/text/hometext.gif"
 
 ClassesText = new Image(101,120)
 ClassesText.src = "../kirkland/images/text/classestext.gif"

 GalleryText = new Image(101,120)
 GalleryText.src = "../kirkland/images/text/gallerytext.gif"

 MembershipText = new Image(101,120)
 MembershipText.src = "../kirkland/images/text/membershiptext.gif"

 SummerfestText = new Image(101,120)
 SummerfestText.src = "../kirkland/images/text/summerfesttext.gif"

 VolunteerText = new Image(101,120)
 VolunteerText.src = "../kirkland/images/text/volunteertext.gif"
 
 FacilitiesText = new Image(101,120)
 FacilitiesText.src = "../kirkland/images/text/facilitiestext.gif"

 ResourcesText = new Image(101,120)
 ResourcesText.src = "../kirkland/images/text/resourcestext.gif"
 
 HistoryText = new Image(101,120)
 HistoryText.src = "../kirkland/images/text/historytext.gif"
 
 ContactText = new Image(101,120)
 ContactText.src = "../kirkland/images/text/contacttext.gif"
 
 NewText = new Image(101,120)
 NewText.src = "../kirkland/images/text/newtext.gif"
 
 NoText = new Image(101,120)
 NoText.src = "../kirkland/images/graphics/bluekacbuilding.gif"
 
 
 /////////////// These are the "on" images for the mouseover buttons ////////////

 
 onhome = new Image(120,20)
 onhome.src = "../kirkland/images/mouseovers/onhome.gif"

 onclasses = new Image(120,20)
 onclasses.src = "../kirkland/images/mouseovers/onclasses.gif"

 ongallery = new Image(120,20)
 ongallery.src = "../kirkland/images/mouseovers/ongallery.gif"

 onmembership = new Image(120,20)
 onmembership.src = "../kirkland/images/mouseovers/onmembership.gif"

 onsummerfest = new Image(120,20)
 onsummerfest.src = "../kirkland/images/mouseovers/onsummerfest.gif"

 onvolunteer = new Image(120,20)
 onvolunteer.src = "../kirkland/images/mouseovers/onvolunteer.gif"

 onfacilities = new Image(120,20)
 onfacilities.src = "../kirkland/images/mouseovers/onfacilities.gif"

 onresources = new Image(120,20)
 onresources.src = "../kirkland/images/mouseovers/onresources.gif"

 onhistory = new Image(120,20)
 onhistory.src = "../kirkland/images/mouseovers/onhistory.gif"

 oncontact = new Image(120,20)
 oncontact.src = "../kirkland/images/mouseovers/oncontact.gif"
 
 onnew = new Image(120,20)
 onnew.src = "../kirkland/images/mouseovers/onnew.gif"
 
 
//////////////// these are the "off" images for the mouseover buttons ///////// 
 
 
 offhome = new Image(120,20)
 offhome.src = "../kirkland/images/mouseovers/offhome.gif"

 offclasses = new Image(120,20)
 offclasses.src = "../kirkland/images/mouseovers/offclasses.gif"

 offgallery = new Image(120,20)
 offgallery.src = "../kirkland/images/mouseovers/offgallery.gif"

 offmembership = new Image(120,20)
 offmembership.src = "../kirkland/images/mouseovers/offmembership.gif"

 offsummerfest = new Image(120,20)
 offsummerfest.src = "../kirkland/images/mouseovers/offsummerfest.gif"

 offvolunteer = new Image(120,20)
 offvolunteer.src = "../kirkland/images/mouseovers/offvolunteer.gif"

 offfacilities = new Image(120,20)
 offfacilities.src = "../kirkland/images/mouseovers/offfacilities.gif"

 offresources = new Image(120,20)
 offresources.src = "../kirkland/images/mouseovers/offresources.gif"

 offhistory = new Image(120,20)
 offhistory.src = "../kirkland/images/mouseovers/offhistory.gif"

 offcontact = new Image(120,20)
 offcontact.src = "../kirkland/images/mouseovers/offcontact.gif"
 
 offnew = new Image(120,20)
 offnew.src = "../kirkland/images/mouseovers/offnew.gif"
}
 
 else  // If browser doesn't understand document.images, set variables to empty
 {
 NoText = ""
 HomeText = ""
 ClassesText = ""
 GalleryText = ""
 MembershipText = ""
 SummerfestText = ""
 VolunteerText = ""
 FacilitiesText = ""
 ResourcesText = ""
 HistoryText = ""
 ContactText = ""
 NewText = ""
 
 onhome = ""
 onclasses = ""
 ongallery = ""
 onmembership = ""
 onsummerfest = ""
 onvolunteer = ""
 onmembership = ""
 onresources = ""
 onhistory = ""
 oncontact = ""
 onnew = ""
 
 offhome = ""
 offclasses = ""
 offevents = ""
 offgallery = ""
 offmembership = ""
 offsummerfest = ""
 offvolunteer = ""
 offmembership = ""
 offresources = ""
 offhistory = ""
 offcontact = ""
 offnew = ""
 }


///////////// open up window for information //////////


  var newWindow
  var posX  // posX and posY used to locate the window 
  var posY
  
  function openInfoWindow(document)
   {
    posX = 0
	posY = 0
	
	newWindow = window.open(document, "", "width=550,height=400,resizable,toolbar,scrollbars") // No spaces between width and height
	newWindow.moveTo(posX, posY) 
   }
  
  
 
  ///////////// open up window for forms//////////


  var newWindow
  var posX  // posX and posY used to locate the window 
  var posY
  
  function openFormWindow(document)
   {
     posX = 0
	 posY = 0
	
	newWindow = window.open(document, "", "width=600,height=400,scrollbars,toolbar,resizable") // No spaces between width and height
    newWindow.moveTo(posX, posY)  
   }
  
  

  ///////////// open up window for links//////////


  var newWindow
  var posX  // posX and posY used to locate the window 
  var posY
  
  function openLinkWindow(document)
   {
     ///// posX = 0
	///// posY = 0
	
	newWindow = window.open(document, "", "width=550,height=400,resizable,scrollbars,location,toolbar") // No spaces between width and height
	///// newWindow.moveTo(posX, posY) - works only in Netscape for opening window to link - will produce error in IE 
   }
  

//////////////////// multiple rollover function  ///////////////////////
  
  
 function multipleRollover (imgField, newImg)
   {
     if (isIE) // test for IE - Netscape cannot handle this function 
	  {
	   if (document.images)
	    {
		 document[imgField].src = eval(newImg + ".src")
		}
	   }	   
    } 

	
 /////function showText(thisText)
 // {
 //  if (document.layers) // for Netscape
  //  {
	 // document.layers['NoText'].visibility = "hidden"  
	 // document.layers[thisText].visibility = "visible" 
	// return false
   // }
	//else // for IE
	// {
	//  document.all["NoText"].style.visibility = "hidden"  // first hide the building graphic
	//  document.all[thisText].style.visibility = "visible" // now make the current text visible
   //  } 
 //  }

/////////////////////////// show the building graphic at mouseout ////////////////// 


 // function hideText(thisText)
 // {
 //  if (document.layers) // for Netscape
   // {
	// document.layers[thisText].visibility = "hidden" 
	// document.layers['NoText'].visibility = "visible"
	// return false
	// }
	// else // for IE
	// {
	//  document.all[thisText].style.visibility = "hidden" //first hide the current text
	//  document.all["NoText"].style.visibility = "visible" // now make the building graphic visible
	// }
 //  }	  
	  
	   
  
  ///////////// open up window Marina Park map //////////

  
  var newWindow
  var posX  // posX and posY used to locate the window 
  var posY
  
  function mapWindow()
   {
    posX = 0
	posY = 0
	
	newWindow = window.open("../kirkland/images/graphics/marinamap.gif", "", "width=340,height=290,resizable") // No spaces between width and height
	newWindow.moveTo(posX, posY) 
   } 