function setTab(name,cursel,n,currentClass,otherClass){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		menu.className=i==cursel? currentClass:otherClass;
		con.style.display=i==cursel?"block":"none";
	}
}

function setTabDifferentCss(name,cursel,n,currentClass,parentClass){
	for(i=1;i<=n;i++){
		var menu=document.getElementById(name+i);
		var con=document.getElementById("con_"+name+"_"+i);
		//if(menu.className==currentClass){
			menu.className=document.getElementById(name+i).lang;
			con.style.display="none";
		//}
	}
	document.getElementById(name+cursel).className=currentClass;
	document.getElementById("con_"+name+"_"+cursel).style.display="";
	if(parentClass!=null && parentClass!=""){
		document.getElementById("parent_"+name).className=parentClass;
	}
}

function copy(ob){
	var obj=findObj(ob);
	if (obj){
		obj.select();
		js=obj.createTextRange();
		js.execCommand("Copy");
		alert("复制成功，您可以粘贴（Ctrl+V）到QQ或MSN上推荐给好友了。")
	}
}

function findObj(n, d) { 
  document.getElementById('txtUrl').value= document.location.href;
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function Check(){
  if (document.form1.Name.value==''){
    alert('请输入昵称！');
	document.form1.Name.focus();
	return false;
  }
  if (document.form1.Content.value==''){
    alert('请输入评论内容！');
	document.form1.Content.focus();
	return false;
  }
  return true;  
}

function Marquee()
{
	this.ID = document.getElementById(arguments[0]);
	if(!this.ID)
	{
		alert("您要设置的\"" + arguments[0] + "\"初始化错误\r\n请检查标签ID设置是否正确!");
		this.ID = -1;
		return;
	}
	this.Direction = this.Width = this.Height = this.DelayTime = this.WaitTime = this.CTL = this.StartID = this.Stop = this.MouseOver = 0;
	this.Step = 1;
	this.Timer = 30;
	this.DirectionArray = {"top":0 , "up":0 , "bottom":1 , "down":1 , "left":2 , "right":3};
	if(typeof arguments[1] == "number" || typeof arguments[1] == "string")this.Direction = arguments[1];
	if(typeof arguments[2] == "number")this.Step = arguments[2];
	if(typeof arguments[3] == "number")this.Width = arguments[3];
	if(typeof arguments[4] == "number")this.Height = arguments[4];
	if(typeof arguments[5] == "number")this.Timer = arguments[5];
	if(typeof arguments[6] == "number")this.DelayTime = arguments[6];
	if(typeof arguments[7] == "number")this.WaitTime = arguments[7];
	if(typeof arguments[8] == "number")this.ScrollStep = arguments[8];
	this.ID.style.overflow = this.ID.style.overflowX = this.ID.style.overflowY = "hidden";
	this.ID.noWrap = true;
	this.IsNotOpera = (navigator.userAgent.toLowerCase().indexOf("opera") == -1);
	if(arguments.length >= 7)this.Start();
}

Marquee.prototype.Start = function()
{
	if(this.ID == -1)return;
	if(this.WaitTime < 800)this.WaitTime = 800;
	if(this.Timer < 20)this.Timer = 20;
	if(this.Width == 0)this.Width = parseInt(this.ID.style.width);
	if(this.Height == 0)this.Height = parseInt(this.ID.style.height);
	if(typeof this.Direction == "string")this.Direction = this.DirectionArray[this.Direction.toString().toLowerCase()];
	this.HalfWidth = Math.round(this.Width / 2);
	this.HalfHeight = Math.round(this.Height / 2);
	this.BakStep = this.Step;
	this.ID.style.width = this.Width + "px";
	this.ID.style.height = this.Height + "px";
	if(typeof this.ScrollStep != "number")this.ScrollStep = this.Direction > 1 ? this.Width : this.Height;
	var templateLeft = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;display:inline;'><tr><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td></tr></table>";
	var templateTop = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;'><tr><td>MSCLASS_TEMP_HTML</td></tr><tr><td>MSCLASS_TEMP_HTML</td></tr></table>";
	var msobj = this;
	msobj.tempHTML = msobj.ID.innerHTML;
	if(msobj.Direction <= 1)
	{
		msobj.ID.innerHTML = templateTop.replace(/MSCLASS_TEMP_HTML/g,msobj.ID.innerHTML);
	}
	else
	{
		if(msobj.ScrollStep == 0 && msobj.DelayTime == 0)
		{
			msobj.ID.innerHTML += msobj.ID.innerHTML;
		}
		else
		{
			msobj.ID.innerHTML = templateLeft.replace(/MSCLASS_TEMP_HTML/g,msobj.ID.innerHTML);
		}
	}
	var timer = this.Timer;
	var delaytime = this.DelayTime;
	var waittime = this.WaitTime;
	msobj.StartID = function(){msobj.Scroll()}
	msobj.Continue = function()
				{
					if(msobj.MouseOver == 1)
					{
						setTimeout(msobj.Continue,delaytime);
					}
					else
					{	clearInterval(msobj.TimerID);
						msobj.CTL = msobj.Stop = 0;
						msobj.TimerID = setInterval(msobj.StartID,timer);
					}
				}

	msobj.Pause = function()
			{
				msobj.Stop = 1;
				clearInterval(msobj.TimerID);
				setTimeout(msobj.Continue,delaytime);
			}

	msobj.Begin = function()
		{
			msobj.ClientScroll = msobj.Direction > 1 ? msobj.ID.scrollWidth / 2 : msobj.ID.scrollHeight / 2;
			if((msobj.Direction <= 1 && msobj.ClientScroll <= msobj.Height + msobj.Step) || (msobj.Direction > 1 && msobj.ClientScroll <= msobj.Width + msobj.Step)){
				msobj.ID.innerHTML = msobj.tempHTML;
				delete(msobj.tempHTML);
				return;
			}
			delete(msobj.tempHTML);
			msobj.TimerID = setInterval(msobj.StartID,timer);
			if(msobj.ScrollStep < 0)return;
			msobj.ID.onmousemove = function(event)
						{
							if(msobj.ScrollStep == 0 && msobj.Direction > 1)
							{
								var event = event || window.event;
								if(window.event)
								{
									if(msobj.IsNotOpera)
									{
										msobj.EventLeft = event.srcElement.id == msobj.ID.id ? event.offsetX - msobj.ID.scrollLeft : event.srcElement.offsetLeft - msobj.ID.scrollLeft + event.offsetX;
									}
									else
									{
										msobj.ScrollStep = null;
										return;
									}
								}
								else
								{
									msobj.EventLeft = event.layerX - msobj.ID.scrollLeft;
								}
								msobj.Direction = msobj.EventLeft > msobj.HalfWidth ? 3 : 2;
								msobj.AbsCenter = Math.abs(msobj.HalfWidth - msobj.EventLeft);
								msobj.Step = Math.round(msobj.AbsCenter * (msobj.BakStep*2) / msobj.HalfWidth);
							}
						}
			msobj.ID.onmouseover = function()
						{
							if(msobj.ScrollStep == 0)return;
							msobj.MouseOver = 1;
							clearInterval(msobj.TimerID);
						}
			msobj.ID.onmouseout = function()
						{
							if(msobj.ScrollStep == 0)
							{
								if(msobj.Step == 0)msobj.Step = 1;
								return;
							}
							msobj.MouseOver = 0;
							if(msobj.Stop == 0)
							{
								clearInterval(msobj.TimerID);
								msobj.TimerID = setInterval(msobj.StartID,timer);
							}
						}
		}
	setTimeout(msobj.Begin,waittime);
}

Marquee.prototype.Scroll = function()
{
	switch(this.Direction)
	{
		case 0:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollTop += this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollTop >= this.ClientScroll)
				{
					this.ID.scrollTop -= this.ClientScroll;
				}
				this.ID.scrollTop += this.Step;
			}
		break;

		case 1:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollTop -= this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollTop <= 0)
				{
					this.ID.scrollTop += this.ClientScroll;
				}
				this.ID.scrollTop -= this.Step;
			}
		break;

		case 2:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollLeft += this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollLeft >= this.ClientScroll)
				{
					this.ID.scrollLeft -= this.ClientScroll;
				}
				this.ID.scrollLeft += this.Step;
			}
		break;

		case 3:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollLeft -= this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollLeft <= 0)
				{
					this.ID.scrollLeft += this.ClientScroll;
				}
				this.ID.scrollLeft -= this.Step;
			}
		break;
	}
}


