jQuery(document).ready(function() {

	// Parallax
//	jQuery("#bleaparallax").imageparallax({ numberoflayers: 2 });

jQuery(".gallery-main img[title], .tooltips img[title]").tooltip({
        position: 'bottom center',
        opacity: 0.7,
	effect: 'slide'
});


	jQuery("#post-67 .gallery a").addClass("fancybox");

	jQuery("#post-67 #gallery-1 a").attr("rel", "fancybox1");
	jQuery("#post-67 #gallery-2 a").attr("rel", "fancybox2");
	jQuery("#post-67 #gallery-3 a").attr("rel", "fancybox3");
	jQuery("#post-67 #gallery-4 a").attr("rel", "fancybox4");
	jQuery("#post-67 #gallery-5 a").attr("rel", "fancybox5");
	jQuery("#post-67 #gallery-6 a").attr("rel", "fancybox6");

	jQuery("#post-67 .gallery-main a").each(function() {

		jQuery(this).click(function(){
			var g = jQuery(this).attr("rel");
			
			/* Hide all the other galleries */
			jQuery("#post-67 .gallery").hide("slow");
			
			/* Show the gallery only if the clicked gallery is different from the one being shown*/
			if (!jQuery("#post-67 #" + g).is(":visible")) {
				jQuery("#post-67 #" + g).show("slow");
			}

		});
	});


jQuery(window).bind('load resize', function(e){
    if (e.type === 'resize'){
       jQuery('.drop_shadow_layer').remove();
    }
          jQuery('.shadow').dropshadow({
               shadowColor: '#ffffff',
               shadowLayer: -100,
               distance:'4px',
		blur:'3px',
          });

});




	jQuery('.gallery-item').hover(function(){
		jQuery(".gallery-caption", this).stop().animate({top:'100px'},{queue:false,duration:300});
	}, function() {
		jQuery(".gallery-caption", this).stop().animate({top:'152px'},{queue:false,duration:300});
	});


jQuery(".small-gallery").click(function(){
            var g = jQuery(this).attr("rel");
            
            /* Hide all the other galleries */
            jQuery(".small-gallery div").hide("slow");
            
            /* Show the gallery only if the clicked gallery is different from the one being shown*/
            if (!jQuery("#" + g).is(":visible")) {
                jQuery("#" + g).show("slow");
            }
});


});

