<!-- hide this stuff from other browsers --> 
var Obj;
var exstat=new String();
var imgOpen = new Image()
var imgClose = new Image()
imgOpen.src="../admin/images/open.gif"
imgClose.src="../admin/images/close.gif"

exstat=readCookie("exstat");
if(exstat==""){exstat="0000000000000000000000000";}

function expand(cid){
	//var theLink=eval("class"+cid);
	//var theImg=eval("img"+cid);
	//theImg.src=(theImg.src.search("open")>=0)?theImg.src.replace("open","close"):theImg.src.replace("close","open");
	//theLink.style.display=(theLink.style.display=="none")?"":"none";
	ShowHide(cid);
	var newstat="",stat;
	for(var i=0;i<exstat.length;i++)
	{
		stat=exstat.charAt(i);
		if(i==(cid-1)){stat=(stat=="1")?"0":"1";}
		newstat+=stat;
	}
	exstat=newstat;
	writeCookie("exstat", newstat)
}
function ShowHide(el)
{
	Obj = eval("Column"+el);
	var whichEl = eval("img" + el);

	if(Obj.style.display == "none")
		{
		Obj.style.display = "block";
		whichEl.src = imgOpen.src;
		}
	else
		{
		Obj.style.display = "none";
		whichEl.src = imgClose.src;
		}
}
function switchbar()
{
	if (switchpoint.innerText==3)
		{
		switchpoint.innerText=4
		document.all("xxx").style.display="none" 
		top.content.cols="10,*"
		}
	else
		{
		switchpoint.innerText=3
		document.all("xxx").style.display="" 
		top.content.cols="180,*"
		}	
}
function onlist(obj,id) {
	var menu=eval(id);
	if (obj.src.indexOf("images/close.gif")>0){obj.src="images/close.gif"}
	else{obj.src="images/close.gif"}
	if ( menu.style.display == ""){menu.style.display = "none" }
	else {menu.style.display = ""}
}
function readCookie(name){
	var cookieValue = "";
	var search = name + "=";
	if(document.cookie.length > 0)
	{ 
		offset = document.cookie.indexOf(search);
		if (offset != -1)
		{ 
		offset += search.length;
		end = document.cookie.indexOf(";", offset);
		if (end == -1) end = document.cookie.length;
		cookieValue = unescape(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}
function writeCookie(name, value, hours){
	var expire = "";
	if(hours != null)
	{
		expire = new Date((new Date()).getTime() + hours * 3600000);
		expire = "; expires=" + expire.toGMTString();
	}
	document.cookie = name + "=" + escape(value) + expire;
}
// end the hiding comment -->