function check(){
	if(logform.username.value==""){
		alert ("用户名不能为空！");
		return false;
	}
	if(logform.psw.value==""){
		alert ("密码不能为空！");
		return false;
	}
	if(logform.rnd.value==""){
		alert ("验证码不能为空！");
		return false;
	}
}

function addBookmark(title) {
	var url=parent.location.href;
	try{
		if (window.sidebar) { 
			window.sidebar.addPanel(title, url,""); 
		} else if( document.all ) {
			window.external.AddFavorite( url, title);
		} else if( window.opera && window.print ) {
			return true;
		}
	}
	catch(e){
		alert("加入收藏失败，请使用Ctrl+D进行添加");
	}
}

function SetHome(obj,vrl){
	try{
		obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
	}
	catch(e){
		if(window.netscape) {
			try{
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
			}  
			catch (e){ 
				alert("抱歉！您的浏览器不支持直接设为首页。请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为“true”，点击“加入收藏”后忽略安全提示，即可设置成功。");  
			}
			var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
			prefs.setCharPref('browser.startup.homepage',vrl);
		}
	}
}

function ChangeLogin(id){
	if(id==0){
		document.logform.action = "http://www.exam8.com/User/User_ChkLogin.asp";
		document.logform.psw.style.display = "none";
		document.logform.UserPassword.style.display = "block";
	}
	else{
		document.logform.action = "http://kc.exam8.com/user_center/index.asp";
		document.logform.psw.style.display = "block";
		document.logform.UserPassword.style.display = "none";
	}
}
	
