function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
	endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie () {
	var arg = "as=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
	var j = i + alen;
	if (document.cookie.substring(i, j) == arg)
	return getCookieVal (j);
	i = document.cookie.indexOf(" ", i) + 1;
	if (i == 0)
	break;
	}
}
function SetCookie (value) {
	document.cookie = "as=" + value+"; path=/" ;
}
function showdiv(){
	document.getElementById("asch_off").style.display = "none" ;
	document.getElementById("asch_on").style.display = "block" ;
	SetCookie("on") ;
}
function hidediv(){
	document.getElementById("asch_off").style.display = "block" ;
	document.getElementById("asch_on").style.display = "none" ;
	SetCookie("off") ;
}
function cook() {
	var as_c = GetCookie () ;
	if (as_c=="on") { 
		showdiv() ;
	} else {
		hidediv() ;
	}
}
