<!--
  /*
   * Pre-load the specified image.  This loads the image as the page
   * loads, so that when it is used later (such as for a mouseover effect),
   * the image has already been loaded.
   */
   
// Begin code to put in the head section for image pre-loading.
function preloadImages() {
	if (document.images) {
		imageObj = new Array();
		// set image url
		imageURL = new Array();

		// buttons
		imageURL[0] = "/buttons/about_pwds_active.gif";
		imageURL[1] = "/buttons/contact_active.gif";
		imageURL[2] = "/buttons/design_active.gif";
		imageURL[3] = "/buttons/health_active.gif";
		imageURL[4] = "/buttons/links_active.gif";
		imageURL[5] = "/buttons/home_active.gif";
		imageURL[6] = "/buttons/our_pwds_active.gif";
		imageURL[7] = "/buttons/photos_active.gif";
		imageURL[8] = "/buttons/puppies_active.gif";
		imageURL[9] = "/buttons/resources_active.gif";

		// photo album images
		imageURL[10] = "/photoalbums/images/doubleroundE.gif";
		imageURL[11] = "/photoalbums/images/doubleroundN.gif";
		imageURL[12] = "/photoalbums/images/doubleroundNE.gif";
		imageURL[13] = "/photoalbums/images/doubleroundNW.gif";
		imageURL[14] = "/photoalbums/images/doubleroundS.gif";
		imageURL[15] = "/photoalbums/images/doubleroundSE.gif";
		imageURL[16] = "/photoalbums/images/doubleroundSW.gif";
		imageURL[17] = "/photoalbums/images/doubleroundW.gif";
		imageURL[18] = "/photoalbums/images/innerBL.gif";
		imageURL[19] = "/photoalbums/images/innerTL.gif";
		imageURL[20] = "/photoalbums/images/next.gif";
		imageURL[21] = "/photoalbums/images/next_disabled.gif";
		imageURL[22] = "/photoalbums/images/pause.gif";
		imageURL[23] = "/photoalbums/images/pause_over.gif";
		imageURL[24] = "/photoalbums/images/play.gif";
		imageURL[25] = "/photoalbums/images/play_over.gif";
		imageURL[26] = "/photoalbums/images/previous.gif";
		imageURL[27] = "/photoalbums/images/previous_disabled.gif";
		
		

		// load images		
		var i = 0;
		for(i=0; i<=27; i++) {
			imageObj[i] = new Image();
			imageObj[i].src = imageURL[i];
		}
	}
}

	preloadImages();	
	  
// End code to put in head section for image pre-loading.

// Preloader function that can be called as needed via onload event
function preloadImagesonDemand() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=preloadImagesonDemand.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->

