<!--
//for bar items function
 var h;
 var w;
 var l;
 var t;
 var topMar = 4;
 var leftMar = -6;
 var space = 0;
 var isvisible;

function HideMenu() 
{
	var mX;
	var mY;
	var vDiv;
	if (isvisible == true)
    {
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		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";
			vDiv.style.height = 0;
			isvisible = false;
		}
	}
	//document.getElementById('firstmenu').style.display='none';
}

function ShowMenu(vMnuCode,mode) 
{
	vSrc = window.event.srcElement;
	vMnuCode = "<table width=990 border=0 cellpadding=0 cellspacing=0 bgcolor=Transparent height=32><tr><td id=listtd height=30 align=left>" + vMnuCode + "</td></tr></table>";
	//alert(vMnuCode);
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = leftMar + 10;//vSrc.offsetLeft + leftMar;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t+0;
	if(mode==0)
		menuDiv.style.left = l-4;
	else{
		menuDiv.style.left = l+w-lenArray[8];
		//menuDiv.style.right = l-4+w;
	}
	menuDiv.style.visibility = "visible";
	//menuDiv.style.background-color = "Transparent";
	isvisible = true;
	//document.getElementById('firstmenu').style.display='none';
}

function makemenu(Mnu,len)
{
  var tmpStr='';
  tmpStr+='<div height=35px bgcolor=Transparent border=0 cellpadding=0 cellspacing=0 width=100% style="background-image:url(image/title2.jpg);background-color: Transparent;">';
  for(i=0;i<Mnu.length;i++)
  {
    tmpStr+=Mnu[i];
  }
    tmpStr+='</div>';
  return tmpStr;
}

function chgpos(){
    l=cont.offsetLeft;
    vParent = cont.offsetParent;
    while (vParent.tagName.toUpperCase() != "BODY"){
        l += vParent.offsetLeft;
        vParent = vParent.offsetParent;
    }
    content.style.width=cont.offsetWidth;
    content.style.left=l;
    content.style.visibility= "visible";
}
//-->
