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 gamestart(){
				//alert('请留意，《牧场》1月20日12点正式开服');
				document.location.href = 'http://app.56.com/app.php?action=cooperation&partner=Muchang&partner_do=ShowGame';
				//document.location.href = 'http://v16.56.com/acss/acss.php?atable=200901&targetUrl=http%3A%2F%2Fmc.56.com&aid=1950';
			}
			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();
			}

			var __num = '21265';  // 人数
			if(!__u) {
				/*document.write(
            '<div class="login">\
				<div class="title"><h2>登录游戏</h2></div>\
					<div class="content">\
					<form action="">\
                    	<p>共有<strong>' + __num + '</strong>名英雄等待你加入乱世之争！</p>\
                        <p class="strong">使用56帐号直接登陆</p>\
                        <div><a class="reg" href="http://reg.56.com/newreg/register/index.html?ourl=http://rxsg.56.com">注册帐号</a><button></button></div>\
                    </form>\
				 </div>\
			 </div>'
			);*/
				document.write(
						 '<form method="post" action="http://space.56.com/php/urs.php" target="_self" onsubmit="return ck()"  id="p_userLogin">\
                    <table width="150" border="0" cellspacing="0" cellpadding="0" >\
                        <tr>\
                            <td width="40">用户</td>\
                            <td><input name="username" type="text" class="login_input"  id="txt_uname"/></td>\
                        </tr>\
                        <tr>\
                            <td>密码</td>\
                            <td><input name="password" type="password" class="login_input" onkeydown="sbmt();" id="txt_pwd"/><input type="hidden" name="ourl" value="'+document.location.href+(document.location.href.indexOf("?")>-1 ? "&logind":"?logind")+'">\</td>\
                        </tr>\
                    </table>\
                    <button name="" type="button" value="" class="login_button"  onclick="cksbmt();"></button>\
                    <table width="150" border="0" cellspacing="0" cellpadding="0" style="text-align:left; margin-top:6px;" >\
                        <tr>\
                            <td><img src="http://v.56.com/special/muchang/_tpl/muchang/images/pwd.jpg" align="absmiddle" /></td>\
                            <td><a href="http://reg.56.com/newreg/register/index.php?action=forgetPass" target="_blank">忘记密码</a></td>\
                        </tr>\
                    </table>\
                </form>'
						 );
			}else{
				document.write(
            ' <table width="150" border="0" cellspacing="0" cellpadding="0" >\
                <tr>\
                    <td><a href="http://' + __u + '.56.com" class="user_name">'+ __u +'</a>&nbsp;&nbsp;<a href="http://space.56.com/php/logout.php" class="quit">退出</a></td>\
                </tr>\
                <tr>\
                    <td><input type="button" class="btn_start" onclick="gamestart()" /></td>\
                </tr>\
            </table>'
				);

			}

			