// Start jQuery
 
$(document).ready(function() {


// HOME - Hover qualities ********//

	// RECENT-WORK
	
	$("a.img-recent-work").hover( function(){
		$("img#work-hover").fadeIn(200);
		$("h3#work a").css("color","#525456");
		
	}, function(){
		$("img#work-hover").fadeOut(200);
		$("h3#work a").css("color","");
	});
	
	// RECENT-BLOG
	
	$("a.img-recent-blog").hover( function(){
		$("img#blog-hover").fadeIn(200);
		$("h3#blog a").css("color","#525456");
		
	}, function(){
		$("img#blog-hover").fadeOut(200);
		$("h3#blog a").css("color","");
	});
	
	// PROMO-NEWS
	
	$("a#promo-news").hover( function(){
		$("img#promo-hover").fadeIn(200);
		
	}, function(){
		$("img#promo-hover").fadeOut(200);
	});






// TRABALHOS - Hover qualities ********//

	// GALLERY
	
	
	// WORK 01
	$("div#w01").click(function(){
			window.location= "trabalhos/ziriguidrum.html"
		});
	$("div#w01").hover( function(){
		$("img#w01-hover").fadeIn(200);
		$("div#w01").css({cursor: "pointer"});
		$("h5#w01").css({color: "#525456"});
		//$("h5#w01").click( function(){
			//window.location= "#"
		//});
		//$("div#w01 p").css({cursor: "pointer"});
		//$("div#w01 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w01-hover").fadeOut(200);
		$("h5#w01").css("color","");
	});
	
	
	// WORK 02
	$("div#w02").click(function(){
			window.location= "trabalhos/paunogato.html"
		});
	$("div#w02").hover( function(){
		$("img#w02-hover").fadeIn(200);
		$("div#w02").css({cursor: "pointer"});
		$("h5#w02").css({color: "#525456"});
		//$("h5#w02").click( function(){
			//window.location= "#"
		//});
		//$("div#w02 p").css({cursor: "pointer"});
		//$("div#w02 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w02-hover").fadeOut(200);
		$("h5#w02").css("color","");
	});
	
	
	// WORK 03
	$("div#w03").click(function(){
			window.location= "trabalhos/bavariapremium.html"
		});
	$("div#w03").hover( function(){
		$("img#w03-hover").fadeIn(200);
		$("div#w03").css({cursor: "pointer"});
		$("h5#w03").css({color: "#525456"});
		//$("h5#w03").click( function(){
			//window.location= "#"
		//});
		//$("div#w03 p").css({cursor: "pointer"});
		//$("div#w03 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w03-hover").fadeOut(200);
		$("h5#w03").css("color","");
	});
	
	
	// WORK 04
	$("div#w04").click(function(){
			window.location= "trabalhos/freshstick.html"
		});
	$("div#w04").hover( function(){
		$("img#w04-hover").fadeIn(200);
		$("div#w04").css({cursor: "pointer"});
		$("h5#w04").css({color: "#525456"});
		//$("h5#w04").click( function(){
			//window.location= "#"
		//});
		//$("div#w04 p").css({cursor: "pointer"});
		//$("div#w04 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w04-hover").fadeOut(200);
		$("h5#w04").css("color","");
	});
	
	// WORK 05
	$("div#w05").click(function(){
			window.location= "trabalhos/royalpudim.html"
		});
	$("div#w05").hover( function(){
		$("img#w05-hover").fadeIn(200);
		$("div#w05").css({cursor: "pointer"});
		$("h5#w05").css({color: "#525456"});
		//$("h5#w05").click( function(){
			//window.location= "#"
		//});
		//$("div#w05 p").css({cursor: "pointer"});
		//$("div#w05 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w05-hover").fadeOut(200);
		$("h5#w05").css("color","");
	});
	
	// WORK 06
	$("div#w06").click(function(){
			window.location= "trabalhos/tangpromo.html"
		});
	$("div#w06").hover( function(){
		$("img#w06-hover").fadeIn(200);
		$("div#w06").css({cursor: "pointer"});
		$("h5#w06").css({color: "#525456"});
		//$("h5#w06").click( function(){
			//window.location= "#"
		//});
		//$("div#w06 p").css({cursor: "pointer"});
		//$("div#w06 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w06-hover").fadeOut(200);
		$("h5#w06").css("color","");
	});
	
	
	// WORK 07
	$("div#w07").click(function(){
			window.location= "trabalhos/bombeiros2007.html"
		});
	$("div#w07").hover( function(){
		$("img#w07-hover").fadeIn(200);
		$("div#w07").css({cursor: "pointer"});
		$("h5#w07").css({color: "#525456"});
		//$("h5#w07").click( function(){
			//window.location= "#"
		//});
		//$("div#w07 p").css({cursor: "pointer"});
		//$("div#w07 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w07-hover").fadeOut(200);
		$("h5#w07").css("color","");
	});
	
	
	
	// WORK 08
	$("div#w08").click(function(){
			window.location= "trabalhos/premiorenato.html"
		});
	$("div#w08").hover( function(){
		$("img#w08-hover").fadeIn(200);
		$("div#w08").css({cursor: "pointer"});
		$("h5#w08").css({color: "#525456"});
		//$("h5#w08").click( function(){
			//window.location= "#"
		//});
		//$("div#w08 p").css({cursor: "pointer"});
		//$("div#w08 p").click(function(){
			//window.location= "#"
		//});
		
	}, function(){
		$("img#w08-hover").fadeOut(200);
		$("h5#w08").css("color","");
	});
	
	
	
// TRABALHOS-SINGLE - Thumbs gallery ********//

	// THUMB 01
	$("div#t01").css({cursor:"pointer"});
	
	$("div#t01").click( function() {
		$("div#img-slider img#01").fadeIn(200);
		$("div#img-slider img#02").fadeOut(200);
		$("div#img-slider img#03").fadeOut(200);
	});
	
	// THUMB 02
	$("div#t02").css({cursor:"pointer"});
	
	$("div#t02").click( function() {
		$("div#img-slider img#02").fadeIn(200);
		$("div#img-slider img#01").fadeOut(200);
		$("div#img-slider img#03").fadeOut(200);
		
	});
	
	// THUMB 03
	$("div#t03").css({cursor:"pointer"});
	
	$("div#t03").click( function() 	{
		$("div#img-slider img#03").fadeIn(200);
		$("div#img-slider img#02").fadeOut(200);
		$("div#img-slider img#01").fadeOut(200);
		
	});
	
	
	
 
}); // End jQuery
