			
				
		function reDo() {  
			window.location.reload();  
		} 
		window.onresize = reDo; 
		//Define global variables 
		var timerID = null; 
		var timerOn = false; 
		var timecount = 0; 
		// Change this to the time delay that you desire 
		var what = null; 
		var newbrowser = true; 
		var check = false; 
	
		function init() {  
			if (document.layers) {  
				layerRef="document.layers";  
				styleSwitch="";  
				visibleVar="show";  
				screenSize = window.innerWidth;  
				what ="none";  
			} else if (document.all) {  
				layerRef="document.all";  
				styleSwitch=".style";  
				visibleVar="visible";  
				screenSize = document.body.clientWidth + 18;  
				what ="ie4";  
			} else if(document.getElementById) {  
				layerRef="document.getElementByID";  
				styleSwitch=".style"; 
				visibleVar="visible";  
				what="dom1";  
			}  else {  
				what="none";  
				newbrowser = false;  
			} 
			check = true; 
		}
		
		// Toggles the layer visibility on 
		function showLayer(layerName) {  
			if(check) {  
				if (what == "none") { 
				 	return;  
				}  else if (what == "dom1") {  
					document.getElementById(layerName).style.visibility="visible";  
				}  else {  
					eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');  
				}  
			}  else {  
				return;  
			}  
		} 
		
		//function showLayer(layerid){
			//layer = document.getElementById(layerid);
			//layer.style.visibility = "visible";
		//}

		// Toggles the layer visibility off 
		function hideLayer(layerName) {  
			if(check) {  
				if (what =="none") { 
				 	return;  
				} else if (what == "dom1") {  
					document.getElementById(layerName).style.visibility="hidden";  
				}  else {  
					eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');  
				}  
			}  else {  
				return;  
			}  
		} 
		
		function hideAll() {  
			hideLayer('cm');  
			hideLayer('lr');  
			hideLayer('sp');
			hideLayer('cy'); 
		} 
			//Put all layers used in the nav here.  
			//Copy the hideLayer() function above.  } 

			//layer = document.getElementById(layerid);
			//layer.style.visibility = "hidden";
		//}	
	
	
			function startTime() {  
				if (timerOn == false) {  
					timerID = setTimeout ( "hideAll()" , timecount);  
					timerOn = true; 
				}  
			} 
	
			function stopTime() {  
				if (timerOn) {  
					clearTimeout (timerID);  
					timerID = null;  
					timerOn = false;  
				}  
			} 
 
 		function onLoad() {  
			init();  
		} 
	
		var browser;
		// Determine if browser supports mimeTypes array
		if (navigator.mimeTypes && navigator.mimeTypes.length != 0) {
		  browser = "mimeTypes"
		}
		else {
		  browser = "noMimeTypes"
		}
		
		function WM_imageSwap(daImage, daSrc){
  			var objStr,obj;
  			/*
   		 	WM_imageSwap()
    		Changes the source of an image.

    		Source: Webmonkey Code Library
    		(http://www.hotwired.com/webmonkey/javascript/code_library/)

    		Author: Shvatz
   	 		Author Email: shvatz@wired.com

    		Usage: WM_imageSwap(originalImage, 'newSourceUrl');

    		Requires: WM_preloadImages() (optional, but recommended)
    		Thanks to Ken Sundermeyer (ksundermeyer@macromedia.com) for his help
    		with variables in ie3 for the mac. 
    		*/

  			// Check to make sure that images are supported in the DOM.
  			if(document.images){
    			// Check to see whether you are using a name, number, or object
   			 if (typeof(daImage) == 'string') {
      			// This whole objStr nonesense is here solely to gain compatability
      			// with ie3 for the mac.
      			objStr = 'document.' + daImage;
      			obj = eval(objStr);
      			obj.src = daSrc;
    			} else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
      				daImage.src = daSrc;
    			}
  			}
		}

		function WM_preloadImages() {

     		 /*
     		 WM_preloadImages()
     		 Loads images into the browser's cache for later use.

     		 Source: Webmonkey Code Library
     		 (http://www.hotwired.com/webmonkey/javascript/code_library/)

     		 Author: Nadav Savio
     		 Author Email: nadav@wired.com

     		 Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
     		 */

  		// Don't bother if there's no document.images
  		if (document.images) {
    	if (typeof(document.WM) == 'undefined'){
      		document.WM = new Object();
    	}
    	document.WM.loadedImages = new Array();
    	// Loop through all the arguments.
    	var argLength = WM_preloadImages.arguments.length;
    	for(arg=0;arg<argLength;arg++) {
     	 // For each arg, create a new image.
      	document.WM.loadedImages[arg] = new Image();
      	// Then set the source of that image to the current argument.
      	document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    	}
 	 }
	}
		
	
	
