// JavaScript Document
/**
* Hidding Sub-Nav
*
* Hides and Displays the Sub Navigation on the Side
*/
function showLinks(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}


//SCRIPTS FOR PRELOADING IMAGES!
function loadImages()
{
	if (document.images)
		{
			//load header images
			top_logo = new Image();
			top_logo.src = "images/top_logo.jpg";
			
			//load navBar images
			navbar_top = new Image();
			navbar_top.src = "images/navbar_top.jpg";
			
			navbar_bottom = new Image();    
			navbar_bottom.src = "images/navbar_bottom.jpg";  
			
			navBar_link = new Image();   
			navBar_link.src = "images/navBar_link.jpg";
			
			accent = new Image();
			accent.src = "images/accent.jpg";
			
			accent_hover = new Image();
			accent_hover.src = "images/accent_hover.jpg";
			
			//load footer images
			footer = new Image();
			footer.src = "images/footer.jpg";
			
			//load other...
			e = new Image();
			e.src = "images/e.jpg";
		}
}