EasyCookie=(function(){var EPOCH='Thu, 01-Jan-1970 00:00:01 GMT',RATIO=1000*60*60*24,KEYS=['expires','path','domain'],esc=escape,un=unescape,doc=document,me;var get_now=function(){var r=new Date();r.setTime(r.getTime());return r;}
var cookify=function(c_key,c_val){var i,key,val,r=[],opt=(arguments.length>2)?arguments[2]:{};r.push(esc(c_key)+'='+esc(c_val));for(i=0;i<KEYS.length;i++){key=KEYS[i];if(val=opt[key])
r.push(key+'='+val);}
if(opt.secure)
r.push('secure');return r.join('; ');}
var alive=function(){var k='__EC_TEST__',v=new Date();v=v.toGMTString();this.set(k,v);this.enabled=(this.remove(k)==v);return this.enabled;}
me={set:function(key,val){var opt=(arguments.length>2)?arguments[2]:{},now=get_now(),expire_at,cfg={};if(opt.expires){opt.expires*=RATIO;cfg.expires=new Date(now.getTime()+opt.expires);cfg.expires=cfg.expires.toGMTString();}
var keys=['path','domain','secure'];for(i=0;i<keys.length;i++)
if(opt[keys[i]])
cfg[keys[i]]=opt[keys[i]];var r=cookify(key,val,cfg);doc.cookie=r;return val;},has:function(key){key=esc(key);var c=doc.cookie,ofs=c.indexOf(key+'='),len=ofs+key.length+1,sub=c.substring(0,key.length);return((!ofs&&key!=sub)||ofs<0)?false:true;},get:function(key){key=esc(key);var c=doc.cookie,ofs=c.indexOf(key+'='),len=ofs+key.length+1,sub=c.substring(0,key.length),end;if((!ofs&&key!=sub)||ofs<0)
return null;end=c.indexOf(';',len);if(end<0)
end=c.length;return un(c.substring(len,end));},remove:function(k){var r=me.get(k),opt={expires:EPOCH};doc.cookie=cookify(k,'',opt);return r;},keys:function(){var c=doc.cookie,ps=c.split('; '),i,p,r=[];for(i=0;i<ps.length;i++){p=ps[i].split('=');r.push(un(p[0]));}
return r;},all:function(){var c=doc.cookie,ps=c.split('; '),i,p,r=[];for(i=0;i<ps.length;i++){p=ps[i].split('=');r.push([un(p[0]),un(p[1])]);}
return r;},version:'0.2.1',enabled:false};me.enabled=alive.call(me);return me;}());

function deep_in () {
	return true;// (deep_revceive('jumpin_plz') > 0);
}
function deep_revceive (key, c) {
	var counter = EasyCookie.get(key) || EasyCookie.set(key, 0);
	c = c || 1;
	var s = EasyCookie.set(key, c==0 ? 0 : parseInt(counter)+c)
	return s;
}
function deep_login () {
	if ($('tanchu') && $('block_id')) {
		$('popopen').show();
		$('tanchu').show();
		$('popopen').style.left = (document.body.clientWidth / 2 - $('popopen').clientWidth / 2) + "px";
		$('popopen').style.top = (((document.documentElement.scrollTop == 0) ? document.body.scrollTop : document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0) ? document.body.clientHeight : document.documentElement.clientHeight) / 2 - $('popopen').clientHeight / 2) + "px";
	  $('block_id').style.width = document.body.clientWidth + "px";
	  $('block_id').style.height = document.body.clientHeight + 3000 + "px";
	  $('block_id').style.minWidth = document.body.clientWidth + "px";
	  $('block_id').style.minHeight = document.body.clientHeight + 3000 + "px";
		$('block_id').observe('mousedown', deep_skip);
		$('block_id').show();
		theApp.trackEvent("popup_for_new_user");
		if($('username')) setTimeout("$('username').focus();", 500);
		new Ajax.Request('/states/visit?page=reg_pop', {asynchronous:true, evalScripts:true});
		if(typeof(processMSTAT)!="undefined" && processMSTAT!=null) processMSTAT('/states/visit?page=reg_pop', window.location.href); // function if(typeof(processMSTAT)!="undefined" && processMSTAT!=null) processMSTAT(paramURL, paramRefer)
	}
}
function deep_skip () {
	// deep_revceive('jumpin_plz', -3);
	if ($('tanchu') && $('block_id')) {
		$('popopen').hide();
		$('tanchu').hide();
		$('block_id').hide();
		player.pop_time = new Date();
	}
}
// deep_in(function() {console.log('2222')};)