	imageOffs = new Array();
	imageOns = new Array();
	
	//images array
    imgArr=new Array;
	imgArr["work"] = "images/title_work_off.gif";
	imgArr["contact"] = "images/title_contact_off.gif";
	imgArr["home"] = "images/title_home_off.gif";
	
 	var preloaded = 0	
	
    function preLoad() {
		if(document.images) {
			//smalls
			for (var i in imgArr)   {
				//roll over imgs
				imageOns[i] = new Image();
				imageOns[i].src = imgArr[i];	
				//original imgs
				if (document.images[i]) {
					imageOffs[i] = new Image();
					imageOffs[i].src = document.images[i].src;
				}
			}
			
			preloaded = 1
		}
	}	
	  
    function overImg(myImg) {
		if(document.images && preloaded) {	
			document.images[myImg].src = imageOns[myImg].src;		
		}
	}
	function outImg(myImg) {
		if(document.images && preloaded) {		
			document.images[myImg].src = imageOffs[myImg].src;
		}
	}
		
	function showhide(what){
		if (document.all){
			if(document.all[what].style.display == 'none'){
	        	document.all[what].style.display = '';
		    } else {
    		    document.all[what].style.display = 'none';
		    }
			return false;
	   } else if (document.getElementById){
		    if(document.getElementById(what).style.display == 'none'){
	 	       document.getElementById(what).style.display = 'block';
		    } else {
		       document.getElementById(what).style.display = 'none';
		    }
			return false;
	   }
	}
	
	function showhidetop(what1,what2,whatcount){
		if (document.all){
			if(document.all[what1].style.display == 'none'){
				for (var i=1;i<=whatcount;i++) {
					var menuName = eval('what'+i);
					document.all[menuName].style.display = 'none';
				}
	        	document.all[what1].style.display = '';
		    } else {
    		    document.all[what1].style.display = 'none';
		    }
			return false;
	   } else if (document.getElementById){
		    if(document.getElementById(what1).style.display == 'none'){
				for (var i=1;i<=whatcount;i++) {
					var menuName = eval('what'+i);
					document.getElementById(menuName).style.display = 'none';
				}
	 	       document.getElementById(what1).style.display = 'block';
		    } else {
		       document.getElementById(what1).style.display = 'none';
		    }
			return false;
	   }
	}

function openWin(url,width,height) {
	var glossWin = 		window.open(url,'homescreen','scrollbars=no,status=no,resizeable=no,location=no,directories=no,toolbar=no,menubar=no,width='+width+',height='+height)
}

function showDate() {
	months = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	currDate = new Date();
	currDay = currDate.getDate();
	currMonth = months[currDate.getMonth()];
	currYear = currDate.getYear();
	document.write(currMonth." ".currDay." ".currYear);
}