﻿//标签浏览
function Show_Tab(Tab_ThisID_TotalNums,Tab_ThisID,Tab_ThisID_Order)
{
	for(var i=0;i<Tab_ThisID_TotalNums;i++)
	{
		document.getElementById("Tab_Content_"+Tab_ThisID+i).style.display="none";
	}
	document.getElementById("Tab_Content_"+Tab_ThisID+Tab_ThisID_Order).style.display="block";
	
	for(var i=0;i<Tab_ThisID_TotalNums;i++)
	{
		document.getElementById("Tab_Menu_"+Tab_ThisID+i).className="MenuOff";
	}
	document.getElementById("Tab_Menu_"+Tab_ThisID+Tab_ThisID_Order).className="MenuOn";
}

//友情链接弹出窗口
function GotoLink(selectControl)
{
	var v = selectControl.value;
	if (v != "")
	{
		window.open(v);
		selectControl.blur();
	}
	selectControl.selectedIndex=0;
}

//首页图片新闻
function PicIndex(pics_from,links_from,texts_from)
{
	//if(!document.layers&&!document.all) return;

	var PicIndex_width=240;
	var PicIndex_height=180;
	var text_height=20;
	var swf_height = PicIndex_height+text_height;

	var pics=pics_from;
	var links=links_from;
	var texts=texts_from;

	var PicIndexContent;
	PicIndexContent='<object ID="PicIndex_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ PicIndex_width +'" height="'+ swf_height +'">';
	PicIndexContent=PicIndexContent+'<param name="allowScriptAccess" value="sameDomain">';
	PicIndexContent=PicIndexContent+'<param name="movie" value="Func/JS/PicIndex.swf">';
	PicIndexContent=PicIndexContent+'<param name="quality" value="high">';
	PicIndexContent=PicIndexContent+'<param name="bgcolor" value="#F3F3F3">';
	PicIndexContent=PicIndexContent+'<param name="menu" value="false">';
	PicIndexContent=PicIndexContent+'<param name=wmode value="opaque">';
	PicIndexContent=PicIndexContent+'<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+PicIndex_width+'&borderheight='+PicIndex_height+'&textheight='+text_height+'">';
	PicIndexContent=PicIndexContent+'<embed ID="PicIndex_flash" src="Func/JS/PicIndex.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+PicIndex_width+'&borderheight='+PicIndex_height+'&textheight='+text_height+'" menu="false" bgcolor="#F3F3F3" quality="high" width="'+ PicIndex_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'; 
	PicIndexContent=PicIndexContent+'</object>';

	/*
	if(document.layers)
	{
		document.layers.PicIndexShow.document.write(PicIndexContent);
		document.layers.PicIndexShow.document.close();
	}
	else
	{
		if(document.all) PicIndexShow.innerHTML=PicIndexContent;
	}
	*/
	
	document.getElementById("PicIndexShow").innerHTML=PicIndexContent;

}