t_u = null;
t_u_old = null;
maxPic = 4;
showPic = 0;

function switchPic(curPic){ 
	if(curPic == maxPic){ 
		showPic = 1;
	}else{ 
		showPic = showPic + 1;
	}
	for(i=1; i <= maxPic; i++){ 
		if(i == showPic){ 
			document.getElementById("picA"+i).className = "currON";
			document.getElementById("picUL"+i).style.display = "";
		}else{ 
			document.getElementById("picA"+i).className = "";
			document.getElementById("picUL"+i).style.display = "none";
		}
	}
}
function reSwitchPic() { 
	clearTimeout(t_u);
	switchPic(showPic);
	t_u = setTimeout('reSwitchPic();', 5000);
}
function pauseSwitch() { 
	clearTimeout(t_u);
	t_u_old = t_u;
}
function selectSwitch(num) { 
	showPic = num;
	for(i=1; i <= maxPic; i++){ 
		if(i == num){ 
			document.getElementById("picA"+i).className = "currON";
			document.getElementById("picUL"+i).style.display = "";
		}else{ 
			document.getElementById("picA"+i).className = "";
			document.getElementById("picUL"+i).style.display = "none";
		}
	}
}
function goonSwitch() {
	clearTimeout(t_u);
	t_u = setTimeout('reSwitchPic();', 5000);
}
	
	
//图画
var myART=new Object();
myART.Browser={ie:/msie/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())};
var myArticl=new Object();
var ZT,liNum=4,liWidth=144,stepTime=6*1000,stepSpeed=100,step=50;
myArticl={
	$:function(v){return document.getElementById(v)},
	getEles:function(id,ele){return this.$(id).getElementsByTagName(ele);},
	tabId:"sildPicBar",tabDot:"dot",tabBox:"cnt-wrap",tabSilder:"cnt",tabSilderSon:"li",rightBorder:"silidBarBorder",
	Count:function(){return this.getEles(this.tabSilder,this.tabSilderSon).length},
	Now:0,isCmt:true,isSild:true,timer:null,site:'news',cmtId:'21572303',cmtBase:'comment5',AuToPlay:true,
	sideTab:{heads:'tabTit',heads_ele:'span',bodys:'tabBody',bodys_ele:'ol'},
	SildTab:function(now){
		this.Now=Number(now);
		if(this.Now>Math.ceil(this.Count()/liNum)-1){
			this.Now=0;
		}
		else if(this.Now<0){
			this.Now=Math.ceil(this.Count()/liNum)-1;
		}
		if(parseInt(this.$(this.tabSilder).style.left)>-liWidth*parseInt(this.Now*liNum)){
			this.moveR();
		}
		else{
			this.moveL();
		}
		for(var i=0;i<Math.ceil(this.Count()/liNum);i++){
			if(i==this.Now){
				this.getEles(this.tabId,"li")[this.Now].className="select";
			}
			else{
				this.getEles(this.tabId,"li")[i].className="";
			}
		}
	},
	moveR:function(setp){
		var _curLeft=parseInt(this.$(this.tabSilder).style.left);
		var _distance=stepSpeed;
		if(_curLeft>-liWidth*parseInt(this.Now*liNum)){
			clearTimeout(ZT);
			this.$(this.tabSilder).style.left=(_curLeft-_distance)+step+"px";
			window.setTimeout("myArticl.moveR('next')",1);
		}
		else if(_curLeft=-liWidth*parseInt(this.Now*liNum)){
		    if(myArticl.AuToPlay){ZT = setTimeout("myArticl.pagePe('next')",stepTime);}
		}
		else{
			if(myArticl.AuToPlay){ZT = setTimeout("myArticl.pagePe('pre')",stepTime);}
		}
	},
	moveL:function(setp){
		var _curLeft=parseInt(this.$(this.tabSilder).style.left);
		var _distance=stepSpeed;
		if(_curLeft<-liWidth*parseInt(this.Now*liNum)){
			this.$(this.tabSilder).style.left=(_curLeft+_distance)-step+"px";
			clearTimeout(ZT);
			window.setTimeout("myArticl.moveL('pre')",1);
		}
		else if(_curLeft=-liWidth*parseInt(this.Now*liNum)){
			if(myArticl.AuToPlay){ZT = setTimeout("myArticl.pagePe('pre')",stepTime);}
		}
		else{
			if(myArticl.AuToPlay){ZT = setTimeout("myArticl.pagePe('next')",stepTime);}
		}
	},
	pagePe:function(way){
		if(way=="next"){
			this.Now+=1;
			this.SildTab(this.Now);
		}
		else{
			this.Now-=1;
			this.SildTab(this.Now);
		}
	},
	smallCk:function(){
		for(var i=0;i<Math.ceil(this.Count()/liNum);i++){
			if(i==0){
				this.$(this.tabDot).innerHTML+="<li class='select' onclick='myArticl.SildTab("+i+")'></li>";
			}
			else{
				this.$(this.tabDot).innerHTML+="<li onclick='myArticl.SildTab("+i+")'></li>";
			}
		}
	},
	onload:function(){
		if(myART.Browser.moz){
			document.addEventListener("DOMContentLoaded",function(){myArticl.ints()},null);
		}
		else{
			if(document.readyState=="complete"){
				myArticl.ints();
			}
			else{
				document.onreadystatechange=function(){
					if(document.readyState=="complete"){
						myArticl.ints();
					}
				}
			}
		}
	},
	ints:function(){
		if(this.isSild){
			this.$(this.tabBox).style.position="relative";
			this.$(this.tabBox).onmouseover=function(){clearTimeout(ZT)};
			this.$(this.tabBox).onmouseout=function(){ZT = setTimeout("myArticl.pagePe('next')",stepTime)};
			this.$(this.tabSilder).style.position="absolute";
			this.$(this.tabSilder).style.left=0+"px";
			this.getEles(this.tabId,"span")[1].onclick=function(){myArticl.pagePe("next");}
			this.getEles(this.tabId,"span")[0].onclick=function(){myArticl.pagePe("pre");}
			this.smallCk();
			if(myArticl.AuToPlay){window.onload = function(){ZT = setTimeout("myArticl.pagePe('next')",stepTime)};}
		}
	}
}

