// JavaScript Document
	var t = n = count = 0;   
	$(function(){   
		count = $("#recalbum a").size();  
		$("#recalbum a:not(:first-child)").hide();   
		$("#recinfo").html($("#recalbum a:first-child").find("img").attr('alt'));
		$("#rectext li:first-child").css({"background":"#fff",'color':'#000'});   
		$("#recinfo").click(function(){window.open($("#recalbum a:first-child").attr('href'), "_blank")});
		$("#rectext li").click(function() {

			var i = $(this).text() - 1;
	
			n = i;
	
			if (i >= count) return;
	
			$("#recinfo").html($("#recalbum a").eq(i).find("img").attr('alt'));
	
			$("#recinfo").unbind().click(function(){window.open($("#recalbum a").eq(i).attr('href'), "_blank")})
	
			$("#recalbum a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(1000);
	
			$(this).css({"background":"#fff",'color':'#000'}).siblings().css({"background":"#000",'color':'#fff'});

	});
   
		t = setInterval("showAuto()", 3000);   
		$("#rec").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 3000);});   
	});   
	  
	function showAuto()   
	{   
		n = n >= (count - 1) ? 0 : n + 1;   
		$("#rectext li").eq(n).trigger('click');
	}   

