function srv_c()
{
	$("#typ").val(0);
}
function get_(typ)
{
	$("#pm").html('<img src="images/wait.gif">');
	var srv = $("#srv").val();
	var str = '';
	$.getJSON('st_top.php?srv='+srv+'&typ='+typ,function(json){
														 if(json[0]==1)
														 {
															 for(var i=1;i<=10;i++)
															 {
																 str += '<li><span>'+json[1][i].no+'</span>'+json[1][i].name+'</li>';
															}
															$("#pm").html(str);
														}
														 });
}
document.write('<div id="sidber">');
document.write('<div class="entry">');
document.write('<a href="http://tr.weelaa.com/xsjc/" target="blank" class="one_m" style="width:100%;padding:0;"></a>');
document.write('</div>');
document.write('<h3>热点活动</h3>');
document.write('<div class="entry">');
document.write('<div><a href="http://forum.weelaa.com/viewthread.php?tid=637039&extra=page%3D1" target="blank"><img src="images/168X60.jpg" border="0"></a></div>');
document.write('</div>');
document.write('<div class="entry">');
document.write('<div><a href="http://tr.weelaa.com/zlp/" target="blank"><img src="images/03.jpg" border="0"></a></div>');
document.write('</div>');
//document.write('<div class="entry">');
//document.write('<div><a href="http://tr.weelaa.com/view.html?id=1239377072" target="blank"><img src="images/168-60.gif" border="0"></a></div>');
//document.write('</div>');
document.write('<h3>游戏排行榜</h3>');
document.write('<div class="entry"><div class="Digg">');
document.write('<select id="srv"  onchange="srv_c();">');
document.write('<option value="cn6" selected>s6</option>');
document.write('<option value="cn13">s13</option>');
document.write('<option value="cn12">s12</option>');
document.write('<option value="cn11">s11</option>');
document.write('<option value="cn10">s10</option>');
document.write('<option value="cn5">s5</option>');
document.write('<option value="cn4">s4</option>');
document.write('<option value="cn1">s1</option>');
document.write('<option value="cn2">s2</option>');
document.write('<option value="cn3">s3</option>');
document.write('<option value="cn9">s9</option>');
document.write('<option value="cn8">s8</option>');
document.write('<option value="cn7">s7</option>');
document.write('<option value="cnx">3x</option>');
document.write('<option value="cny">speed2</option>');
document.write('</select>');
document.write('<select id="typ"  onchange="get_(this.value)">');
document.write('<option value="0">请选择</option>');
document.write('<option value="1" selected="selected">玩家排名</option>');
document.write('<option value="2">村庄排名</option>');
document.write('<option value="3">联盟排名</option>');
document.write('<option value="4">进攻排名</option>');
document.write('<option value="5">防御排名</option>');
document.write('</select></div>');
document.write('<ul class="digg" id="pm">');
document.write('<img srv="images/wait.gif">');
document.write('</ul>');
document.write('<h3>玩家风采</h3>');
document.write('<div class="entry" id="player_ph">');
document.write('<div id="player_ph1" align="center">');
document.write('<a href="images/player_01.jpg" target="_blank" title="17173"><img src="images/01_s.jpg" alt=""></a>');
document.write('<a href="images/player_02.jpg" target="_blank" title="17173"><img src="images/02_s.jpg" alt=""></a>');
document.write('<a href="images/player_03.jpg" target="_blank" title="17173"><img src="images/03_s.jpg" alt=""></a>');
document.write('<a href="images/player_04.jpg" target="_blank" title="17173"><img src="images/04_s.jpg" alt=""></a>');
document.write('<a href="images/player_05.jpg" target="_blank" title="17173"><img src="images/05_s.jpg" alt=""></a>');
document.write('<a href="images/player_06.jpg" target="_blank" title="17173"><img src="images/06_s.jpg" alt=""></a>');
document.write('<a href="images/player_07.jpg" target="_blank" title="17173"><img src="images/07_s.jpg" alt=""></a>');
document.write('</div>');
document.write('<div id="player_ph2" align="center">');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
get_(1);
var speed = 20; //数字越大，速度越慢
var rDemo = document.getElementById('player_ph');
var rDemo1 = document.getElementById('player_ph1');
var rDemo2 = document.getElementById('player_ph2');
rDemo2.innerHTML = rDemo1.innerHTML
function Marquee2(){
if(rDemo2.offsetHeight-rDemo.scrollTop<=0)
rDemo.scrollTop-=rDemo1.offsetHeight
else{
rDemo.scrollTop++
}
}
var MyMar2 = setInterval(Marquee2,speed)
rDemo.onmouseover = function() {clearInterval(MyMar2)}
rDemo.onmouseout = function() {MyMar2=setInterval(Marquee2,speed)}