$(document).ready(function(){
	$(".slide-player .t-t li").each(function(i){
		$(this).mouseover(
			function(){   
				showTab(".slide-player",i);
			}
		);
	});

	
    
	function SlidePlayerClick(){	
		var countNum=$('.slide-player .t-t li').size(); 
		var curNum = getRandom(countNum);
		$('.slide-player .t-t li').each(function(i){	
			if ( (i+1) == curNum ){		
				$(this).trigger('mouseover');		
			}
		});
		
	}
	
	function bannerPane(){
		setInterval(function(){
			var countNum=$('#bannerPane a').size(); 
			var curNum = getRandom(countNum);
			$("#bannerPane a").each(function(i){								
				if(curNum ==(i+1)){
					$(this).show();
				}else{
					$(this).hide();
				}
			});


		},3000);


	}

	bannerPane();
	setInterval(SlidePlayerClick,3000);
	setInterval('AutoScroll("#homeKeywords")',4000)
});