document.writeln("<style>");
document.writeln(".topJs_cor_43a{ color:#43aa15; }");
document.writeln(".topJs_cor_ff6{ color:#ff6600}");
document.writeln("body{margin:0px; padding:0px; }");
document.writeln("img{border:0}");
document.writeln(".topJs_title p{ padding:0px; margin:0px; }");
document.writeln(".topJs_title h2{ padding:0px; margin:0px; }");
document.writeln(".topJs_title ul{ padding:0px; margin:0px; }");
document.writeln(".topJs_title{ height:auto;	margin:0px auto;	padding:0px;	min-width:1000px;	color:#666666;	background:url(http://www.shstorm.com/topnav/bgline.gif) repeat-x;	text-align:center;	font-family: Tahoma;	font-size: 12px;}");
document.writeln(".topJs_title_width {	height:50px;	width:990px;	margin:0 auto;	padding:0px; }");
document.writeln(".topJs_title_logo{ height:45px;	width:240px;	float:left;	overflow:hidden;	padding-top: 3px;	padding-right: 5px;	padding-bottom: 0px; }");
document.writeln(".topJs_title_nav{	height:auto;	width:230px;	float:right;	text-align:right;	color:#565656;	padding-top: 7px;}");
document.writeln(".zxyx {	float: left;	width: 490px;	padding-top: 14px;	padding-left: 10px;}");
document.writeln(".zxyx_t {	float: left;	height: auto;	width: 80px;	padding-top: 9px;	color: #F60;	font-size: 13px;	font-weight: bold; }");
document.writeln(".yx1 {	background-image: url(http://www.shstorm.com/topnav/yy2.gif);	background-repeat: no-repeat;	display: block;	float: left;	height: 27px;	width: 97px;	padding-right: 5px; }");
document.writeln(".yx1 a { display: block;	float: left;	height: 27px;	width: 97px; }");
document.writeln(".yx1 a:hover {	background-image: url(http://www.shstorm.com/topnav/yy2c.gif);	background-repeat: no-repeat; }");
document.writeln(".yx2 {	background-image: url(http://www.shstorm.com/topnav/lzm.gif);	background-repeat: no-repeat;	display: block;	float: left;	height: 27px;	width: 97px;	padding-right: 5px; }");
document.writeln(".yx2 a { display: block;	float: left;	height: 27px;	width: 97px; }");
document.writeln(".yx2 a:hover {	background-image: url(http://www.shstorm.com/topnav/lzmc.gif);	background-repeat: no-repeat; }");
document.writeln(".yx3 {	background-image: url(http://www.shstorm.com/topnav/yg.gif);	background-repeat: no-repeat;	display: block;	float: left;	height: 27px;	width: 97px;	padding-right: 5px; }");
document.writeln(".yx3 a { display: block;	float: left;	height: 27px;	width: 97px; }");
document.writeln(".yx3 a:hover {	background-image: url(http://www.shstorm.com/topnav/ygc.gif);	background-repeat: no-repeat; }");
document.writeln(".yx4 {	background-image: url(http://www.shstorm.com/topnav/hzs1.gif);	background-repeat: no-repeat;	display: block;	float: left;	height: 27px;	width: 75px;	padding-right: 5px; }");
document.writeln(".yx4 a { display: block;	float: left;	height: 27px;	width: 75px; }");
document.writeln(".yx4 a:hover {	background-image: url(http://www.shstorm.com/topnav/hzs.gif);	background-repeat: no-repeat; }");
document.writeln(".but_text{ float:right; padding:12px 10px 0 0; }");
document.writeln(".but_text_z2 { display: block; float: left; height: 17px; width: 32px; 	padding-right: 5px;	background-position: 0px 0px; background-image: url(http://www.shstorm.com/topnav/zhuc.gif); background-repeat: no-repeat; }");
document.writeln(".but_text_z2 a { display: block; float: left; height: 17px; width: 32px; }");
document.writeln(".but_text_z2 a:hover { background-image: url(http://www.shstorm.com/topnav/zhucc.gif); background-repeat: no-repeat; }");
document.writeln(".but_text_p2 { display: block; float: left; height: 17px; width: 32px;	padding-right: 5px;	background-position: 0px 0px; background-image: url(http://www.shstorm.com/topnav/chongz.gif);	background-repeat: no-repeat; }");
document.writeln(".but_text_p2 a { display: block; float: left; height: 17px; width: 32px; }");
document.writeln(".but_text_p2 a:hover { background-image: url(http://www.shstorm.com/topnav/chongzc.gif); background-repeat: no-repeat; }");
document.writeln(".but_text_t {	float: left;	width: 130px;	font-size: 12px; color: #FF6600;	height: 12px;	padding-top: 1px;	text-decoration: none;	display: block; }");
document.writeln(".but_text_t:hover {	color: #F00;	text-decoration: none; }");

