﻿function pauseAutoSwitch(){clearTimeout(AutoPicSwitchTabTimer);}
function goonAutoSwitch(ident,index,count,TimeLength){clearTimeout(AutoPicSwitchTabTimer);AutoPicSwitchTabTimer=setTimeout("autoSwitchTab('"+ident+"',"+index+","+count+","+TimeLength+");",TimeLength);}
function autoSwitchTab(ident,index,count,TimeLength){if(index==count||index>count){index=0;}
switchTab(ident,index,count);index=index+1;AutoPicSwitchTabTimer=setTimeout("autoSwitchTab('"+ident+"',"+index+","+count+","+TimeLength+");",TimeLength);}
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 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 style="float:left;width:15px;height:18px;line-height:18px;text-align:center;margin-left:1px;background:#000000;margin:0;padding:0;" onmouseover="pauseSwitch();" onmouseout="goonSwitch();"><a href="javascript://" target="_self" class="sel" style="text-decoration:none;display:block;">'+i+'</a></li>';}
else{NavStr+='<li style="float:left;width:15px;height:18px;line-height:18px;text-align:center;margin-left:1px;background:#000000;margin:0;padding:0;" onmouseover="pauseSwitch();" onmouseout="goonSwitch();" onclick="goManSwitch('+i+');"><a href="javascript://" target="_self" style="text-decoration:none;display:block;">'+i+'</a></li>';}}
document.getElementById("SwitchNav").innerHTML=NavStr;}
function showSwitchTitle(screen){var titlestr="";titlestr='<h3><a href="'+Switcher[screen]['link']+'" target="_blank" style="text-decoration:none;color:#FFFFF;">'+Switcher[screen]['title']+'</a></h3><p><a href="'+Switcher[screen]['link']+'" target="_blank" style="text-decoration:none;color:#FFFFFF;">'+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 gotop(acceleration,time){acceleration=acceleration||0.1;time=time||16;var dx=0;var dy=0;var bx=0;var by=0;var wx=0;var wy=0;if(document.documentElement){dx=document.documentElement.scrollLeft||0;dy=document.documentElement.scrollTop||0;}
if(document.body){bx=document.body.scrollLeft||0;by=document.body.scrollTop||0;}
var wx=window.scrollX||0;var wy=window.scrollY||0;var x=Math.max(wx,Math.max(bx,dx));var y=Math.max(wy,Math.max(by,dy));var speed=1+acceleration;window.scrollTo(Math.floor(x/speed),Math.floor(y/speed));if(x>0||y>0){var invokeFunction="gotop("+acceleration+", "+time+")"
window.setTimeout(invokeFunction,time);}}
document.write("<div class='QQbox' id='divQQbox' >");document.write("<div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'>");document.write("<div class='t'></div>");document.write("<div class='infobox'>全国统一热线<br> </div>");document.write("<div class='con'>");document.write("<ul>");document.write("<li><a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=412986490&amp;Site=QQ咨询&amp;Menu=yes' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:412986490:4'  border='0' alt='QQ咨询' /> QQ咨询</a></li>");document.write("<li><a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=469999168&amp;Site=QQ咨询&amp;Menu=yes' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:412986490:4'  border='0' alt='QQ咨询' /> QQ咨询</a></li>");document.write("<li><a href='http://amos1.taobao.com/msg.ww?v=2&uid=jianbingz&s=2' target='_blank'><img src='http://amos1.taobao.com/online.ww?v=2&uid=tianyecn&s=2' width='16' height='16' border='0' alt='淘宝旺旺' /> 旺旺咨询</a></li>");document.write("<li><a href='http://amos.im.alisoft.com/online.aw?v=2&uid=%E5%96%84%E7%94%A8%E4%BD%B3%E8%BD%AF&site=cntaobao&s=1&charset=utf-8' target='_blank'><img src='http://amos1.taobao.com/online.ww?v=2&uid=%E5%96%84%E7%94%A8%E4%BD%B3%E8%BD%AF&s=2' width='16' height='16' border='0' alt='淘宝旺旺' /> 旺旺咨询</a></li>");document.write("<li>400.86800.net</li>");document.write("</ul>");document.write("</div>");document.write("<div class='b'></div>");document.write("</div>");document.write("<div id='divMenu' onmouseover='OnlineOver();'><img src='http://400.86800.net/wp-content/themes/400/images/qq_1.gif' class='press' alt='在线咨询'></div>");document.write("</div>");var tips;var theTop=145;var old=theTop;function initFloatTips(){tips=document.getElementById('divQQbox');moveTips();};function moveTips(){var tt=50;if(window.innerHeight){pos=window.pageYOffset}
else if(document.documentElement&&document.documentElement.scrollTop){pos=document.documentElement.scrollTop}
else if(document.body){pos=document.body.scrollTop;}
pos=pos-tips.offsetTop+theTop;pos=tips.offsetTop+pos/10;if(pos<theTop)pos=theTop;if(pos!=old){tips.style.top=pos+"px";tt=10;}
old=pos;setTimeout(moveTips,tt);}
initFloatTips();function OnlineOver(){document.getElementById("divMenu").style.display="none";document.getElementById("divOnline").style.display="block";document.getElementById("divQQbox").style.width="150px";}
function OnlineOut(){document.getElementById("divMenu").style.display="block";document.getElementById("divOnline").style.display="none";}
if(typeof(HTMLElement)!="undefined")
{HTMLElement.prototype.contains=function(obj){while(obj!=null&&typeof(obj.tagName)!="undefind"){　　　　
if(obj==this)return true;　　　　obj=obj.parentNode;　　}
return false;};}
function hideMsgBox(theEvent){　
if(theEvent){　
var browser=navigator.userAgent;　
if(browser.indexOf("Firefox")>0){　　
if(document.getElementById('divOnline').contains(theEvent.relatedTarget)){　　
return;}}
if(browser.indexOf("MSIE")>0){if(document.getElementById('divOnline').contains(event.toElement)){return;}}}
document.getElementById("divMenu").style.display="block";document.getElementById("divOnline").style.display="none";}