// JavaScript Document
$(document).ready(function () {
	
	$.localScroll({
	duration: 500});
	
	$('.slides').cycle({
	fx: 'fade'
	});
	
	$('.thumbnail').hover(function(){
	$(".zoom", this).stop().animate({marginTop: "31px"},{queue:false, easing:'easeOutBounce', duration:500});},
	function(){
	$(".zoom", this).stop().animate({marginTop: "-58px"},{queue:false, duration:200});
	});
	
	$(".copyright").click(function () {
    $(".overlay").animate({opacity: 'show'},{duration:200})
	$(".modal_window").animate({top: '50%', opacity: 'show'},{easing:'easeOutBack',duration:600});
    });
	
	$(".close").click(function () {
    $(".overlay").animate({opacity: 'hide'},{duration:500})
	$(".modal_window").animate({top: '0%', opacity: 'hide'},{easing:'easeInBack',duration:300});
    });
	
	$("a.fancy").fancybox({
	'zoomSpeedIn': 300,
	'zoomSpeedOut': 400,
	'overlayShow': true,
	'overlayColor': "#000000",
	'overlayOpacity': 0.8,
	'padding': 0
	});
	
});
