/*menu*/
function menu_show(temp,tmpp)
{
	var tem=document.getElementById("menu_"+temp);
	tem.style.display="block";
	if(tmpp==1)
	{
		tem.style.display="none";
		}
	else if(tmpp==-1)
	{
		tem.style.display="block";
		}
	}
/*menu*/

/*tab*/
function showDiv2(obj,num,len)
{
var a=document.getElementById("a");
alert("未连动的大表格高度"+a.offsetHeight);


  var TB = document.getElementById("cheng");  
  var righttb=document.getElementById("righttb");
alert("右边div的高度"+righttb.offsetHeight);
  var arrTRS = TB.getElementsByTagName("tr");
  var arrTDS = new Array(), tableHeight = 0;
  var tmpMaxLen = 0;
  for(var i=0;i<arrTRS.length;i++){
     arrTDS = arrTRS[i].getElementsByTagName("td");
	 for(var j=0;j<arrTDS.length;j++){
       if(j==0)
       {           
           arrTDS[j].height=righttb.offsetHeight;

       }	   
	 }	
  }
alert("改变后的高度"+a.offsetHeight);




for(var id = 1;id<=len;id++)
{
var setID=obj+id;
var setnavID=obj+"_ka_"+id;
if(id==num){
    document.getElementById(setID).style.display="block";
    document.getElementById(setnavID).className="active";
}else{
    document.getElementById(setID).style.display="none";
    document.getElementById(setnavID).className="";
}
}










}
/*tab*/

/*tab*/
function showDiv(obj,num,len)
{
for(var id = 1;id<=len;id++)
{
var setID=obj+id;
var setnavID=obj+"_ka_"+id;
if(id==num){
    document.getElementById(setID).style.display="block";
    document.getElementById(setnavID).className="active";
}else{
    document.getElementById(setID).style.display="none";
    document.getElementById(setnavID).className="";
}
}
}
/*tab*/


/*flash轮播初始化*/
function swf_init()
{
    imgUrl1="images/img_1.jpg";
    imgtext1="11";
    imgLink1=escape("http://www.angang.com.cn/");
    //imgLink1="";
    
    imgUrl2="images/img_2.jpg";
    imgtext2="22";
    imgLink2=escape("http://www.angang.com.cn/");
    //imgLink2="";
    
  
    imgUrl3="images/img_3.jpg";
    imgtext3="33";
    imgLink3=escape("http://www.angang.com.cn/");
    //imgLink3="";
	
	imgUrl4="images/img_4.jpg";
    imgtext4="44";
    imgLink4=escape("http://www.angang.com.cn/");
    //imgLink4="";

    
     var focus_width=220;
     var focus_height=175;
     var text_height=0;
     var swf_height = focus_height+text_height;
     
     var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4;
     var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4;
     var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4;
     var flashCode = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">';
     flashCode = flashCode + '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">';
     flashCode = flashCode + '<param name="menu" value="false"><param name=wmode value="opaque">';
     flashCode = flashCode + '<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">';
     flashCode = flashCode + '<embed src="images/focus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"></embed>';
     flashCode = flashCode + '</object>';
     document.write(flashCode);
}
/*flash轮播初始化*/

/*加入收藏*/
function AddFavorite(sURL, sTitle)
{
     try
     {
         window.external.addFavorite(sURL, sTitle);
     }
     catch (e)
     {
         try
         {
             window.sidebar.addPanel(sTitle, sURL, "");
         }
         catch (e)
         {
             alert("加入收藏失败，有劳您手动添加。");
         }
     }
}

/*加入收藏*/
























































