
function getClientWidth()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function getBodyScrollTop()
{
	return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}

function getBodyScrollLeft()
{
	return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}

function getDocumentHeight()
{
	return (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;
}

function getDocumentWidth()
{
	return (document.body.scrollWidth > document.body.offsetWidth)?document.body.scrollWidth:document.body.offsetWidth;
}

function popmenu(node,img)

{



	$ul=document.getElementById(node);



if(document.all && navigator.userAgent.indexOf("Opera") == -1)

{ $st='block'}else{$st='table-row'}





	if ($ul.style.display == $st)

	{

        $ul.style.display = "none";

        if (img!="0")  { $im=document.getElementById(img); $im.src = "../pic/p.gif";}

        }

        else

        {

         $ul.style.display = $st;

         if (img!="0")  { $im=document.getElementById(img); $im.src = "../pic/m.gif";}

        }      

         

}



function cv(elem,cvet) 

{

oldId = "str"+elem;

oldBgColor = document.getElementById(oldId).style.background;

document.getElementById(oldId).style.background = cvet;

}