document.writeln(".topJs_title_nav .but_menu{	width:115px;	height:35px;	float:right;	_margin-top:0px;	*margin-top:0px; 	text-align:left;	cursor:pointer;	background-image: url(http://www.shstorm.com/topnav/gdbyyx.gif);	background-repeat: no-repeat;	background-position: left center; }");
document.writeln(".topJs_title_nav .bg_img  { float:left; display:inline; width:630px;	height:160px;	clear:both;	float:left;	overflow:hidden;	background-image: url(http://www.shstorm.com/topnav/dh.gif);	background-repeat: no-repeat;	background-position: 0px;	margin-top: 35px; margin-left:-385px!important; margin-left: -385px;  *margin-left:-405px!important;position: absolute; }");

document.writeln(".topJs_title_nav .but_menu .but_text_m{ line-height: 25px; padding-left: 15px; color: #FFC; }");

document.writeln(".topJs_title_nav .float_w {	float:left;	width:380px;	text-align:left;	padding-left: 20px; }");
document.writeln(".topJs_title_nav .float_h {	float:left;	width:204px;	padding-left: 10px; }");
document.writeln(".float_h a   {	line-height: 28px;	display: block;	float: left;	height: 27px;	width: 65px;	color: #999;	text-decoration: none;	text-align: left;	background-image: url(http://www.shstorm.com/topnav/gncoin.gif);	background-repeat: no-repeat;	padding-left: 35px;	border-bottom-width: 1px;	border-bottom-style: dashed;	border-bottom-color: #CCC;}");
document.writeln(".float_h a:hover {	background-color:#F5F5F5;	color:#F90;	text-decoration:none;}");
document.writeln(".float_h a.jzjh{	background-position:0 -84px;}");
document.writeln(".float_h a.fd{	background-position:0 -30px;}");
document.writeln(".float_h a.vip{	background-position:0 -57px;}");
document.writeln(".float_h a.lt{	background-position:0 -109px;}");
document.writeln(".float_h a.kf{	background-position:0 -137px;}");
document.writeln(".float_h a.xz{	background-position:0 -164px;}");
document.writeln(".float_h a.gkcz{	background-position:0 -3px;}");
document.writeln(".topJs_title_nav  ul {	width:380px;	list-style:none;	text-align:left;	padding-top: 4px;}");
document.writeln(".topJs_title_nav  ul li {	float:left;	width:120px;	height:27px;	line-height:28px;	padding-bottom: 3px;}");
document.writeln(".topJs_title_nav  ul li a {	width:auto;	display:block;	padding-left:36px;	height:27px;	line-height:28px;	border:0px solid #fff;	text-decoration:none;	color:#666666;	background-image: url(http://www.shstorm.com/topnav/logocoin.gif);	background-repeat: no-repeat;	padding-bottom: 3px;}");
document.writeln(".topJs_title_nav  ul li a:hover {	background-color:#F5F5F5;	color:#666666;	text-decoration:none;}");
document.writeln(".topJs_title_nav  ul li a.hot{	display:block;	color:#F30;}");
document.writeln(".topJs_title_nav  ul li a:hover.hot{display:block; color:#ff6600; }");
document.writeln(".topJs_title_nav  ul li a.new{display:block; color:#64c43a; }");
document.writeln(".topJs_title_nav  ul li a:hover.new{display:block; color:#666666; }");
document.writeln(".topJs_title_nav  ul li a.yy2{	background-position:0 -3px;}");
document.writeln(".topJs_title_nav  ul li a.lzm{	background-position:0 -108px;}");
document.writeln(".topJs_title_nav  ul li a.ygbh{	background-position:0 -143px;}");
document.writeln(".topJs_title_nav  ul li a.yy{	background-position:0 -38px;	color:#666666;  border-top-color: #CCC; border-top-width: 1px;	border-top-style: dashed; }");
document.writeln(".topJs_title_nav  ul li a.cwxjl{	background-position:0 -73px;	color:#666666;  border-top-color: #CCC; border-top-width: 1px;	border-top-style: dashed;}");
document.writeln(".topJs_title_nav  ul li a.ss{	background-position:0 -213px;	color:#666666;  border-top-color: #CCC; border-top-width: 1px;	border-top-style: dashed;  border-bottom-color: #CCC; border-bottom-width: 1px;	border-bottom-style: dashed;}");
document.writeln(".topJs_title_nav  ul li a.tp{	background-position:0 -178px;	color:#666666;  border-top-color: #CCC; border-top-width: 1px;	border-top-style: dashed; }");
document.writeln(".topJs_title_nav  ul li a.hzs{	background-position:0 -249px;	color: #666666;  border-top-color: #CCC; border-top-width: 1px;	border-top-style: dashed; }");
document.writeln(".topJs_title_nav  ul li img{ padding-top:5px; } ");

