	 var navigatorName = "Microsoft Internet Explorer";
   var isIE = false;
   var result;
   
   if( navigator.appName == navigatorName ){
    isIE = true;    
   }  
function menuShow(obj,maxh,obj2)
{
	if(isIE){
		if(obj.style.pixelHeight<maxh)
	  {
	  	
	    obj.style.pixelHeight+=maxh/20;
	    obj.filters.alpha.opacity+=5;
	    obj2.background="jsfile/imagesa29/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)','5');
	  }
	}else{
	  if(obj.clientHeight<maxh + 10)
	  {
	  	if(obj.style.display='none'){
	  		obj.style.display='block'
	  	}
	    obj.style.height = (obj.clientHeight + maxh/20) + 'px';
	    obj2.background="jsfile/imagesa29/title_bg_hide.gif";
	    if(obj.clientHeight==maxh/10)
	      obj.style.display='block';
	    myObj=obj;
	    myMaxh=maxh;
	    myObj2=obj2;
	    setTimeout('menuShow(myObj,myMaxh,myObj2)','5');
	  }
	}
}
function menuHide(obj,maxh,obj2)
{
	if(isIE){
		if(obj.style.pixelHeight>0)
	  {
	  	//alert(obj.style.pixelHeight);
	    if(obj.style.pixelHeight==maxh/20)
	      obj.style.display='none';
	    obj.style.pixelHeight-=maxh/20;
	    obj.filters.alpha.opacity-=5;
	    obj2.background="jsfile/imagesa29/title_bg_show.gif";
	    myObj=obj;
	    myMaxh=maxh
	    myObj2=obj2;
	    setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
	  }
	  else
	    if(whichContinue){
	    	 whichContinue.click();
	    }
	     
	}else{
	  if(obj.clientHeight>0)
	  {
	    if(obj.clientHeight==maxh/20)
	      obj.style.display='none';
	    
	    obj.style.height = (obj.clientHeight - maxh/20) + 'px';
	    obj2.background="jsfile/imagesa29/title_bg_show.gif";
	    myObj=obj;
	    myMaxh=maxh
	    myObj2=obj2;
	    setTimeout('menuHide(myObj,myMaxh,myObj2)','5');
	  }
	  else
    if(whichContinue){
    	 whichContinue.onclick();
    }  
  }  
}
function menuChange(obj,maxh,obj2)
{
	var hh;
	if(isIE){
		hh = obj.style.pixelHeight;
	}else{
		hh = obj.clientHeight;
	}
		
  if(hh)
  {
    menuHide(obj,maxh,obj2);
    whichOpen='';
    whichcontinue='';
  }
  else
    if(whichOpen)
    {
      whichContinue=obj2;
      
      if(isIE){
      	whichOpen.click();
      }else{
      	whichOpen.onclick();
      }
      
    }
    else
    {
      menuShow(obj,maxh,obj2);
      whichOpen=obj2;
      whichContinue='';
    }
}