﻿function h(obj,url){obj.style.behavior='url(#default#homepage)';obj.setHomePage(url);}

function hc(i){
	var img = window["BD_PS_C"+(new Date()).getTime()]=new Image();
	img.src = "http://s.baidu.com/w.gif?fm=hp&tn="+i+"&t="+new Date().getTime();
}
function top_chouchang()
{
var url=window.location.href;
var title=document.title;
window.external.addFavorite(''+url+'',''+title+'');
}

$(document).ready(function () {    
  $('#nav li').hover(   
       function () {   
            //show its submenu   
          $('ul', this).slideDown(0);   
  
       },    
       function () {   
           //hide its submenu   
           $('ul', this).slideUp(0);            
      }   
    ),
      

	  $('#idx10 li').hover(   
       function () {
	 $('#idx10 img').slideUp(0),
		 $('img', this).slideDown(0);
       }     
    ),
      $('#tsanv').hover(   
       function () {   
            //show its submenu   
          AllDropDownLists();   
  
       },    
       function () {   
           //hide its submenu   
           AllDropDownLists();            
      }   
    )
	  }); 
	  
	  
	  function AllDropDownLists()
{
   var n= window .form1.elements.length;
  //drp 隐藏/显示 
    for (var i=0;i<  window .form1.elements.length;i++) 
       { 
    
              var e =  window .form1.elements[i];
   
              if (e.type == 'select-one'||e.type == 'select-two')        
              { if( e.style.display =="none")
               e.style.display ="";
                 else           
              e.style.display = "none";             
              }    
       }
      
 }
function topbtn()
{
url="newslist_"+document.getElementById("selectTest1").value+".htm?name="+document.getElementById("txtname").value;
parent.location.href=url;
return false ;
}

