jQuery(document).ready(function() {
	if (jQuery('.slide-carousel').length)
		jQuery('.slide-carousel').slideCarousel ();
	
	jQuery('header .menu').superfish ({ 
		hoverClass: 	'active',
		autoArrows: 	false,
		speed: 			'fast',
		animation: 		{height:'show'},  
		delay:     		800
	});
	
	jQuery('.photo-gallery a img').mouseover(function () {
		jQuery(this).stop().fadeTo(300, 0.7); 
	});
	
	jQuery('.photo-gallery a img').mouseout(function () {
		jQuery(this).stop().fadeTo(400, 1); 
	});
	
	
	jQuery("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_rounded',overlay_gallery:false});
	
	jQuery('.show-gallery').click(function () {
		var gallery = jQuery(this).attr('class').replace('show-gallery ', ''),
			srcs = [], titles = [], descriptions = [], idx=0;
		
		
		jQuery("a[rel*='"+gallery+"']").each(function(){
			srcs[idx] = jQuery(this).attr('href');
			titles[idx] = jQuery(this).attr('title');
			descriptions[idx] = jQuery(this).attr('title');
			idx++;
		});
		jQuery.prettyPhoto.open(srcs, titles, descriptions);
		
		return false;
	});
});

