function divswitchto(x,state)
	{
	if (document.all)
		{ //IS IE 4 or 5 (or 6 beta)
		eval('document.all.' + x + '.style.display = state');
		}
	if (document.layers)
		{ //IS NETSCAPE 4 or below
		document.layers[x].display = state;
		}
	if (document.getElementById &&!document.all)
		{
		hza = document.getElementById(x);
		hza.style.display = state;
		}
	}

function divactivate(x)
	{
	divswitchto('aaa','none');
	divswitchto('bbb','none');
	divswitchto('ccc','none');
	divswitchto('ddd','none');
	divswitchto('eee','none');
	divswitchto('fff','none');
	divswitchto(x,'block');
	navcook(x);
	}
function navcook (x){
	var n = 'navi';
	document.cookie = n+ "=" +x;
	//document.cookie.n = nav.value;
}

function navload (){ // note.... IE6 dili mo dawat of cookies  {"-__-}
	var x = getCookie("navi");
	//alert(x)
	if(x == null){
		//alert('wa')
		divactivate('aaa');
	}else{
		divactivate(x);
	}
}
function getCookie(NameOfCookie){
	if (document.cookie.length > 0)	{
		begin = document.cookie.indexOf(NameOfCookie+"=");
		if (begin != -1){
			begin += NameOfCookie.length+1;
			end = document.cookie.indexOf(";", begin);
			if (end == -1) end = document.cookie.length;
				return unescape(document.cookie.substring(begin, end)); 
			}
		}else{	return null;
	}
}