function showclose(){var obj=document.getElementById("closeshow");if(obj.style.display=="none")
obj.style.display="block";else
obj.style.display="none";}
function g(o){return document.getElementById(o);}
function HoverLi1(n){for(var i=1;i<=4;i++){g('fc_'+i).className='normaltab3';g('tbc1_0'+i).className='undis';}g('tbc1_0'+n).className='dis';g('fc_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi2(n){for(var i=1;i<=4;i++){g('qc_'+i).className='normaltab3';g('tbc2_0'+i).className='undis';}g('tbc2_0'+n).className='dis';g('qc_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi3(n){for(var i=1;i<=4;i++){g('lc_'+i).className='normaltab3';g('tbc3_0'+i).className='undis';}g('tbc3_0'+n).className='dis';g('lc_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi4(n){for(var i=1;i<=4;i++){g('dn_'+i).className='normaltab3';g('tbc4_0'+i).className='undis';}g('tbc4_0'+n).className='dis';g('dn_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi5(n){for(var i=1;i<=4;i++){g('jh_'+i).className='normaltab3';g('tbc5_0'+i).className='undis';}g('tbc5_0'+n).className='dis';g('jh_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi6(n){for(var i=1;i<=4;i++){g('fs_'+i).className='normaltab3';g('tbc6_0'+i).className='undis';}g('tbc6_0'+n).className='dis';g('fs_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi7(n){for(var i=1;i<=4;i++){g('jk_'+i).className='normaltab3';g('tbc7_0'+i).className='undis';}g('tbc7_0'+n).className='dis';g('jk_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi8(n){for(var i=1;i<=4;i++){g('ly_'+i).className='normaltab3';g('tbc8_0'+i).className='undis';}g('tbc8_0'+n).className='dis';g('ly_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi9(n){for(var i=1;i<=4;i++){g('sj_'+i).className='normaltab3';g('tbc9_0'+i).className='undis';}g('tbc9_0'+n).className='dis';g('sj_'+n).className='hovertab3';}
function g(o){return document.getElementById(o);}
function HoverLi10(n){for(var i=1;i<=4;i++){g('mt_'+i).className='normaltab3';g('tbc10_0'+i).className='undis';}g('tbc10_0'+n).className='dis';g('mt_'+n).className='hovertab3';}

function getDownloadUrl(productName){var random=parseInt(Math.random()*100);var temp=0;for(var i=0;i<productName.length&&random>temp;i++){temp+=parseInt(productName[i].percent);}
i=(random==0?0:i-1);return"<a href=\""+productName[i].url+"\">"+productName[i].name+"</a>";}
function switchTab(identify,index,count){for(i=0;i<count;i++){var CurTabObj=document.getElementById("Tab_"+identify+"_"+i);var CurListObj=document.getElementById("List_"+identify+"_"+i);if(i!=index){fRemoveClass(CurTabObj,"upH3");fRemoveClass(CurListObj,"upBox");}}
fAddClass(document.getElementById("Tab_"+identify+"_"+index),"upH3");fAddClass(document.getElementById("List_"+identify+"_"+index),"upBox");}
function switchSideTab(identify,index,count){for(i=0;i<count;i++){var CurTabObj=document.getElementById("Tab_"+identify+"_"+i);var CurListObj=document.getElementById("List_"+identify+"_"+i);if(i!=index){fRemoveClass(CurTabObj,"upH3");fRemoveClass(CurListObj,"upUL");}}
fAddClass(document.getElementById("Tab_"+identify+"_"+index),"upH3");fAddClass(document.getElementById("List_"+identify+"_"+index),"upUL");}
function fAddClass(XEle,XClass)
{if(!XClass)throw new Error("XClass 不能为空!");if(XEle.className!="")
{var Re=new RegExp("\\b"+XClass+"\\b\\s*","");XEle.className=XEle.className.replace(Re,"");var OldClassName=XEle.className.replace(/^\s+|\s+$/g,"");if(OldClassName==""){XEle.className=XClass;}
else{XEle.className=OldClassName+" "+XClass;}}
else XEle.className=XClass;}
function fRemoveClass(XEle,XClass)
{if(!XClass)throw new Error("XClass 不能为空!");var OldClassName=XEle.className.replace(/^\s+|\s+$/g,"");if(OldClassName!="")
{var Re=new RegExp("\\b"+XClass+"\\b\\s*","");XEle.className=OldClassName.replace(Re,"");}}
function switchPic(screen){if(screen>MaxScreen){screen=1;}
for(i=1;i<=MaxScreen;i++){document.getElementById("Switch_"+i).style.display="none";}
document.getElementById("Switch_"+screen).style.display="block";showSwitchNav(screen);showSwitchTitle(screen);CurScreen=screen;}
function showSwitchNav(screen){var NavStr="";for(i=1;i<=MaxScreen;i++){if(i==screen){NavStr+='<li onmouseover="pauseSwitch();" onmouseout="goonSwitch();"><a href="javascript://" target="_self" class="sel">'+i+'</a></li>';}
else{NavStr+='<li onmouseover="pauseSwitch();" onmouseout="goonSwitch();" onclick="goManSwitch('+i+');"><a href="javascript://" target="_self">'+i+'</a></li>';}}
document.getElementById("SwitchNav").innerHTML=NavStr;}
function showSwitchTitle(screen){var titlestr="";titlestr='<h3><a href="'+Switcher[screen]['link']+'" target="_blank">'+Switcher[screen]['title']+'</a></h3><p><a href="'+Switcher[screen]['link']+'" target="_blank">'+Switcher[screen]['stitle']+'</a></p>';document.getElementById("SwitchTitle").innerHTML=titlestr;}
function reSwitchPic(){refreshSwitchTimer=null;switchPic(CurScreen+1);refreshSwitchTimer=setTimeout('reSwitchPic();',3000);}
function pauseSwitch(){clearTimeout(refreshSwitchTimer);}
function goonSwitch(){clearTimeout(refreshSwitchTimer);refreshSwitchTimer=setTimeout('reSwitchPic();',3000);}
function goManSwitch(index){clearTimeout(refreshSwitchTimer);CurScreen=index-1;reSwitchPic();}
function floatAdMove(){try{BigAd=document.getElementById("BigAd")}catch(e){}
if(BigAd.style.display!="none"){if(document.ns){BigAd.style.top=bdy.scrollTop+bdy.clientHeight-imgheight_close-360;BigAd.style.left=bdy.offsetWidth/2-bdy.scrollLeft-300;}
else{BigAd_style_left=bdy.offsetWidth/2-bdy.scrollLeft-300;BigAd_style_top=200;BigAd.style.top=BigAd_style_top+"px";BigAd.style.left=BigAd_style_left+"px";}}
setTimeout("floatAdMove();",50);}
function FloatCtrlMove(){try{FloatCtrl=document.getElementById("FloatCtrl")}catch(e){}
if(FloatCtrl.style.display!="none"){if(document.ns){FloatCtrl.style.top=bdy.scrollTop+bdy.clientHeight-imgheight_close;FloatCtrl.style.left=bdy.scrollLeft+bdy.offsetWidth-150;}
else{FloatCtrl_style_left=bdy.scrollLeft+bdy.offsetWidth-150;FloatCtrl_style_top=500;FloatCtrl.style.top=FloatCtrl_style_top+"px";FloatCtrl.style.left=FloatCtrl_style_left+"px";}}
setTimeout("FloatCtrlMove();",50);}
function showFloatAd(){cleanTimer();try{floatbig=document.getElementById("floatbig")}catch(e){}
if(floatbig.innerHTML!=""){BigAdStartTimer=setTimeout("Effect.Appear('BigAd');",500);BigAdEndTimer=setTimeout("hiddenFloatAd();",6000);hiddenFloatCtrl();}}
function hiddenFloatAd(){cleanTimer();Effect.Fade('BigAd');showFloatCtrl();}
function showFloatCtrl(){try{FloatCtrl=getElementById("FloatCtrl")}catch(e){}
FloatCtrl.style.display="block";}
function hiddenFloatCtrl(){try{FloatCtrl=getElementById("FloatCtrl")}catch(e){}
FloatCtrl.style.display="none";}
function cleanTimer(){clearTimeout(BigAdStartTimer);clearTimeout(BigAdEndTimer);}