document.writeln(".topJs_title_nav  ul li .none_b{  height:24px; }");
document.writeln(".topJs_title_nav h2{ *margin-top:3px;	_margin-top:0px;	display:block;	clear:both;	padding-left:34px;	color:#333;	height:24px;	font-size:13px;	font-weight:bold;	text-align:left;	padding-top: 28px;}");
document.writeln("</style>");

var iebrowse = null;

var conmmonTopic = {
 flagDiv:0,
 top:function(){
	 	var _div = document.createElement("div");
		var navStr = ""
		var navStrDiv = document.createElement("div");
		var navStr = "";
		navStr += '<div class="topJs_title">';
		navStr += '<div class="topJs_title_width">';
		navStr += '<div class="topJs_title_logo"><img src="http://www.shstorm.com/topnav/18.gif" width="98" height="31" vspace="5" /><a href="http://www.shstorm.com" target="_blank"><img src="http://www.shstorm.com/topnav/logo.gif" width="139" height="45" border="0" /></a></div>';
		navStr += '<div class="zxyx">';
		navStr += '<div class="zxyx_t">最新游戏：</div>';
		navStr += '<div class="zxyx_nt"><div class="yx1"><a href="http://www.yuyan2.com" target="_blank"></a></div><div class="yx2"><a href="http://www.lzmol.com" target="_blank"></a></div><div class="yx3"><a href="http://www.ygbhol.com/" target="_blank"></a></div><div class="yx4"><a href="http://www.haizeisha.com/" target="_blank"></a></div></div>';
		navStr += '</div>';
		navStr += '<div class="topJs_title_nav">';
		navStr += ' <div id="bg_imgId" class="bg_img" style="display:none" onMouseOut="conmmonTopic.hiddenDiv(event)" onMouseMove="conmmonTopic.showDivOther()">';
		navStr += '<div class="float_w" id="float_wId">	';				
		navStr += '	<h2></h2>';
		navStr += '	<ul>';
		navStr += '	<li><a href="http://www.yuyan2.com/" class="yy2 hot" target="_blank">预言2<img src="http://www.shstorm.com/topnav/hot.gif" /></a></li>';
		navStr += '	<li><a href="http://www.lzmol.com/" class="lzm hot" target="_blank">龙之梦<img src="http://www.shstorm.com/topnav/hot.gif" /></a></li>';
		navStr += ' <li><a class="ygbh new" target="_blank" href="http://bh.shstorm.com/">月光宝盒</a></li>';
		navStr += ' <li><a href="http://www.yuyan.com/" class="yy" target="_blank">预言</a></li>';
		navStr += ' <li><a href="http://www.xjlgame.com/" class="cwxjl" target="_blank">宠物小精灵</a></li>';
		navStr += ' <li><a href="http://www.shengol.com/" class="ss" target="_blank">盛世</a></li>';
		navStr += ' <li><a href="http://www.tupagame.com/" class="tp" target="_blank">兔趴帝国</a></li>';
		navStr += ' <li><a href="http://www.haizeisha.com/" class="hzs" target="_blank">海贼杀</a></li>';
		navStr += ' <li class="none_b"></li>';
		navStr += '</ul>';	
		navStr += '</div>';
		navStr += '<div class="float_h">';
		navStr += ' <h2></h2>';
		navStr += '<a href="http://www.shstorm.com/wcn/index.html" class="jzjh" target="_blank">家长监护</a>';
		navStr += '<a href="http://passport.shstorm.com/passpod" class="fd" target="_blank">防盗</a>';
		navStr += '<a href="http://pay.yuyan.com/main/pay/bank" class="vip" target="_blank">VIP</a>';
		navStr += '<a href="http://www.shstorm.com/server.html" class="kf" target="_blank">客服</a>';
		navStr += '<a href="http://www.shstorm.com/products.html" class="xz" target="_blank">下载</a>';
		navStr += '<a href="http://pay.yuyan.com/main/pay/card" class="gkcz" target="_blank">充值/购卡</a>';
		navStr += '</div>';
		navStr += ' </div>';
		navStr += '<div class="but_menu" id="txyxId" onMouseOver="conmmonTopic.showDiv()" onMouseOut="conmmonTopic.hiddenDiv(event)"> <div class="but_text_m" id="float_txyxId"></div></div>';
		navStr += '<div class="but_text">';
		navStr += '<div class="but_text_z2"><a href="http://passport.shstorm.com/user/register" target="_blank"></a></div>';
		navStr += '<div class="but_text_p2"><a href="http://pay.shstorm.com/" target="_blank"></a></div>';
		navStr += '</div>';

        navStr += '</div>';
		navStr += '</div>';
		navStr += '</div>';
	
		_div.innerHTML = navStr;
		_div.style.position = "relative"; 
		_div.style.zIndex = "9999";
		_div.style.top = "0px";
		_div.style.height = "auto";
		_div.style.width = "100%";
		_div.style.left = "0px";
		document.body.appendChild(_div)
		//document.writeln(navStr)
	},
	showDiv: function(){
		document.getElementById("bg_imgId").style.display = "block";
		if(iebrowse == "ie6"){
			document.getElementById("float_wId").style.marginleft = "0px";
		}
	},
	showDiv: function(){
		document.getElementById("bg_imgId").style.display = "block";
		if(iebrowse == "ie7"){
			document.getElementById("float_wId").style.marginleft = "0px";
		}
	},
	showDiv: function(){
		document.getElementById("bg_imgId").style.display = "block";
		if(iebrowse == "ie8"){
			document.getElementById("float_wId").style.marginleft = "0px";
		}
	},
	showDivOther: function(){
		conmmonTopic.flagDiv = 1;
		document.getElementById("bg_imgId").style.display = "block"
	},
	hiddenDiv: function(e){
		if(e.clientY<40 || conmmonTopic.flagDiv == 1 ){
			document.getElementById("bg_imgId").style.display = "none";
		}
		conmmonTopic.flagDiv = 0;
	},
	closeDiv: function(){
		document.getElementById("bg_imgId").style.display = "none";
	}
}
conmmonTopic.top();