window.attachEvent("onload",SetPartnersvalue);
function SetPartnersvalue(){
	var myurl = document.referrer;
	var location = window.location.href;
	var Parameters = window.location.search;
	
	var dateNum = '7';
	var strdomain = 'exam8.com';
	
	if(myurl.indexOf("www.baidu.com/s?")>0&&Parameters.indexOf("agent")!=-1){
		writecookie('location',location,dateNum,strdomain);
	}

	if(getCookie("referrer")==""){
		if(myurl != ""){
			writecookie('referrer',myurl,dateNum,strdomain);
			return;
		}
		if(location != ""){
			writecookie('referrer',location,dateNum,strdomain);
			return;
		}
	}
	else{
		if(myurl.indexOf("www.baidu.com/s?")>0||myurl.indexOf("www.google.com")>0||myurl.indexOf("www.sogou.com")>0||myurl.indexOf("www.soso.com")>0||myurl.indexOf("www.youdao.com")>0||myurl.indexOf("www.bing.com")>0||myurl.indexOf("cn.bing.com")>0){
		   writecookie('referrer',myurl,dateNum,strdomain);
		   return;
		}
		if(Parameters.indexOf("agent")!=-1){
			writecookie('referrer',location,dateNum,strdomain);
			return;
		}
	}
}

