$(document).ready(function(){	
	$("img").bind("dragstart", function() {
	     return false;
	});
	
	$("#back").click(function(){
		history.back(-1);
		return false;
	});
	
	$("#image_gallery a").fancybox();
	$("#image_gallery2 a").fancybox();
	
	$('.slideshowq').cycle({
			fx: 'fade',
			speed: 4000,
			delay: -4000,
			sync: 1
	});
	$('#gallery_cartoline').cycle({ 
	    fx:     'fade', 
	    pager:  '#nav',
	    pause: 1,
	    speed: 2500,
	    timeout: 0,
	    pauseOnPagerHover: 1, 
	    pagerAnchorBuilder: function(idx, slide) { 
	        return '#nav li:eq(' + idx + ') a'; 
	    }
	});
	
	$("#social_ico img.fade").hover(
	  function () {
	    $(this).fadeTo('fast',0.4);
	  }, 
	  function () {
	     $(this).fadeTo('fast',1);;
	  }
	);
	
});
