$(document).ready(function(){
/*
+----------------------------------------------------------------+
	Home														
+----------------------------------------------------------------+
*/			
$(".home .products").hover(function(){
	$(this).find(".hover").stop(true,true).animate({
		opacity: 1							   
	},200).fadeIn(300);									
},function(){
	$(this).find(".hover").fadeOut(300);
});

$(".home .products").click(function(){
	window.location=$(this).find("h2 > a").attr("href");
	return false;							  
});

$(".ico-video").click(function(){
	window.location=$(this).parent().find("h2 > a").attr("href");
	return false;
});

/*
+----------------------------------------------------------------+
	Produtos														
+----------------------------------------------------------------+
*/
$(".products .archive .post").hover(function(){
	$(this).find(".hover").stop(true,true).animate({
		opacity: 1							   
	},200).fadeIn(300);									
},function(){
	$(this).find(".hover").fadeOut(300);
});

$(".products .archive .post").click(function(){
	window.location=$(this).find("h2 > a").attr("href");
	return false;							  
});

$(".products-full #related li").hover(function(){
	$(this).find(".hover").stop(true,true).animate({
		opacity: 1							   
	},200).fadeIn(300);									
},function(){
	$(this).find(".hover").fadeOut(300);
});

$(".products-full #related li").click(function(){
	window.location=$(this).find("h4 > a").attr("href");
	return false;							  
});

/*
+----------------------------------------------------------------+
	Paleta de cores														
+----------------------------------------------------------------+
*/
$("#other-colors li").click(function(){
	var largeImg = $(this).find('a').attr('href');
	var description = $(this).find('a').attr('title');
	$("#placeholder img").attr({
		src: largeImg,
		alt: description,
		title: description
	});
	$("#color-name").html(description);
	return false;
});

/*
+----------------------------------------------------------------+
	Hot Topics														
+----------------------------------------------------------------+
*/
$("#sidebar #recents ul li:last-child").addClass('last');
$("#sidebar #twitter ul li:last-child").addClass('last');

});