function delCookie(name,domain){
	var exp = new Date();
	exp.setTime(exp.getTime() - 1);
	var cval=getCookie(name);
	if(cval!=null) document.cookie = name + "=" + cval + ";expires="+exp.toGMTString()+";domain="+domain+";path=/";
}

function writecookie(cookiename,value,strday,domain){
	var today = new Date();
	var expires = new Date();
	expires.setTime(today.getTime() + 1000*60*60*24*strday);
	setcookie(cookiename,value,expires,domain);   
}
 
function setcookie(name,value,expire,domain){
	window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : (";expires=" + expire.toGMTString()))+";domain="+domain+";path=/";
}

function getCookie(name){
	if (document.cookie.length>0){
		c_start = document.cookie.indexOf(name);
		if(c_start != -1){
			c_start = c_start + name.length + 1;
			c_end = document.cookie.indexOf(";",c_start);
			if (c_end == -1) c_end = document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}    
	return ""
}

//function showmeexam8(URL,Path){
//	var strurl = URL;
//	var Then = new Date();
//	Then.setTime(Then.getTime() + 12*60*60*1000);
//	var cookieString = new String(document.cookie);
//	var cookieHeader = "Cookie1=";
//	var beginPosition = cookieString.indexOf(cookieHeader);
//	if (beginPosition != -1){ }
//	else{
//		document.cookie = "Cookie1=POPWIN;expires="+ Then.toGMTString() + ";domain=exam8.com;path="+Path;
//		focusid = setTimeout("focus();window.open('" + strurl + "','','width=1024,height=768,scrollbars=yes,toolbar=yes,menubar=yes,resizable=yes,location=yes,status=yes')",5000)
//		window.focus();
//	}
//}
//var openmyurl = window.location.href;
//xueli
//if(openmyurl.indexOf("/xueli/zikao/")>0){
//	showmeexam8("http://lm.zikao365.com/ManageCheck.asp?adsid=464&UnionID=110","/xueli/zikao/");
//}
//if(openmyurl.indexOf("/xueli/chengren/")>0){
//	showmeexam8("http://www.exam8.com/xueli/special/chengrenvip/","/xueli/chengren/");
//}

//waiyu
//if(openmyurl.indexOf("/english/zhicheng/")>0){
//	showmeexam8("http://www.exam8.com/english/zhicheng/duanxin/","/english/zhicheng/");
//}
//if(openmyurl.indexOf("/english/BEC/")>0){
//	showmeexam8("http://www.exam8.com/english/BEC/kecheng/","/english/BEC/");
//}
//if(openmyurl.indexOf("/english/PETS/")>0){
//	showmeexam8("http://www.exam8.com/english/PETS/kecheng/","/english/PETS/");
//}
//if(openmyurl.indexOf("/english/cr/")>0){
//	showmeexam8("http://www.exam8.com/english/cr/kecheng/","/english/cr/");
//}
//if(openmyurl.indexOf("/english/CET46/")>0){
//	showmeexam8("http://www.exam8.com/english/CET46/kecheng/","/english/CET46/");
//}
//if(openmyurl.indexOf("/english/trans/")>0){
//	showmeexam8("http://en.exam8.com/learning/fyks/fudao.html","/english/trans/");
//}
//if(openmyurl.indexOf("/english/TOEFL/")>0){
//	showmeexam8("http://en.exam8.com/learning/toefl/toefldao.html","/english/TOEFL/");
//}
//if(openmyurl.indexOf("/english/IELTS/")>0){
//	showmeexam8("http://en.exam8.com/learning/ielts/ysfudao.html","/english/IELTS/");
//}
//if(openmyurl.indexOf("/english/GRE/")>0){
//	showmeexam8("http://en.exam8.com/learning/gre/jieshao.html","/english/GRE/");
//}
//if(openmyurl.indexOf("/english/xgn/")>0){
//	showmeexam8("http://en.exam8.com/subject/2010xgn/","/english/xgn/");
//}
//if(openmyurl.indexOf("/englishlearning/")>0){
//	showmeexam8("http://en.exam8.com/subject/2010xgn/","/englishlearning/");
//}

//zige
//if(openmyurl.indexOf("/zige/baoguanyuan/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/bgyvip/","/zige/baoguanyuan/");
//}
//if(openmyurl.indexOf("/zige/gongwuyuan/")>0){
//	showmeexam8("http://ht.exam8.com/class/","/zige/gongwuyuan/");
//}
//if(openmyurl.indexOf("/zige/CCBP/")>0){
//	showmeexam8("http://www.exam8.com/zige/Special/ccbpfudao/","/zige/CCBP/");
//}
//if(openmyurl.indexOf("/zige/zhengquan/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/zhengquanfudao/","/zige/zhengquan/");
//}
//if(openmyurl.indexOf("/zige/qihuo/")>0){
//	showmeexam8("http://www.exam8.com/zige/qihuo/kecheng/","/zige/qihuo/");
//}
//if(openmyurl.indexOf("/zige/sifa/")>0){
//	showmeexam8("http://lm.chinaacc.com/ManageCheck.asp?adsid=102&UnionID=110&to=http%3A//www.chinalawedu.com/classroom/index_jpb.asp","/zige/sifa/");
//}
//if(openmyurl.indexOf("/zige/bjy/")>0){
//	showmeexam8("http://www.exam8.com/zige/Special/bjyfudao/","/zige/bjy/");
//}
//if(openmyurl.indexOf("/zige/jiaoshi/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/jiaoshifudao/","/zige/jiaoshi/");
//}
//if(openmyurl.indexOf("/zige/gongzuozhe/")>0){
//	showmeexam8("http://www.exam8.com/zige/Special/shegongfudao/","/zige/gongzuozhe/");
//}
//if(openmyurl.indexOf("/zige/gjsw/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/gjswfudao/","/zige/gjsw/");
//}
//if(openmyurl.indexOf("/zige/gendan/")>0){
//	showmeexam8("http://www.exam8.com/zige/gendan/kecheng/","/zige/gendan/");
//}
//if(openmyurl.indexOf("/zige/danzhen/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/danzhengfudao/","/zige/danzhen/");
//}
//if(openmyurl.indexOf("/zige/wuliu/")>0){
//	showmeexam8("http://www.exam8.com/zige/wuliu/kecheng/","/zige/wuliu/");
//}
//if(openmyurl.indexOf("/zige/jiage/")>0){
//	showmeexam8("http://www.exam8.com/zige/jiage/kecheng/","/zige/jiage/");
//}
//if(openmyurl.indexOf("/zige/renli/")>0){
//	showmeexam8("http://www.exam8.com/zige/special/renlivip/","/zige/renli/");
//}
//if(openmyurl.indexOf("/zige/guanli/")>0){
//	showmeexam8("http://www.exam8.com/zige/guanli/kecheng/","/zige/guanli/");
//}
//if(openmyurl.indexOf("/zige/mishu/")>0){
//	showmeexam8("http://www.exam8.com/zige/mishu/kecheng/","/zige/mishu/");
//}
//if(openmyurl.indexOf("/zige/xinlizixun/")>0){
//	showmeexam8("http://www.exam8.com/zige/xinlizixun/kecheng/","/zige/xinlizixun/");
//}


//gongcheng
//if(openmyurl.indexOf("/gongcheng/jianzao1/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/yijianhaolaoshi/","/gongcheng/jianzao1/");
//}

//if(openmyurl.indexOf("/gongcheng/jianzao2/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/erjianvip/","/gongcheng/jianzao2/");
//}
//if(openmyurl.indexOf("/gongcheng/zaojia/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/zaojiavip/","/gongcheng/zaojia/");
//}
//if(openmyurl.indexOf("/gongcheng/zaojiayuan/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/zaojiayuan/kecheng/","/gongcheng/zaojiayuan/");
//}
//if(openmyurl.indexOf("/gongcheng/zixun/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/zixun/kecheng/gg/201103/1934423.html","/gongcheng/zixun/");
//}
//if(openmyurl.indexOf("/gongcheng/jianli/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/special/jianlivip/","/gongcheng/jianli/");
//}
//if(openmyurl.indexOf("/gongcheng/anquan/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/anquanvip/","/gongcheng/anquan/");
//}
//if(openmyurl.indexOf("/gongcheng/zhaobiao/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/zhaobiao/kecheng/","/gongcheng/zhaobiao/");
//}
//if(openmyurl.indexOf("/gongcheng/cehuishi/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/cehuishi/kecheng/gg/201104/1935455.html","/gongcheng/cehuishi/");
//}
//if(openmyurl.indexOf("/gongcheng/jiegou/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/jiegoufudao/","/gongcheng/jiegou/");
//}
//if(openmyurl.indexOf("/gongcheng/jianzhu/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/jianzhu/kecheng/","/gongcheng/jianzhu/");
//}
//if(openmyurl.indexOf("/gongcheng/fdcgj/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/fdcgjsvip/","/gongcheng/fdcgj/");
//}
//if(openmyurl.indexOf("/gongcheng/tudigujia/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/tudigujia/kecheng/","/gongcheng/tudigujia/");
//}
//if(openmyurl.indexOf("/gongcheng/shebei/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/shebei/kecheng/","/gongcheng/shebei/");
//}
//if(openmyurl.indexOf("/gongcheng/wuye/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/wuye/kecheng/","/gongcheng/wuye/");
//}
//if(openmyurl.indexOf("/gongcheng/zhiliang/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/Special/zlgcsvip/","/gongcheng/zhiliang/");
//}
//if(openmyurl.indexOf("/gongcheng/fdc/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/fdc/kecheng/","/gongcheng/fdc/");
//}
//if(openmyurl.indexOf("/gongcheng/touzi/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/touzi/kecheng/gg/201104/1947328.html","/gongcheng/touzi/");
//}
//if(openmyurl.indexOf("/gongcheng/tudi/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/tudi/kecheng/","/gongcheng/tudi/");
//}
//if(openmyurl.indexOf("/gongcheng/huanjing/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/special/huanjingvip/","/gongcheng/huanjing/");
//}
//if(openmyurl.indexOf("/gongcheng/huanbao/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/huanbao/kecheng/","/gongcheng/huanbao/");
//}
//if(openmyurl.indexOf("/gongcheng/guihua/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/guihua/kecheng/","/gongcheng/guihua/");
//}
//if(openmyurl.indexOf("/gongcheng/gljianli/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/gljianli/kecheng/","/gongcheng/gljianli/");
//}
//if(openmyurl.indexOf("/gongcheng/glzaojia/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/glzaojia/kecheng/","/gongcheng/glzaojia/");
//}
//if(openmyurl.indexOf("/gongcheng/pingjia/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/pingjia/kecheng/","/gongcheng/pingjia/");
//}
//if(openmyurl.indexOf("/gongcheng/dianqi/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/dianqi/kecheng/","/gongcheng/dianqi/");
//}
//if(openmyurl.indexOf("/gongcheng/yantu/")>0){
//	showmeexam8("http://www.exam8.com/gongcheng/yantu/kecheng/","/gongcheng/yantu/");
//}

//kuaiji
//if(openmyurl.indexOf("/kuaiji/jingjishi/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/Special/jjsbaoguo/","/kuaiji/jingjishi/");
//}
//if(openmyurl.indexOf("/kuaiji/kjz/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/Special/kjzfd/","/kuaiji/kjz/");
//}
//if(openmyurl.indexOf("/zige/kuaiji/")>0){
//	showmeexam8("http://www.exam8.com/zige/kuaiji/kecheng/gg/201104/1935222.html","/zige/kuaiji/");
//}
//if(openmyurl.indexOf("/zige/cpa/")>0){
//	showmeexam8("http://lm.chinaacc.com/ManageCheck.asp?adsid=628&UnionID=110&to=http%3A//www.chinaacc.com/project/cpa/2011tsb.shtml","/zige/cpa/");
//}
//if(openmyurl.indexOf("/kuaiji/shenji/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/special/shenjifudao/","/kuaiji/shenji/");
//}
//if(openmyurl.indexOf("/kuaiji/shuiwu/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/shuiwu/kecheng/","/kuaiji/shuiwu/");
//}
//if(openmyurl.indexOf("/kuaiji/pinggu/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/Special/pinggushi2011/","/kuaiji/pinggu/");
//}
//if(openmyurl.indexOf("/kuaiji/qiye/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/qiye/kecheng/","/kuaiji/qiye/");
//}
//if(openmyurl.indexOf("/kuaiji/tongji/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/Special/tongjifudao/","/kuaiji/tongji/");
//}
//if(openmyurl.indexOf("/kuaiji/licai/")>0){
//	showmeexam8("http://www.exam8.com/kuaiji/Special/chfpfudao/","/kuaiji/licai/");
//}

//yixue
//if(openmyurl.indexOf("/yixue/yishi/")>0){
//	showmeexam8("http://www.exam8.com/yixue/Special/yishifudao/","/yixue/yishi/");
//}
//if(openmyurl.indexOf("/yixue/yaoshi/")>0){
//	showmeexam8("http://www.exam8.com/yixue/Special/yaoshitaocan2010/","/yixue/yaoshi/");
//}
//if(openmyurl.indexOf("/yixue/ws/")>0){
//	showmeexam8("http://www.exam8.com/yixue/Special/wshulivip2011/","/yixue/ws/");
//}
//if(openmyurl.indexOf("/yixue/hushi/")>0){
//	showmeexam8("http://www.exam8.com/yixue/Special/wshulivip2011/","/yixue/hushi/");
//}
