function popup(url, name, width, height){
	settings=
	"toolbar=no,location=no,directories=no,"+
	"status=no,menubar=no,scrollbars=no,"+
	"resizable=no,width="+width+",height="+height;
	PopWindow=window.open(url,name,settings);
	PopWindow.opener.name = "orgWindow";
}
//catfish
var catfish;function deploycatfish(){catfish=document.getElementById('catfish');catfish.style.display="block";catfishheight=150;catfishoverlap=21;catfishtimeout=setTimeout(startcatfish,2000)}function startcatfish(){catfishposition=0;catfishtimeout=setInterval(positioncatfish,25)}function positioncatfish(){catfishposition+=10;catfish.style.marginBottom='-'+(((100-catfishposition)/100)*catfishheight)+'px';if(catfishposition>=100){clearTimeout(catfishtimeout);catfishtimeout=setTimeout(finishcatfish,1)}}function finishcatfish(){catfish.style.marginBottom='0';document.body.parentNode.style.paddingBottom=(catfishheight-catfishoverlap)+'px'}
//end catfish
function ajaxStart(){var ajaxRequest;try{ajaxRequest=new XMLHttpRequest()}catch(e){try{ajaxRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){alert("Unknown Error!");return false}}}ajaxRequest.onreadystatechange=function(){if(ajaxRequest.readyState==4){}}
ajaxRequest.open("GET", "/includes/check-ad-db.php");
	ajaxRequest.send(null); 
}
var site_url=window.location.href;
	var urlparts = site_url.split('/');
	var host = urlparts[2];
	if (host == "www.theteacherscorner.net") {
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6("o",1,A);B=C.D.E;3(7("o")==1){3(7("p")==1){3(7("d")==1){e()}}q{6("d",1);e();r()}}3(p!=1){6("d",1);e();r()}f 6(4,8,g){3(g){2 9=s t();9.u(9.v()+(g*1*F));2 8=8+";";2 5=" 5="+9.w()+";"}q 2 5="";h.j=4+"="+8+5+"; G=/"}f 7(4){2 k=4+"=";2 l=h.j.H(\';\');I(2 i=0;i<l.a;i++){2 c=l[i];J(c.K(0)==\' \')c=c.x(1,c.a);3(c.L(k)==0)m c.x(k.a,c.a)}m y}f M(z){2 b=s t();b.u(b.v()-1);2 n=N(z);3(n!=y){h.j=4+"="+n+"; 5="+b.w()}m}',50,50,'||var|if|name|expires|createCookie|readCookie|value|date|length|exp||is_blocked|ajaxStart|function|seconds|document||cookie|nameEQ|ca|return|cookieVal|cookies_on|not_blocked|else|deploycatfish|new|Date|setTime|getTime|toGMTString|substring|null|cookiename|60|currentlocation|window|location|href|1000|path|split|for|while|charAt|indexOf|DeleteCookie|getCookie'.split('|'),0,{}))
}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2(3.4.5(\'l-m\')!=-1){6.7(\'<0 8="9/a"><!-- #n { b: c d("/e/f.g") -h o i-j;}--></0>\')}k 2(3.4.5(\'p\')!=-1){6.7(\'<0 8="9/a"><!-- #q { b: c d("/e/f.g") -h -r i-j;}--></0>\')}k 2(3.4.5(\'s\')!=-1){6.7(\'<0 8="9/a"><!-- #t { b: c d("/e/f.g") -h -u i-j;}--></0>\')}k 2(3.4.5(\'v\')!=-1){6.7(\'<0 8="9/a"><!-- #w { b: c d("/e/f.g") -h -x i-j;}--></0>\')}k 2(3.4.5(\'y-z\')!=-1){6.7(\'<0 8="9/a"><!-- #A { b: c d("/e/f.g") -h -B i-j;}--></0>\')}k 2(3.4.5(\'C-D\')!=-1){6.7(\'<0 8="9/a"><!-- #E { b: c d("/e/f.g") -h -F i-j;}--></0>\')}k 2(3.4.5(\'G-H\')!=-1){6.7(\'<0 8="9/a"><!-- #I { b: c d("/e/f.g") -h -J i-j;}--></0>\')}k 2(3.4.5(\'K-L\')!=-1){6.7(\'<0 8="9/a"><!-- #M { b: c d("/e/f.g") -h -N i-j;}--></0>\')}k 2(3.4.5(\'O\')!=-1){6.7(\'<0 8="9/a"><!-- #P { b: c d("/e/f.g") -h -Q i-j;}--></0>\')}k 2(3.4.5(\'R\')!=-1){6.7(\'<0 8="9/a"><!-- #S { b: c d("/e/f.g") -h -T i-j;}--></0>\')}k 2(3.4.5(\'U\')!=-1){6.7(\'<0 8="9/a"><!-- #V { b: c d("/e/f.g") -h -W i-j;}--></0>\')}',59,59,'style||if|location|href|indexOf|document|write|type|text|css|background|transparent|url|images|menu|png|214px|no|repeat|else|lesson|plans|panel1|0px|thematicunits|panel2|30px|seasonal|panel3|60px|bulletinboards|panel4|90px|teaching|jobs|panel10|270px|teacher|resources|panel5|120px|printable|worksheets|panel6|150px|collaboration|projects|panel7|180px|lounge|panel8|210px|books|panel9|240px|forums|panel11|300px'.split('|'),0,{}))