﻿function $() {
	var elements = new Array();
	for (var i = 0; i < arguments.length; i++) {
		var element = arguments[i];
		if (typeof element == 'string') element = document.getElementById(element);
		if (arguments.length == 1) return element;
		elements.push(element);
	} return elements;
}

function $G(){if(arguments[arguments.length-1]=="#")pars = window.location.hash;else pars = window.location.search;	var oRegex = new RegExp( '[\?#&]' + arguments[0] + '=([^&]+)', 'i' ) ;
	var oMatch = oRegex.exec( pars ); if( oMatch && oMatch.length > 1 )return oMatch[1] ;else return '';}

function hi(msg){
	if($('hi'))$('hi').innerHTML=msg;
}

function size(C){$("content").className=C;}

function resetThis(ipt,str){
	if(ipt.value==str){ipt.value='';}
}

function checkNavSo(f,n){
	if($('keyword'+n).value.length<3){
		alert('搜索内容不能为空，并且至少3个字符！');
		return false;
	}
}
function changeSoForm(n){
for(var i=1;i<=3;i++){
	$('SoTab'+i).className='';$('so'+i).className='h';
}
$('SoTab'+n).className='Hover';$('so'+n).className='';
}


//----------
var soHTML='\
<div id="kefus" style="height:103px;background:url(\'/focus/kefu.jpg\') no-repeat;padding:8px 0 0 120px;font-family:Tahoma;">\
全国热线: 400-650-3611<br />\
北京总部: 010-51667414<br />\
加盟合作: 010-51667424<br />\
小升初<span style="font-family:宋体">QQ</span>群: 21906722<br />\
初中家长群: 37563172\
</div>\
\
<!--dl id="search"><dt>\
<strong id="SoTab1" onmouseover="changeSoForm(1)" class="Hover">八人教育</strong>\
<strong id="SoTab2" onmouseover="changeSoForm(2)">学习中心</strong>\
<strong id="SoTab3" onmouseover="changeSoForm(3)">论坛帖子</strong>\
</dt>\
<dd>\
<form id="So1" action="/plus/search.php" name="so1" onsubmit="checkNavSo(this,1)" target="_blank">\
<input name="keyword" id="keyword1" type="text" class="searchtxt" />\
<input type="submit" value="八人搜索" />\
<input name="searchtype" type="hidden" value="titlekeyword" />\
<input type="hidden" name="kwtype" value="1" />\
</form>\
<form id="So2" action="http://study.spthome.com/plus/search.php" name="so2" class="h" target="_blank" onsubmit="checkNavSo(this,2)">\
<input name="keyword" id="keyword2" type="text" class="searchtxt" />\
<input type="submit" value="学习中心" />\
<input name="searchtype" type="hidden" value="titlekeyword" />\
<input type="hidden" name="kwtype" value="1" />\
</form>\
<form id="So3" action="http://bbs.spthome.com/search.php" name="so3" class="h" target="_blank" onsubmit="checkNavSo(this,3)">\
<input name="srchtxt" id="keyword3" type="text" class="searchtxt" />\
<input type="submit" value="论坛搜索" />\
<input name="srchtype" type="hidden" value="title" />\
<input type="hidden" name="kwtype" value="1" />\
</form>\
</dd>\
</dl-->';

function showZTform(){
document.write('<form id="login" class="l" method="post" name="login" action="http://bbs.spthome.com/logging.php?action=login&loginsubmit=true" onsubmit="return chechForm(this)">\
<input type="text" class="txt" id="username" name="username" size="15" maxlength="40" onclick="resetThis(this,\'用户名\');" onfocus="resetThis(this,\'用户名\')" onblur="resetThis(this,\'用户名\')" value="用户名" />\
<input type="password" class="txt" id="password" name="password" size="15" onclick="resetThis(this,\'$%^`*@\');" onfocus="resetThis(this,\'$%^`*@\')" onblur="resetThis(this,\'$%^`*@\')" value="$%^`*@" onkeypress="if((event.keyCode ? event.keyCode : event.charCode) == 13) $(\'login\').submit()" />\
<button name="userlogin" type="submit" class="sb" value="true" title="登录">登录</button>\
<a id="linkLogin" target="_blank" href="http://bbs.spthome.com/register.php">注册</a>\
<input type="hidden" name="formhash" value="dbc7069e" />\
<input type="hidden" name="loginfield" value="username" />\
<input type="hidden" name="cookietime" value="0" />\
</form>\
<form id="so" action="/plus/search.php" name="formsearch">\
<span>站内搜索: </span><input type="hidden" name="kwtype" value="1" />\
<input type="hidden" name="searchtype" value="titlekeyword" />\
<input name="keyword" id="keyword" class="txt" type="text" class="searchtxt" value="" />\
<input type="submit" id="submit" class="sb" value="搜索" />\
</form>\
');
}



