var gameScrollHandle=true;
var adScrollHandle=true;
var pause;
function gamescroll(a){
	
	try{
	  //对所有的进行监听
	var oScroll = document.getElementById('new_game_in');
   //oScroll.noWrap = true;
   oScroll.onmouseover = function(e){pause = true;};
   oScroll.onmouseout = function(e){pause = false;};
 
   }catch(e){alert(e.toString());}
	if(pause){
		return;	
	}
	if(!adScrollHandle){
		window.setTimeout("gamescroll("+a+")",200);
		return;
	}
	if(gameScrollHandle){
		$("#scroll_up").blur();
		$("#scroll_down").blur();
		gameScrollHandle=false;
		if(a==1){
		
			$("#new_game_in").append("<ul>"+$("#new_game_in ul:first").html()+"</ul>").animate({top:-23},300,function(){$("#new_game_in ul:first").remove();
			$("#new_game_in").css({top:0});
			gameScrollHandle=true})
			}else{
				$("#new_game_in").prepend("<ul>"+$("#new_game_in ul:last").html()+"</ul>").css({top:-23}).animate({top:0},300,function(){$("#new_game_in ul:last").remove();gameScrollHandle=true})}}}
				
var gamescrollseed;
function initGameScroll(){
	amescrollseed=window.setInterval("gamescroll(1)",3000);
	$("#hottagid").hover(function(){alert("ccc");window.clearInterval(gamescrollseed)},function(){gamescrollseed=window.setInterval("gamescroll(1)",3000)})}

jQuery(document).ready(function(){
initGameScroll();
});


















var gameScrollHandle=true;
var adScrollHandle=true;
var pause;
function gamescroll(a){
	
	try{
	  //对所有的进行监听
	var oScroll = document.getElementById('new_game_in');
   //oScroll.noWrap = true;
   oScroll.onmouseover = function(e){pause = true;};
   oScroll.onmouseout = function(e){pause = false;};
 
   }catch(e){alert(e.toString());}
	if(pause){
		return;	
	}
	if(!adScrollHandle){
		window.setTimeout("gamescroll("+a+")",200);
		return;
	}
	if(gameScrollHandle){
		$("#scroll_up").blur();
		$("#scroll_down").blur();
		gameScrollHandle=false;
		if(a==1){
		
			$("#new_game_in_logo").append("<ul>"+$("#new_game_in_logo ul:first").html()+"</ul>").animate({top:-23},300,function(){$("#new_game_in_logo ul:first").remove();
			$("#new_game_in_logo").css({top:0});
			gameScrollHandle=true})
			}else{
				$("#new_game_in_logo").prepend("<ul>"+$("#new_game_in_logo ul:last").html()+"</ul>").css({top:-23}).animate({top:0},300,function(){$("#new_game_in_logo ul:last").remove();gameScrollHandle=true})}}}
				
var gamescrollseed;
function initGameScroll(){
	amescrollseed=window.setInterval("gamescroll(1)",3000);
	$("#hottagid").hover(function(){alert("ccc");window.clearInterval(gamescrollseed)},function(){gamescrollseed=window.setInterval("gamescroll(1)",3000)})}

jQuery(document).ready(function(){
initGameScroll();
});