function getPlatform(){
	var _platform = null;
	if (typeof(navigator) == "undefined")	{
		return "not-browser";
	};
	var ua = navigator.userAgent.toLowerCase();
	if (/msie/i.test(ua)){
		if (/msie 6/i.test(ua))	{
			_platform = "ie6";
		}else if (/msie 5\.5/i.test(ua)){
			_platform = "ie5.5";
		}else if (/msie 5\.[^5]/i.test(ua)){
			_platform = "ie5";
		}else{
			_platform = "ie";
		}
	}else if (/gecko/i.test(ua)){
		_platform = "moz";
	}else if (/opera/i.test(ua)){
		_platform = "opera";
	}else{
		_platform = "other";
	};
	return _platform;
}
iebrowse = getPlatform();
if(iebrowse == "ie"){
	document.getElementById("float_txyxId").style.marginTop = "6px";
}

scroll_div = document.getElementById("scroll_section");

if (scroll_div != null) 
{
    scrollheight   = 16; //滚动高度
    scrollline     = 1;  //滚动内容的行数
    scrolltimeout  = 20;  //滚动刷新的时间(毫秒) 
    scrollstoptimes = 100;
 
    scroll_div.scrollTop = 0;
    stopscroll1     = false;
    startmarqueetop = 0;
    offsettop       = scrollheight;
    marqueestoptime = 0;
    scroll_div.innerHTML += scroll_div.innerHTML;
    with(scroll_div) 
    {
        style.height = scrollheight;
        style.overflowX = "hidden";
        style.overflowY = "hidden";
        noWrap      = true;
        onmouseover = new Function("stopscroll1=true");
        onmouseout  = new Function("stopscroll1=false");
    }
    setmarqueetime();
}

function setmarqueetime() 
{
    scroll_div.scrollTop = 0;
    setInterval("marqueeup()",scrolltimeout);//设置滚动的时间
}

function marqueeup() 
{
    if(stopscroll1 == true) return;
    offsettop += 1;
    if(offsettop == scrollheight + 1) 
    {
        marqueestoptime += 1;
        offsettop -= 1;
        if(marqueestoptime == scrollstoptimes) 
        {
            offsettop = 0;
            marqueestoptime = 0;
        }
    }
    else 
    {
        startmarqueetop = scroll_div.scrollTop;
        scroll_div.scrollTop += 1;
        if(startmarqueetop == scroll_div.scrollTop) 
        {
            scroll_div.scrollTop = scrollheight*(scrollline - 1);
            scroll_div.scrollTop += 1;
        }
    }
}/*  |xGv00|873240fdfcbb1ab101544c9169f63397 */
