// JavaScript Document

<!-- start hiding script from old browsers

now = new Date
expireDate = new Date
// set the exparation date to 6 months
expireDate.setMonth(expireDate.getMonth()+6)
lastVisit = new Date(cookieVal("pageVisit"))

document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString()


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]
		}
	}//end for loop
	return "1 January 1970"
}//end function cookieVal

function newCheck(yyyy,mm,dd) {
lastChgd = new Date(yyyy,mm-1,dd)
if (lastChgd.getTime() > lastVisit.getTime()) {
document.write("<img src='../images/new.gif' width=28 height=11 alt='new'>")
}//end of the if statement
}//end function newCheck
//end hiding javascript from old browsers-->
