﻿// copyright by webgame.com.cn
	document.write('<style>body {margin:0; padding:0; font-size:12px}div,ul,li,p {margin:0; padding:0; list-style:none}.top_menu {height:40px; background:url(http://img.webgame.com.cn/topmenu/top_bg.gif); position:relative; z-index:998}.top_menu_content {width:1000px; margin:auto}.top_menu_logo {float:left; padding-left:15px}.top_menu_logo a {display:block; width:116px; height:35px; margin-top:1px; text-indent:-9999px; overflow:hidden; background:url(http://img.webgame.com.cn/topmenu/top_logo.gif)}.top_link {float:left; padding:8px 0 0 23px}.top_link ul {float:left; margin-top:2px}.top_link li {float:left; height:20px; padding-left:22px; padding-right:18px; line-height:20px; overflow:hidden; background:url(http://img.webgame.com.cn/topmenu/top_link.gif) no-repeat}.top_link li.tl_pay { background-position:0 -21px}.top_link li.tl_cs { background-position:0 -42px}.top_link li.tl_bbs { background-position:0 -63px}.top_link li a,.top_link li a:visited {color:#666; text-decoration:none}.top_link li a:hover { text-decoration:underline}.top_but {float:left}.top_but a {float:left; width:51px; height:21px; text-indent:-9999px; overflow:hidden; background:url(http://img.webgame.com.cn/topmenu/top_but.gif)}.top_but a.tb_login {margin-left:10px; display:inline; background-position:-51px 0}.top_menu_game {float:right}.game_list {float:left; margin-top:7px; padding:6px 15px 0 0; overflow:hidden; color:#666}.game_list p {float:left; text-indent:-5px}.game_list a,.game_list a:visited {color:#666; text-decoration:none}.game_list a:hover {text-decoration:underline}.game_more {float:left; position:relative; width:78px; height:22px; margin:13px 10px 0 0;}.game_more p a,.game_more p a:visited {color:#666; text-decoration:none}.game_more p a:hover {text-decoration:underline}.top_menu_game ul {display:none; position:absolute; z-index:999; right:5px; top:20px; width:76px; background:#fff; border:1px solid #ccc}.top_menu_game ul li {float:left; height:24px; width:100%; text-align:center; text-align:center; border-bottom:1px solid #e8e8e8; white-space:nowrap; }.top_menu_game ul li a,.top_menu_game ul li a:visited {display:block; height:24px; line-height:25px; overflow:hidden; color:#666; text-decoration:none}.top_menu_game ul li a:hover { background:#e8e8e8; color:#666}.game_more.yes ul {display:block}.game_more.no ul {display:none}</style>');
	document.write('<div class="top_menu"><div class="top_menu_content"><div class="top_menu_logo"><a href="http://www.webgame.com.cn/" title="叶网科技首页" target="_blank">叶网科技首页</a></div><div class="top_link"><ul><li class="tl_home"><a href="http://www.webgame.com.cn" target="_blank">首页</a></li><li class="tl_pay"><a href="http://pay.webgame.com.cn" target="_blank">充值</a></li><li class="tl_cs"><a href="http://cs.webgame.com.cn" target="_blank">客服</a></li><li class="tl_bbs"><a href="http://bbs.webgame.com.cn" target="_blank">论坛</a></li></ul><div class="top_but"><a href="http://passport.webgame.com.cn/register.do" target="_blank">注册</a><a href="http://passport.webgame.com.cn/login.do" target="_blank" class="tb_login">登陆</a></div></div><div class="top_menu_game">');
	var arrLink = new Array("http://pm.webgame.com.cn", "http://xj.webgame.com.cn", "http://ff.webgame.com.cn", "http://sea.webgame.com.cn", "http://yjws.webgame.com.cn");
	var arrText = new Array("口袋精灵", "飘渺仙剑", "WEB幻想", "WEB航海", "妖姬无双");
	var n = 4; //显示条数	
	//显示随机的
	document.write('<div class="game_list"><p>');
	for (i = 0; i < n; i++)
	{
		var x = Math.round(Math.random() * (arrLink.length - 1));
			document.write(' | <a href="' + arrLink[x] + '" target="_blank">' + arrText[x] + '</a>');
			arrText.splice(x, 1);
		arrLink.splice(x, 1);
	}
	document.write('</p></div>');
	//显示剩余的	
	document.write('<div class="game_more" onMouseover="this.className=\'game_more yes\'" onMouseout="this.className=\'game_more no\'"><p><a href="http://www.webgame.com.cn/game/" target="_blank">更多游戏 &gt;&gt;</a></p><ul>');
	for (i = 0; i < arrLink.length; i++)
	{		
		document.write('<li><a href="' + arrLink[i] + '" target="_blank">' + arrText[i] + '</a></li>');		
	}
	document.write('</ul></div></div></div></div>');