//home --------
//gundong
function init_srolltext(){ 
   scrollElem.scrollTop = 0; 
   setInterval('scrollUp()', 60); 
} 
function scrollUp(){ 
   if(stopscroll) return; 
   currentTop += 1; 
   if(currentTop == 19) { 
	   stoptime += 1; 
	   currentTop -= 1; 
	   if(stoptime == 36) { 
		    currentTop = 0; 
		    stoptime = 0; 
	   } 
   }
   else{ 
	   preTop = scrollElem.scrollTop; 
	   scrollElem.scrollTop += 1; 
	   if(preTop == scrollElem.scrollTop){ 
		    scrollElem.scrollTop -= 36; //////////////////
		    scrollElem.scrollTop += 1; 
	   } 
   } 
} 




//--slide

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)
{/* shawl.qiu code, void return */
  if(!XClass) throw new Error("XClass 2??ü?a??!");
  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;
}/* end function fAddClass(XEle, XClass) */

function fRemoveClass(XEle, XClass)
{/* shawl.qiu code, void return */
  if(!XClass) throw new Error("XClass 2??ü?a??!");
  var OldClassName = XEle.className.replace(/^\s+|\s+$/g,"") ;
  if(OldClassName!="") 
  {
	
    var Re = new RegExp("\\b"+XClass+"\\b\\s*", "");
    XEle.className = OldClassName.replace(Re, "");
  }
}/* function fRemoveClass(XEle, 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);
	//Effect.Appear("Switch_"+screen);
			
	//switchLittlePic(screen);
	//showSwitchTitles(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]['desc']+'</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);
 }
 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);
}
//----end slide

function hoverNav(){
	if($('placenav')){
		str=$('placenav').innerHTML;
		urlTemp = str.split('"');
		$('mainNav').innerHTML=$('mainNav').innerHTML.replace('><A onfocus=this.blur() href="http://www.eightedu.com'+urlTemp[3]+'"', ' class="Hover"><A onfocus=this.blur() href="http://www.eightedu.com'+urlTemp[3]+'"').replace('><A onfocus=this.blur() href="'+urlTemp[3]+'"', ' class="Hover"><A onfocus=this.blur() href="'+urlTemp[3]+'"');
	}
	if(!document.getElementById('mainsites')){document.body.style.backgroundPosition='0px -230px'}
}


//----boxMsg
function creatBLDbox(OutElementWidth,SmallBoxHeight){
	var BoxHeight = document.body.scrollHeight;
	if(BoxHeight < document.documentElement.clientHeight) BoxHeight = document.documentElement.clientHeight;
	if(BoxHeight < document.body.clientHeight) BoxHeight = document.body.clientHeight;
	 	
	var BLDboxBg = document.createElement("DIV");
	var BLDbox = document.createElement("DIV");

	BLDboxBg.id = "BLDboxBg";
	BLDboxBg.style.position = "absolute";
	BLDboxBg.style.zIndex = "1000";
	BLDboxBg.style.left = "0px";
	BLDboxBg.style.top = "0px";
	BLDboxBg.style.width = "100%";
	BLDboxBg.style.height = BoxHeight +"px";
	BLDboxBg.style.background = "#000";
	//BLDboxBg.style.background = "url(BLD/images/showcase_bg.jpg) center center"; //如果希望背景遮罩是图片 可更改这个值
	BLDboxBg.style.filter = "alpha(opacity=30)";
	BLDboxBg.style.opacity = 0.30;

	BLDbox.id="BLDbox";
	BLDbox.style.position = "absolute";
	BLDbox.style.zIndex = "1001";
	BLDbox.style.left = "0px";
	BLDbox.style.top = "50%";
	BLDbox.style.width = "100%";
	BLDbox.style.textAlign = "center";
	BLDbox.style.height = SmallBoxHeight+"px";
	if(document.body.scrollTop!=0)/*这个值会因不同的<!DOCTYPE>声明而不同*/
		BLDbox.style.marginTop = document.body.scrollTop - SmallBoxHeight/2+"px";
	else
		BLDbox.style.marginTop = document.documentElement.scrollTop - SmallBoxHeight/2+"px";

	document.body.appendChild(BLDboxBg);
	document.body.appendChild(BLDbox);
	document.body.onselectstart = function(){return false;}
	document.body.oncontextmenu = function(){return false;}

	window.onresize=function(){ /*随窗口大小自动调节背景遮罩的宽度*/
		if( document.body.clientWidth <=OutElementWidth)
			BLDboxBg.style.width = OutElementWidth +"px";
		else
			BLDboxBg.style.width = "100%";
	}
}

