// JavaScript Document
<!-- Hide script from older browsers
//////////////////
// IN-LINE CODE //
//////////////////
// Save any arguments passed in the URL into a cookie for 1 hour

	var arrArgs = location.search.substr(1).split("?");
    var now = new Date;
    var expireDate = new Date;
	expireDate.setHours(expireDate.getHours()+1);
	document.cookie = "Args="+arrArgs+";expires="+ expireDate.toGMTString();
	
// Shift the ThisVisit cookie value to a LastVisit cookie value
// ..and set now as the value for ThisVisit
	expireDate = now;
    expireDate.setMonth(expireDate.getMonth()+6)
	lastVisit = new Date(cookieVal("ThisVisit"))
	document.cookie = "LastVisit="+lastVisit+";expires=" + expireDate.toGMTString();
	document.cookie = "ThisVisit="+now+";expires=" + expireDate.toGMTString();

///////////////
if(navigator.userAgent.indexOf("Mac") !=-1){ var is_mac=true;}
if(navigator.userAgent.indexOf("MSIE") !=-1){ var is_ie=true;}
if(navigator.userAgent.indexOf("Gecko") !=-1){ var is_gecko=true;}
///////////////
// FUNCTIONS //
///////////////
// Returns the value of the named cookie
	function cookieVal(cookieName) {
		thisCookie = document.cookie.split("; ")
  	    for (i=0; i<thisCookie.length; i++) {
  	        if (cookieName == thisCookie[i].split("=")[0]) {
  	        	return thisCookie[i].split("=")[1]
  	        }
   	    }
		return "1 January 1970"
	}

// Compare last modified date and last visit date output a 'new' flag to highlight
	function newCheck(yyyy,mm,dd) {
		lastChgd = new Date(yyyy,mm-1,dd)
		
		if (lastChgd.getTime() > lastVisit.getTime()) {
			document.write("<IMG SRC='ALSCimages/New.gif' WIDTH=28 HEIGHT=11 ALT='new'>")
		}
	}
	
// End hiding script -->
