function expandcontent(cid, where)
	{
	
	var div = document.getElementById(cid).innerHTML;
	document.getElementById("leftcont").innerHTML=div;
	chAl (cid);
	if (window.al=="cinema")
		{
		SetCookie ("cocid", "infobl30", "Mon, 01-Jan-2020 00:00:00 GMT", "", "", null);
		}
	else SetCookie ("cocid", cid, "Mon, 01-Jan-2020 00:00:00 GMT", "", "", null);
	}
	
function chClass (name, cl)
	{
	if (window.al!=name) 
		{
		document.getElementById(name).className=cl;
		}
	}

function chAl (cid)
	{
	document.getElementById(window.al).className="top_bl";
	document.getElementById(window.al).style.cursor="pointer";
	document.getElementById(window.al+"_i").style.cursor="pointer";
	window.al="cinema";
	if (cid=="infobl1") {window.al="weather";}
	if (cid=="infobl2") {window.al="money";}
	document.getElementById(window.al).className="top_or";
	document.getElementById(window.al).style.cursor="default";
	document.getElementById(window.al+"_i").style.cursor="default";
	SetCookie ("coal", window.al, "Mon, 01-Jan-2020 00:00:00 GMT", "", "", null);
	}

function ReadCookie(name) 
	{
	var cookie = " " + document.cookie;
	var search = " " + name + "=";
	var setStr = null;
	var offset = 0;
	var end = 0;
	if (cookie.length > 0) {
		offset = cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = cookie.indexOf(";", offset)
			if (end == -1) {
				end = cookie.length;
			}
			setStr = unescape(cookie.substring(offset, end));
		}
	}
	return(setStr);
	}


function SetCookie (name, value, expires, path, domain, secure)
	{
      document.cookie = name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
	}

function onMenuLoad()
	{
	var cid = ReadCookie("cocid");
	if (cid==null || cid=="undefined") {cid = "infobl1";}
	window.al = ReadCookie("coal");
	if (window.al==null || window.al=="undefined") {window.al = "weather";}
	return cid;
	}

var al="weather";