function removeBLDbox(){
	document.body.removeChild(document.getElementById('BLDboxBg'));
	document.body.removeChild(document.getElementById('BLDbox'));
	document.body.onselectstart = function(){return true;}
	document.body.oncontextmenu = function(){return true;}
}

function baomingBox(){
	creatBLDbox(900,360);
	n=arguments.length;
	if(n>0)aID=arguments[0];
	if($('title'+aID)){
		tit=$('title'+aID).innerText;
		if(tit=='')tit=$('title'+aID).innerHTML;
	}else{tit="在线报名、课程咨询——八人教育";}
	if(n>1)tit=arguments[1];

	HTML ='<dl id="courseBox">';
	HTML+='<dt style="text-align:left"><div class="close" onclick="removeBLDbox()"></div>';
	HTML+=tit+'</dt>';
	HTML+='<dd><iframe border="0" frameborder="0" height="330" marginheight="1" marginwidth="1" name="baoming" scrolling="no" src="/plus/baoming/index.php?courseid='+aID+'&pos=box&title='+tit+'" width="100%"></iframe></dd>';
	HTML+='</dl>';
	$('BLDbox').innerHTML=HTML;
}

function winBox(){
	tit='八人教育 '+arguments[2];
	url=arguments[1];
	if(arguments[0]==1)url='/plus/'+url;
	HTML ='<dl id="courseBox">';
	HTML+='<dt ><div class="close" onclick="removeBLDbox()"></div>';
	HTML+=tit+'</dt>';
	HTML+='<dd><iframe border="0" frameborder="0" height="330" marginheight="1" marginwidth="1" name="baoming" scrolling="auto" src="'+url+'" width="100%"></iframe></dd>';
	HTML+='</dl>';
	creatBLDbox(900,360);
	$('BLDbox').innerHTML=HTML;
}

//-------tq
function setCookie(name,value){
    expires=new Date();
    expires.setTime(expires.getTime()+(86400*1));
    document.cookie=name+"="+value+"; expires="+expires.toGMTString()+"; path=/";
}
function getCookie(Name) {
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search) 
      if (offset != -1) { // if cookie exists 
         offset += search.length 
         end = document.cookie.indexOf(";", offset) 
         if (end == -1) 
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      } 
   }
   return 0;
}
TQ=getCookie('showTQ');
if(TQ==''){TQ=0;}
else{TQ=parseInt(TQ);}
TQ++;
NTQ=TQ+'';
setCookie('showTQ',NTQ);

//if(TQ>2){
	document.write('<style type="text/css">#tracqfloater1 { display:none !important;}</style>');
//}

