$(document).ready(function(){
	var M=$("#run li a");
	var i=-1;
	var T;
	M.click(function(){
		var URL=$(this).attr("href");
		var URL2=$(this).attr("id");
		$("#show img").attr("src",URL);
		$("#show a").attr("href",URL2);
		$("#show img").css("opacity",0);
		$("#show img").animate({opacity:1},600);
		i=M.index($(this));
		$(this).parent("li").siblings("li").children("a").removeClass("over");
		$(this).addClass("over");
		return false;
	}).hover(function(){
		clearTimeout(T);
	},function(){
		T = setTimeout(auto,6000);
	});
	
	$("#show").hover(function(){
		clearTimeout(T);
	},function(){
		T = setTimeout(auto,6000);
	});
	
	function auto(){
		if(i+1<M.length){
			i++;
		}else{
			i=0;
		}
		M.eq(i).click();
		$(this).parent("li").siblings("li").children("a").removeClass("over");
		$(this).addClass("over");
		//$("#show img").animate({opacity:1},600);
		T = setTimeout(auto,6000);
	}
	auto();
});// JavaScript Document
