<!-- // Hide script
function WriteCookie(sCookie, sValue, bSave, iDays, sPath) {
	// Writes the value of cookie sCookie
	if (!bSave) {
		document.cookie = sCookie + "=" + escape(sValue) + "; path=" + sPath;
	}
	else {
		document.cookie = sCookie + "=" + escape(sValue) + "; path=" + sPath + "; expires=" + GetCookieDate(iDays);
	}

}

function ReadCookie(sCookie) {
	// Returns the value of cookie sCookie
	var sCookStr;
	var sCookVal;
	var sRetVal;
	var iCookPos;
	var iNextPos;
	var aCookie;
	
	sCookStr = document.cookie;
	sRetVal = "";
	iCookPos = sCookStr.indexOf(sCookie + "=");
	
	if (iCookPos == -1) { return sRetVal; }
	else {
		iNextPos = sCookStr.indexOf(";", iCookPos);
		if (iNextPos == -1) { iNextPos = sCookStr.length; }
		sCookVal = sCookStr.substring(iCookPos, iNextPos);
		aCookie = sCookVal.split("=");
		if (aCookie.length < 2) { return sRetVal; }
		else { sRetVal = unescape(aCookie[1]); }
	}
	return sRetVal;
}

function DeleteCookie(sCookie) {
	// Deletes the value of cookie sCookie
	document.cookie = sCookie + "= ";
}

function GetCookieDate(iPlusDays) {
	// Returns Cookie expiry date formatted string today's date plus iPlusDays
	// Mon, 31 March 2003 00:00:00 GMT
	var dExpDate = new Date();
	dExpDate.setDate(dExpDate.getDate() + iPlusDays);
	var iDate = dExpDate.getDate();
	var iDay = dExpDate.getDay();
	var iMonth = dExpDate.getMonth();
	var iYear = dExpDate.getYear();
	var iHour = dExpDate.getHours();
	var iMins = dExpDate.getMinutes();
	var sExpDate = "";
	
	if (iDay == 0) { sExpDate = "Sun, "; }
	if (iDay == 1) { sExpDate = "Mon, "; }
	if (iDay == 2) { sExpDate = "Tue, "; }
	if (iDay == 3) { sExpDate = "Wed, "; }
	if (iDay == 4) { sExpDate = "Thu, "; }
	if (iDay == 5) { sExpDate = "Fri, "; }
	if (iDay == 6) { sExpDate = "Sat, "; }
	
	sExpDate = sExpDate + iDate + " ";
	
	if (iMonth == 0) {themonthname = "January";}
	if (iMonth == 1) {sExpDate = sExpDate + "February ";}
	if (iMonth == 2) {sExpDate = sExpDate + "March ";}
	if (iMonth == 3) {sExpDate = sExpDate + "April ";}
	if (iMonth == 4) {sExpDate = sExpDate + "May ";}
	if (iMonth == 5) {sExpDate = sExpDate + "June ";}
	if (iMonth == 6) {sExpDate = sExpDate + "July ";}
	if (iMonth == 7) {sExpDate = sExpDate + "August ";}
	if (iMonth == 8) {sExpDate = sExpDate + "September ";}
	if (iMonth == 9) {sExpDate = sExpDate + "October ";}
	if (iMonth == 10) {sExpDate = sExpDate + "November ";}
	if (iMonth == 11) {sExpDate = sExpDate + "December ";}
	
	sExpDate = sExpDate + iYear + " ";
	
	if (iHour < 10) { sExpDate = sExpDate + "0" + iHour + ":"; }
	else { sExpDate = sExpDate + iHour + ":"; }
	
	if (iMins < 10) { sExpDate = sExpDate + "0" + iMins + ":00 GMT"; }
	else { sExpDate = sExpDate + iMins + ":00 GMT"; }
	
	return sExpDate;
}

// End hiding -->