function openscript(url){var Win = window.open(url,'open','width=500,height=400,resizable=1,scrollbars=yes,menubar=no,status=yes' );}
function showtb(tbnum){whichEl = eval("tbtype" + tbnum);if (whichEl.style.display == "none"){eval("tbtype" + tbnum + ".style.display=\"\";");}else{eval("tbtype" + tbnum + ".style.display=\"none\";");}}
 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array
function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv1");
		vDiv1 = document.all("menuDiv2");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv1.style.left)) || (mX > parseInt(vDiv1.style.left)+vDiv1.offsetWidth) || (mY < parseInt(vDiv1.style.top)-h) || (mY > parseInt(vDiv1.style.top)+vDiv1.offsetHeight)){
			vDiv1.style.visibility = "hidden";				
		}
		if (vDiv1.style.visibility == "hidden"){		
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;			
	}}
}
}
function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
    vMnuCode = "<table class=tbmenu onmouseout='HideMenu()'><tr><td>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space+3;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv1.innerHTML = vMnuCode;
	menuDiv1.style.top = t;
	menuDiv1.style.left = l;
	menuDiv1.style.visibility = "visible";
	isvisible = true;
}

function ShowMenu1(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
    vMnuCode = "<table class=tbmenu onmouseout='HideMenu()'><tr><td>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w1 = vSrc.offsetWidth;
	l1 = vSrc.offsetLeft + w1;
	t1 = vSrc.offsetTop - space - 4;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l1 += vParent.offsetLeft;
		t1 += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}
	menuDiv2.innerHTML = vMnuCode;
	menuDiv2.style.top = t1;
	menuDiv2.style.left = l1;
	menuDiv2.style.visibility = "visible";
	isvisible = true;
}

var i_messages = 0
var timer
function jspaper() {
if (document.all) {
content.innerHTML =messages[i_messages]
if (i_messages >= messages.length-1) {
i_messages = 0}       else {
            i_messages++}
    }
timer = setTimeout("jspaper()",4000)   }

var usersetup= '<table width=100% id=tab><a href=search.asp>Search</a></table><table width=100% id=tab><a href=usersetup.asp?action=myinfo>Change my information</a></table><table width=100% id=tab><a href=usersetup.asp?action=mypwd>Change my password</a></table><table width=100% id=tab><a href=SMS.asp>My mail box</a></table><table width=100% id=tab><a href=elselist.asp?action=good>Essential</a></table>'
var webdisp='<table width=100% id=tab><a href=cookies.asp?action=display1>Fast mode</a></table><table width=100% id=tab><a href=cookies.asp?action=display2>Standard mode</a></table><table width=100% id=tab><a href=usersetup.asp?action=display>My mode</a></table>'
var zhanqu='<table width=100% id=tab><a href=elselist.asp?action=today>New theme today</a></table><table width=100% id=tab><a href=bbsshow.asp?action=topmark>Integral gradation</a></table><table width=100% id=tab><a href=userlist.asp>Members</a></table><table width=100% id=tab><a href=bbsshow.asp?action=pic>All pictures</a></table><table width=100% id=tab><a href=usersetup.asp?action=administrator>Mange team</a></table>'