//This function lets us change an arbitrary image to an arbitrary source.
//  imgName - name of the IMG tag we'll be modifying, as well as any containing DIV
//  srcPath - path relative from root directory.
function PW_ImgSwap(imgName, src)
{
	var targetImg = document.images[imgName];
	if(targetImg == null)
	{
		if(document.layers) //Netscape!
		{
			targetImg = document.layers[imgName + 'div'].document.images[imgName];
		}
	}
	if(targetImg)
	{
		targetImg.src = src;
	}
}


<!--
//This function lets us change an arbitrary image to an arbitrary source.
//  imgName - name of the IMG tag we'll be modifying, as well as any containing DIV
//  srcPath - path relative from root directory.
function PW_ImgSwap(imgName, src)
{
	var targetImg = document.images[imgName];
	if(targetImg == null)
	{
		if(document.layers) //Netscape!
		{
			targetImg = document.layers[imgName + 'div'].document.images[imgName];
		}
	}
	if(targetImg)
	{
		targetImg.src = src;
	}
}
//-->


<!--
// PhotoWebber PopMenu Class

function PW_PopMenu(oName, pArray)
{
	this.ownerName = oName; //should be same name as name of object.
	this.popArray = pArray;

	// attach functions
	this.PW_Display = PW_Display;
	this.PW_Finish = PW_Finish;
	this.PW_StartClock = PW_StartClock;
	this.PW_StopClock = PW_StopClock;

	window.top.pw_curPopMenu = this;
	this.PW_Display(true);
}

function PW_Display(show)
{
	if(this.popArray == null){ return; }
	PW_DisplayIt(show, this.popArray);
}

function PW_DisplayIt(show, someArray)
{
	var s;  if(show){s = 1;}else{s = 0;}
	var showIt;

	var i;
	for(i=0; i < someArray.length; i++)
	{
		// we 'switch' off of array length. see notes on array forms below.
		var subArray = someArray[i];
		if(subArray.length == 2)
		{
			if(subArray[1] == false){ showIt = !show; }else{showIt = show; }
			PW_SetVisible(subArray[0], showIt);
		}
		else if(subArray.length == 3)
		{
			PW_ImgSwap(subArray[0], subArray[1+s]);
		}
		else if(subArray.length == 4)
		{//style sheet layer in another frame
			if(subArray[3] == false){ showIt = !show; }else{showIt = show; }
			PW_FrameSetVisible(subArray[0], subArray[1], subArray[2], showIt);
		}
		else if(subArray.length == 5)
		{//graphic swapping in another frame
			PW_RootAndFrameImgSwap(subArray[0], subArray[1], subArray[2], subArray[3+s]);
		}
	}
}

function PW_Finish()
{
	this.PW_StopClock();
	this.PW_Display(false);
	this.popArray = null;
	window.top.pw_curPopMenu = null;
}

function PW_StartClock(tim)
{
 if(tim == 0){ this.PW_Finish(); return; }
	this.timeoutID = setTimeout(this.ownerName +'.PW_Finish()', tim);
}

function PW_StopClock()
{
	if(this.timeoutID != null)
	{
		clearTimeout(this.timeoutID);
	}
}

function PW_OwnerCheck(someOwner, forceFinish)
{
	if(window.top.pw_curPopMenu != null)
	{
		if(someOwner == window.top.pw_curPopMenu.ownerName)
		{
			window.top.pw_curPopMenu.PW_StopClock();
			return(true);
		}
		else if(forceFinish)
		{
			window.top.pw_curPopMenu.PW_Finish();
			return(false);
		}
	}
	return(false);
}

//-->


<!--
//This function forces the browser to load a particular image.  
//This will put it in the cache, so the next time the browser looks for this image, it will
//be ready immediately.

function PW_Preload(src)
{ 
   var img = new Image();
   img.src=src;
} 
//--> 

<!--
//     These scripts are used by the rollovers, popups, and menus of this document
function Rollover_btnlownavsiteoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavsiteoff8_0', 'images/btn_lownav_site_off8_0.gif', 'images/btn_lownav_site_on28_0.gif']]); 
}


function Rollover_btnlownavbusoloff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavbusoloff7_0', 'images/btn_lownav_busol_off7_0.gif', 'images/btn_lownav_busol_on27_0.gif']]); 
}


function Rollover_btnlownavrehaboff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavrehaboff6_0', 'images/btn_lownav_rehab_off6_0.gif', 'images/btn_lownav_rehab_on26_0.gif']]); 
}


function Rollover_btnlownavemployoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavemployoff5_0', 'images/btn_lownav_employ_off5_0.gif', 'images/btn_lownav_employ_on25_0.gif']]); 
}


function Rollover_btnlownavwhatsoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavwhatsoff4_0', 'images/btn_lownav_whats_off4_0.gif', 'images/btn_lownav_whats_on24_0.gif']]); 
}


function Rollover_btnlownavserviceoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavserviceoff3_0', 'images/btn_lownav_service_off3_0.gif', 'images/btn_lwnav_service_on23_0.gif']]); 
}


function Rollover_btnlownavcontactoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavcontactoff2_0', 'images/btn_lownav_contact_off2_0.gif', 'images/btn_lwnav_contact_on22_0.gif']]); 
}


function Rollover_btnlownavaboutoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavaboutoff1_0', 'images/btn_lownav_about_off1_0.gif', 'images/btn_lownav_about_on21_0.gif']]); 
}


function Rollover_btnlownavhomeoff(showIt)
{
 PW_DisplayIt( showIt, [[ 'btnlownavhomeoff0_0', 'images/btn_lownav_home_off0_0.gif', 'images/btn_lownav_home_on20_0.gif']]); 
}


//-->
