﻿	var slideNum = 0;
	var slideTimeout;

$(document).ready(function(){
	$(".slide-player li").each(function(i){
		$(this).mouseover(function(){
			$(this).addClass("selected").siblings().removeClass("selected");

			$(".slide-player > div").each(function(j){
				(j == i) ? $(this).show() : $(this).hide();

				$(this).mouseover(function(){
					clearInterval(slideTimeout);
				}).mouseout(function(){
				});
			}).mouseout(function(){
			});
		});
	});
	slideTimeout = setInterval(SlidePlayerClick, 3000);
});

	function SlidePlayerClick(){	
		if(slideNum>$('.slide-player li').size()-1){
			slideNum = 0;
		}
		$('.slide-player li').each(function(i){	
			if ( i == slideNum ){		
				$(this).trigger('mouseover');		
			}
		});
		slideNum++;
	}
