//ŒÓµÄë[²ØÅcÕ¹é_
function menuShow(obj,maxh,obj2)
{
  if(obj.style.pixelHeight<maxh)
  {
    obj.style.pixelHeight+=maxh/20;
	obj.filters.alpha.opacity+=5;
	//obj2.background="images/title_bg_hide.gif";
    if(obj.style.pixelHeight==maxh/10)
	  obj.style.display='block';
	myObj=obj;
	myMaxh=maxh;
	myObj2=obj2;
	setTimeout('menuShow(myObj,myMaxh,myObj2)','0');
  }
}
function menuHide(obj,maxh,obj2)
{
  if(obj.style.pixelHeight>0)
  {
    if(obj.style.pixelHeight==maxh/20)
	  obj.style.display='none';
    obj.style.pixelHeight-=maxh/20;
	obj.filters.alpha.opacity-=5;
	//obj2.background="images/title_bg_show.gif";
	myObj=obj;
	myMaxh=maxh
	myObj2=obj2;
	setTimeout('menuHide(myObj,myMaxh,myObj2)','0');
  }

}
function menuChange(obj,maxh,obj2)
{
  if(obj.style.pixelHeight)
  {
    menuHide(obj,maxh,obj2);
  }
  else
	  menuShow(obj,maxh,obj2);
}
//visit count
var req = null;
var node;
function varInit(){
	if(window.XMLHttpRequest) {
		try {
			req = new XMLHttpRequest();
		}
		catch(e) {
			req = false;
		}
		// branch for IE/Windows ActiveX version
	}
	else if(window.ActiveXObject) {
		try {
			req = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e) {
			try {
				req = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e) {
				req = false;
			}
		}
	}
}
// set hits
function SetObjHits(What,Obj,CateType,Num){
	varInit();
	if(What == null) return;
	if(req)
	{
	surl ='../inc/set_obj_hits.asp?obj='+Obj+'&c='+CateType+'&n='+Num;
	req.open('GET', surl, false);
	req.send();
	req = false;
	}
}
function OnClickCate(What,Obj,Num){
	varInit();
	if(What == null) return;
	if(req)
	{
	surl ='../set_obj_hits.asp?obj='+Obj+'&n='+Num;
	req.open('GET', surl, false);
	req.send();
	req = false;
	}
}