function $(s){return document.getElementById(s);}
			function __up(u,b){var a1 = 0,a2 =0,i,rs;for (i= 0; i< u.length; i++){a1 += u.charCodeAt(i) * i; a2 += u.charCodeAt(i) * (i * 2 + 1);}a1 %= 100;a2 %= 100;rs  = 'http://uface.56.com/photo/' + a1 + "/" + a2 + "/";if (b){return rs + u + "_b_56.com_.jpg";} else{return rs + u + "_56.com_.jpg";}};
			var __u=getCookie("member_id").replace("@56.com","");
			var __un=getCookie('user_nickname');
			function sbmt(e){
				e = e||event;
				if(e.keyCode==13) {
					cksbmt();
				}
			};
			function qidai(){
				//alert('新服12月18日15:00开放，敬请期待！');
				document.location.href = 'http://app.56.com/app.php?action=CooperationTest&partner=Jianxia&server=107';
			}
			function cksbmt() {
				var a = document.forms[0].getElementsByTagName("input");
				for (var i=0; i<a.length; i++)
					if(!a[i].value) {alert("填写登录信息："+a[i].name);return false;}
				document.forms[0].submit();
			}
			if(!__u) {
				/*
				document.write(
            '<form method="post" action="http://space.56.com/php/urs.php" target="_self" onsubmit="return ck()" class="login" id="p_userLogin">\
				<input type="hidden" name="ourl" value="'+document.location.href+(document.location.href.indexOf("?")>-1 ? "&logind":"?logind")+'">\
                <h3>56帐号直接登录</h3>\
                <div class="userID">\
                    <label>帐号</label>\
                    <input type="text" name="username" value="" id="txt_uname"/>\
                </div>\
                <div class="psw">\
                    <label>密码</label>\
                    <input type="password" name="password" value="" onkeydown="sbmt();" id="txt_pwd"/>\
                </div>\
                <div class="btns">\
					<button type="button" class="btn_login" onclick="cksbmt();">登录</button>\
					<button type="button" class="btn_reg" onclick="document.location.href=\'/reg.php\'">免费注册</button>\
				</div>\
            </form>'
			);
			*/
				document.write(
            '<form method="post" action="http://space.56.com/php/urs.php" target="_self" onsubmit="return ck()" class="login" id="p_userLogin">\
				<input type="hidden" name="ourl" value="'+document.location.href+(document.location.href.indexOf("?")>-1 ? "&logind":"?logind")+'">\
                    <label class="uid">帐号：<input type="text" name="username" value="" id="txt_uname"/></label>\
                    <label class="psw">密码：<input type="password" name="password" value="" onkeydown="sbmt();" id="txt_pwd"/></label>\
					<button type="button" class="btn_login" onclick="cksbmt();"></button>\
					<a href="#" class="btn_reg" onclick="document.location.href=\'http://reg.56.com/newreg/register/index.html?ourl=http://jx.56.com\'">免费注册</a>\
            </form>'
			);
			}else{
				/*
				document.write(
					'<form method="post" action="" class="login" id="p_userPanel">\
                <p>欢迎您：</p>\
                <p class="name"><a href="http://space.56.com/php/logout.php" class="logout" target="_self" id="p_userPanel_exit">[退出]</a>'+__u+'</p>\
                <div class="btns">\
                	<button type="button" onclick="serverDialog(1);" class="btn_go">进入游戏</button> \
                	<button type="button" onclick="window.open(\'http://pay.56.com/paycenter/sanguofengyun.php\')" class="btn_pay">帐号充值</button>\
                </div>\
            </form>'
				);*/
				document.write(
					'<form method="post" action="" class="login" id="p_userPanel">\
				<div class="login">\
					<p>欢迎您：'+__u+'  <a href="http://space.56.com/php/logout.php" class="qiut" target="_self" id="p_userPanel_exit">[退出]</a></p>\
					<div class="server">\
						<h3>服务器列表</h3>\
						<ul>\
							<li><span class="name"><a href="http://app.56.com/app.php?action=CooperationTest&partner=Jianxia&server=2058">五区2服</a></span><span class="op"><a href="http://app.56.com/index.php?action=CooperationTest&partner=Jianxia&server=2058">进入</a></span><span class="mode"><img src="http://sgfy.56.com/img/new.gif"/></span></li>\
							<li><span class="name"><a href="http://app.56.com/app.php?action=CooperationTest&partner=Jianxia&server=2049">侠肝义胆</a></span><span class="op"><a href="http://app.56.com/index.php?action=CooperationTest&partner=Jianxia&server=2049">进入</a></span><span class="mode">推荐</span></li>\
							<li><span class="name"><a href="http://app.56.com/app.php?action=CooperationTest&partner=Jianxia&server=2045">剑胆琴心</a></span><span class="op"><a href="http://app.56.com/index.php?action=CooperationTest&partner=Jianxia&server=2045">进入</a></span></span><span class="mode">推荐</span></li>\
							<li><span class="name"><a href="http://app.56.com/app.php?action=CooperationTest&partner=Jianxia&server=107">婆娑起舞</a></span><span class="op"><a href="http://app.56.com/index.php?action=CooperationTest&partner=Jianxia&server=107">进入</a></span><span class="mode">推荐</span></li>\
						</ul>\
                	</div>\
				</div>\
            </form>'
				);
			}

			
