var lastWidth = window.innerWidth;
var lastHeight = window.innerHeight;

function PW_ReDrawNetscape() 
{ 
	if (document.layers) //  are we in dhtml ns4?
	{	
		if( (lastWidth != window.innerWidth) || (lastHeight != window.innerHeight))
		{
		 window.location=window.location;	// this'll toggle.
			 lastWidth = window.innerWidth;
			 lastHeight = window.innerHeight;
		}
	}
}

//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 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 PreloadGraphics()
{
 PW_Preload('Images/CACButton_r.gif'); 
 PW_Preload('Images/FRCButton_r.gif'); 
 PW_Preload('Images/OptimalButton_r.gif'); 
 PW_Preload('Images/ServicesButton_r.gif'); 
 PW_Preload('Images/SiteMapButton_r.gif'); PW_Preload('Images/SiteMapButton_c.gif'); 
 PW_Preload('Images/LinksButton_r.gif'); PW_Preload('Images/LinksButton_c.gif'); 
 PW_Preload('Images/ContactButton_r.gif'); PW_Preload('Images/ContactButton_c.gif'); 
 PW_Preload('Images/AboutButton_r.gif'); PW_Preload('Images/AboutButton_c.gif'); 
 PW_Preload('Images/HomeButton_r.gif'); PW_Preload('Images/HomeButton_c.gif'); 
 
}

