var Site=new Object();Site.Cookie={_expires:24*3600*1000,_domain:'.2144.cn',set:function(name,value,expires,path,domain){expires=new Date(new Date().getTime()+(expires?expires:this._expires));document.cookie=name+"="+escape(value)+"; expires="+expires.toGMTString()+"; path="+(path?path:"/")+"; domain="+(domain?domain:this._domain)},get:function(name){var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr!=null)return unescape(arr[2]);return null},clear:function(name,path,domain){if(this.get(name))document.cookie=name+"=; path="+(path?path:"/")+"; domain="+(domain?domain:this._domain)+"; expires=Fri, 02-Jan-1970 00:00:00 GMT"}};function checkLogin(obj){if(obj.username.value==""||obj.password.value==""){alert('请输入帐号和密码');return false}return true}var islogin=Site.Cookie.get('user_auth');var gy={};(function(){var env={};gy.scriptLoad=function(url,func){var callback=func||function(){};if(env[url]){if(env[url]['status']==4){callback()}else{env[url].fn.push(callback)}return}var script=document.createElement('script'),READY_STATE=script.readyState;script.setAttribute("type","text/javascript");env[url]={fn:[],"status":1};env[url].fn.push(callback);if(READY_STATE){script.onreadystatechange=function(){var rs=script.readyState;if(rs==='loaded'||rs==='complete'){script.onreadystatechange=null;env[url].status=4;for(var i=0,len=env[url].fn.length;i<len;i++){env[url].fn.shift()()}env[url].fn=undefined}}}else{script.addEventListener('load',function(){env[url].status=4;for(var i=0,len=env[url].fn.length;i<len;i++){env[url].fn.shift()()}env[url].fn=undefined},false)}script.src=url;document.getElementsByTagName("head")[0].appendChild(script)}})();function top_c(){keyvalue=(typeof(kword)=="undefined")?"搜索小游戏":kword;if(islogin){var username=Site.Cookie.get('username');if(username==null){username=''}else{username=unescape(unescape(username))}document.write('<div class="login_subbefor"><code class="addfav" id="addfavid">收藏2144</code></div>')}else{document.write('<div class="login_subbefor"><code class="addfav" id="addfavid">收藏2144</code></div>')}document.write('<span class="search_inputwarp"><form name="flpage" id="flpage" action="/plus/search.php" method="get"><input type="text" name="q"  class="search_text" id="smart_input" smartPid="2144" autocomplete="off" value="搜索小游戏" /><input type="submit" class="search_submit" id="addsubmitid" value=""/><input name="action" type="hidden" value="search" /><input name="area" type="hidden" value="default" /><input type="hidden" name="sortby" value="related" /></form></span><em>2144是最优秀的中文小游戏网站, 请牢记本站  www.2144.cn 的网址</em>')}function footer_c(){document.write('<div id="footer"><p><a href="/about/about.htm" target="_blank">关于我们</a>|<a href="/about/lianxi.htm" target="_blank">联系我们</a>|<a href="/about/contact.htm" target="_blank">留言反馈</a>|<a href="/about/recommend.htm" target="_blank">推荐游戏</a>|<a href="/about/declare.htm" target="_blank">版权声明</a>|<a href="/about/duty.htm" target="_blank">使用协议</a>|<a href="/about/job.htm" target="_blank">招聘信息</a>|<a href="/about/help.htm" target="_blank">帮助中心</a></p><span>Copyright &copy;2010 2144.CN&nbsp;&nbsp;渝ICP备09058074&nbsp;&nbsp;沪B2-20100008&nbsp;&nbsp;文网文[2008]150号</span></div>')}