$(document).ready(function() {

	$("body.home .recent-photo:nth-child(2)").addClass("home-thumb-bottom");
	
	$(".archives-wrapper .recent-photo:nth-child(4)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(8)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(12)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(16)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(20)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(24)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(28)").addClass("thumb-last-on-row");
	$(".archives-wrapper .recent-photo:nth-child(32)").addClass("thumb-last-on-row");


	$("img.thumb").hover(function(){
		$(this).stop().fadeTo("fast", 0.6);
	},function(){
		$(this).stop().fadeTo("fast", 1.0);
	});


	$("img.latest-image").hover(function(){
		$(this).stop().fadeTo("fast", 0.6);
	},function(){
		$(this).stop().fadeTo("fast", 1.0);
	});	
	
	
	$(".form-submit input").fadeTo("fast", 0.8);
	$(".form-submit input").hover(function(){
		$(this).stop().fadeTo("fast", 1.0);
	},function(){
		$(this).stop().fadeTo("fast", 0.8);
	});		
	
	
	$("#fullsize-link img").fadeTo("fast", 0.4);	
	$("#fullsize-link img").hover(function(){
		$(this).stop().fadeTo("fast", 1.0);
	},function(){
		$(this).stop().fadeTo("fast", 0.4);
	});
	
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
	    animationSpeed: 'normal', /* fast/slow/normal */
	    padding: 40, /* padding for each side of the picture */
	    opacity: 0.85, /* Value betwee 0 and 1 */
	    showTitle: false, /* true/false */
	    allowresize: true, /* true/false */
	    counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
	    theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square */
	    callback: function(){}
	});	
		
});