function tq(){
	hoverNav();
	var t='tq.c';
	document.write('<scri'+'pt type="text/javascript" src="http://float2006.'+t+'n/floatcard?adminid=8377824&sort='+(window.location.href.indexOf("/qiujikecheng/")>0?0:1)+'"></scr'+'ipt>');
}
function To400(){//更改TQ的不在线链接
if($('tracqfloater')){
html=$('tracqfloater').innerHTML;
html=html.replace("tq_OpenCircleWin()","EP400_OpenChatWin(-1)");
html=html.replace("tq_OpenAgentSite()","EP400_OpenChatWin(-2)");
htmls=html.split("javascript:tq_");
html=htmls[0];
for(var i=1;i<htmls.length;i++){
	if(htmls[i].indexOf("offline")>0){html+="EP400_"+htmls[i];}
	else html+="tq_"+htmls[i];
	}
divL='<DIV style="WIDTH: 100%; BACKGROUND: url(http://sysimages.tq.cn/float_images/mid_new_002.gif) repeat-y; HEIGHT: 24px" class=tracq_div>\
<table><tr><td>';
divR='</td></tr></table></div>';

var QQ=divL+'<a style="margin:0 0 0 10px" href="http://sighttp.qq.com/cgi-bin/check?sigkey=53a57f82fb6883d3dd29d863681ff4f001df16031764a5ebb2aa0ead505aa48a"; target=_blank; onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=53a57f82fb6883d3dd29d863681ff4f001df16031764a5ebb2aa0ead505aa48a\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC=\'http://wpa.qq.com/pa?p=1:859893540:42\' alt="向林老师 咨询招生或课程情况"></a></td><td>林</td></tr>\
<tr><td><a target="_blank" href="http://wpa.qq.com/msgrd?v=1&uin=109528383&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:109528383:42" alt="向王老师 咨询招生或课程情况" title="向王老师 咨询招生或课程情况"></a></td><td>王</td></tr>\
<tr><td><a style="margin:0 0 0 10px" href="http://sighttp.qq.com/cgi-bin/check?sigkey=8cd5c084c46ddb9423289705658a275ae2471706c7e8041ae8077a3f850225b2"; target=_blank; onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=8cd5c084c46ddb9423289705658a275ae2471706c7e8041ae8077a3f850225b2\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img border="0" SRC=\'http://wpa.qq.com/pa?p=1:859837541:42\' alt="向黄老师 咨询招生或课程情况"></a></td><td>黄'+divR;
//<tr><td><a href="http://sighttp.qq.com/cgi-bin/check?sigkey=44e89d5faba3126e2d13a2f77b102688d458ca3f176cb27e7c8dfaa1ae6780945c9226a6acf42340864d44186eab46ba0ba698a8b5084c8a216b70ae9ea253e6189bc9c028595e042dd766ca642b2fdf"; target=_blank; onclick="var tempSrc=\'http://sighttp.qq.com/wpa.js?rantime=\'+Math.random()+\'&sigkey=44e89d5faba3126e2d13a2f77b102688d458ca3f176cb27e7c8dfaa1ae6780945c9226a6acf42340864d44186eab46ba0ba698a8b5084c8a216b70ae9ea253e6189bc9c028595e042dd766ca642b2fdf\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"><img SRC=\'http://wpa.qq.com/pa?p=1:859805946:3\' alt="向刘老师 咨询招生或课程情况"></a></td><td>刘</td></tr>\

var jiameng=divL+'<a style="margin:0 0 0 10px" href="http://wpa.qq.com/msgrd?V=1&Uin=122518391&Site=eightedu.com&Menu=yes"><img border="0" SRC=\'http://wpa.qq.com/pa?p=1:122518391:3\' alt="点击这里给我发消息"></a>\
</td><td>王'+divR;
html=html.replace('课程TM咨询</DIV></DIV>','课程TM咨询</DIV></DIV>'+QQ);
html=html.replace("加盟合作咨询</DIV></DIV>","加盟合作咨询</DIV></DIV>"+jiameng);//招聘QQ
html=html.replace("http://sysimages.tq.cn/float_images/down_new_002.gif",'/templets/common/down_new_002.gif');//电话号码

$('tracqfloater').innerHTML=html;
html2=$('tracqfloater1').innerHTML;
html2=html2.replace('网站管理员请求和您通话！（本系统由TQ提供）','八人教育客服请求和您通话！');
html2=html2.replace(/onNetscreenCancel/gi,'EPtqCancel');
if(window.location.href.indexOf("/qiujikecheng/")>0){
	$('tracqfloater1').innerHTML="<!--nothing-->";
	$('tracqfloater1').style.display="none";
}
else{$('tracqfloater1').innerHTML=html2};
clearInterval(timename);
}
}
function EPtqCancel(){
	$('tracqfloater1').className="h";$('tracqfloater1').innerHTML="<!--nothing-->";$('tracqfloater1').style.display="none";
	setCookie('showTQ',10);
}
function EP400_OpenChatWin(id){
msg="请用座机或手机拨打八人教育服务热线：\n400-650-3611";
if(id>=0){msg="该老师暂时不在线！\n\n"+msg;}
alert(msg);
}

function fxCity(fxArr){
	u=window.location.href;
	N=-1;
	for(i=0;i<fxArr.length;i++){
		if(u.indexOf("/"+fxArr[0][i])>0){N=i}
	}
	return N;
}
function fxForMart(a,c){
	if(c!=-1){
	if($('C'+a[0][c]))$('C'+a[0][c]).className='';
	if($('N'+a[0][c])){$('N'+a[0][c]).className=''}else{$('mainNav').innerHTML=$('mainNav').innerHTML.replace('class=Hover','')};
	if($('telOut'))$('telOut').innerHTML=a[2][c];
	if($('bannerFenxiao'))$('bannerFenxiao').innerHTML='<img alt="" src="/focus/fx/'+a[0][c]+'.jpg" />';
	$(a[0][c]).className='xqHot';$('wanliu').className='h';$('ganjiakou').className='h';
	$('fenxiao').innerHTML=a[1][c]+"分校";$('fenxiao').href="/"+a[0][c]+"/";
	}
}