﻿var regparn = '';

if (window.location.host.toLowerCase() == 'sq.dyjoy.com' || window.location.host.toLowerCase() == 'test.dyjoy.net') {
    regparn = '?GameID=2&ip=' + escape(curlvalue);
    if (CheckNull(curfromvalue)) {
        regparn += '&from=' + curfromvalue;
    }
       regparn+='&uid=' + getCookie('uidstr');

}else if (window.location.host.toLowerCase() == 'hl.dyjoy.com') {
    regparn = '?GameID=5&ip=' + escape(curlvalue);
    if (CheckNull(curfromvalue)) {
        regparn += '&from=' + curfromvalue;
    }
}


var topchanneltext = '\
<style type="text/css">\
<!--\
.tonglan{\
	width:100%;\
	height: 55px;\
	background-image: url(http://hl.dyjoy.com/n2/images/beijing.jpg);\
	background-repeat: no-repeat;\
}\
.t-1420{\
	width:100%;\
	height: 55px;\
	position: absolute;\
}\
.t-foot:link{	font-family: "宋体";\
	font-size: 14px;\
	color: #000000;\
	text-decoration: none;\
}\
.t-foot:visited{font-family: "宋体";\
	font-size: 14px;\
	color: #000000;text-decoration: none;}\
.t-foot:hover{color:#FF0000; text-decoration: underline;}\
.t-foot:active{color:#FF0000; text-decoration: underline;}\
.t-logo{\
	height: 55px;\
	width: 186px;\
	position: absolute;\
}\
.t-zhongxin{\
	height: 20px;\
	width: 450px;\
	float: right;\
	margin-top: 6px;\
}\
.t-youxi{\
	margin-left: 195px;\
	margin-top: 32px;\
	height: 18px;\
	width: 355px;\
}\
.t-youxi a{\
	height: 18px;\
}\
.t-STYLE1 {\
	color: #000000;\
	font-size: 14px;\
}\
-->\
</style>\
<div class="tonglan">\
<div class="t-1420">\
<div class="t-logo"><a href="http://www.dyjoy.com/" target="_blank"><img src="http://hl.dyjoy.com/n2/images/logo2.jpg" width="186" height="55" border="0" /></a></div>\
<div class="t-zhongxin">\
  <table border="0" cellpadding="0" cellspacing="0">\
    <tr>\
      <td width="16"><img src="http://hl.dyjoy.com/n2/images/zhuce.gif" width="13" height="18" /></td>\
      <td width="115" align="center" valign="bottom"><a href="http://user.dayouyouxi.com/Reg.aspx' + regparn + '" target="_blank" class="t-foot">注册</a><span class="t-STYLE1">/</span><a href="http://user.dayouyouxi.com/" target="_blank" class="t-foot">帐号管理</a></td>\
      <td width="15">&nbsp;</td>\
      <td width="16"><a href="http://services.dyjoy.com/RMA-Center/RMA_Index.aspx" target="_blank"><img src="http://hl.dyjoy.com/n2/images/kf.gif" width="16" height="19" border="0" /></a></td>\
      <td width="50" align="center" valign="bottom"><a href="http://services.dyjoy.com/" target="_blank" class="t-foot">客服</a></td>\
      <td width="15">&nbsp;</td>\
      <td width="15"><a href="http://user.dayouyouxi.com/pay/index.html" target="_blank"><img src="http://hl.dyjoy.com/n2/images/chongzhi.gif" width="13" height="18" border="0" /></a></td>\
      <td width="95" align="center" valign="bottom"><a href="http://user.dayouyouxi.com/pay/index.html" target="_blank" class="t-foot">购卡</a><span class="t-STYLE1">/</span><a href="http://user.dayouyouxi.com/pay/index.html" target="_blank" class="t-foot">充值</a></td>\
	  	        <td width="16"><a href="http://sq.dyjoy.com/spview.aspx?ID=228" target="_blank"><img src="http://hl.dyjoy.com/n2/images/dun66.gif" width="16" height="19" border="0" /></a></td>\
      <td width="80" align="center" valign="bottom"><a href="http://sq.dyjoy.com/spview.aspx?ID=228" target="_blank" class="t-foot">防沉迷</a></td>\
	   <td width="16"><a href="http://sq.dyjoy.com//zt/fcm/defend7.html" target="_blank"><img src="http://hl.dyjoy.com/n2/images/xiaoren.gif" width="16" height="19" border="0" /></a></td>\
	  <td width="80" align="center" valign="bottom"><a href="http://sq.dyjoy.com//zt/fcm/defend7.html" target="_blank" class="t-foot">家长监护</a></td>\
    </tr>\
  </table>\
</div>\
<div class="t-youxi">\
<table border="0" align="center" cellpadding="0" cellspacing="0">\
    <tr>\
      <td width="18"><a href="http://rxtx.dyjoy.com/" target="_blank"><img src="http://hl.dyjoy.com/n2/images/rexue.jpg" width="18" height="18" border="0" /></a></td>\
      <td width="65" align="center" valign="bottom"><a href="http://rxtx.dyjoy.com/" target="_blank" class="t-foot">热血天下</a></td>\
      <td width="10">&nbsp;</td>\
      <td width="16"><a href="http://sq.dyjoy.com/" target="_blank"><img src="http://hl.dyjoy.com/n2/images/SHIQI.gif" width="18" height="18" border="0" /></a></td>\
      <td width="60" align="center" valign="bottom"><a href="http://sq.dyjoy.com/" target="_blank" class="t-foot">石器2012</a></td>\
      <td width="10">&nbsp;</td>\
      <td width="15"><a href="http://hl.dyjoy.com/" target="_blank"><img src="http://hl.dyjoy.com/n2/images/huluwa.jpg" width="18" height="18" border="0" /></a></td>\
      <td width="65" align="center" valign="bottom"><a href="http://hl.dyjoy.com/" target="_blank" class="t-foot">葫芦娃OL</a></td>\
	        <td width="10">&nbsp;</td>\
	<td><!--<a href="#" target="_blank"><img src="http://hl.dyjoy.com/n2/images/dayou.jpg" width="18" height="18" border="0" /></a>--></td>\
      <td width="65" align="center" valign="bottom" class="t-foot"><!--<a href="javascript:void(0);alert(\'即将开放，敬请期待！\');" class="t-foot">棋牌中心</a>--></td>\
    </tr>\
  </table></div>\
</div>\
</div>\
';
document.write(topchanneltext);
