/* scripts.js
mark jakopak
 */

var slideWidth=175;		// the width of the slide bar
var slideVar=-145;		// the left axis of the slide bar
var slideVarStop=slideVar;
var menueIn=null;		// used by the setInterval  for the slider
var menueOut=null;		// used by the setInterval for the slider

// this function checks for which browser and adjust stuff.

	function brouserCheck(){
		// alert(navigator.appName);
		 if(navigator.appName=="Netscape"){
			document.getElementById('slideBar').style.left="-165px";
			slideVar=-165;
			slideVarStop=-165;
			// document.getElementById('slideBar').style.paddingLeft="0px";		
		}
		 if(navigator.appName=="Microsoft Internet Explorer"){
		}
	}
// this function brings in the side bar.

	function slideIn(){
		// if(navigator.appName=="Netscape"){
			if(menueOut)
			clearTimeout(menueOut);
			if(slideVar<0)
				printSlideBar(+1);
			else
				clearTimeout(menueIn);
	}	
// this function slides out the side bar.

	function slideOut(){
		if(menueIn)
		clearTimeout(menueIn);
		if (slideVar>slideVarStop)
			printSlideBar(-1);	
		else
			clearTimeout(menueOut);
	}
// this function changes the x axis of the slide bar with the Id of slideBar

	function printSlideBar(z){
		slideVar=slideVar+(5*z);
		document.getElementById("slideBar").style.left=slideVar+"px";
		if(z==1) menueIn=setTimeout("slideIn();",10);
		if(z==-1) menueOut=setTimeout("slideOut();",10);
		}
<!-- this is the function for rollover effect on buttons -->
	function rollOut(which){
		which.style.backgroundColor="#bfddb9";
		}
  
	function rollIn(which){
		which.style.backgroundColor="#ccf0cc";
		}
<!-- this is the function to open outside popup windows -->
	function mail(file){
		var newWind=window.open(file, "web", "width=730, scrollbars=no, titlebar=no, status=no, resizable=yes, toolbar=no");
		newWind.focus();
	}	
<!-- this is the function to open outside windows -->
	function newWin(file){
		var newWind=window.open(file, "web", "width=730");
		newWind.focus();
	}
<!-- this is the function for the thumbnails -->
	function enlarge (piture,caption) {
			
			var enlargePicture=window.open("", "enlargement", "width=730, height=500, scrollbars=yes, titlebar=yes");
			enlargePicture.document.write("<form style='background-color:#fffff1;text-align:center;' action=''>");
			enlargePicture.document.write("<img style='border-style:groove;' src='"+piture+"' height='480px;' width='640px;' alt='"+piture+"' />");
			enlargePicture.document.write("<p>"+caption+"</p>");
			enlargePicture.document.write("<input type='button' value='Close This Window' onclick='window.close();' />");
			enlargePicture.document.write("</form>");
			enlargePicture.document.close();
			enlargePicture.focus();
			}