$(document).ready(function() {    $("#commentForm").validate();		$("a.inline").fancybox({		'onStart'	:	function() {			$("#contact").show();	},		'scrolling' : 'none',		'height' 	: 600,						'onClosed'		: function() {		    $("#contact").hide();	}			});		$("a.single_image").fancybox({	    'titleShow'     : true,	    'titlePosition' : 'inside',		'transitionIn'	:	'elastic',		'transitionOut'	:	'elastic',		'speedIn'		:	600, 		'speedOut'		:	200	});		$("a.vimeo_test1").fancybox({		'padding'		: 0,		'cyclic'        : false,		'transitionIn'	:	'elastic',		'transitionOut'	:	'elastic',		'width'			: 854,		'height'		: 480,		'href'			: 'http://vimeo.com/moogaloop.swf?clip_id=20561642',		'type'			: 'swf'	});		$("a.vimeo_test2").fancybox({		'padding'		: 0,		'cyclic'        : false,		'transitionIn'	:	'elastic',		'transitionOut'	:	'elastic',		'width'			: 854,		'height'		: 480,		'href'			: 'http://vimeo.com/moogaloop.swf?clip_id=22939727',		'type'			: 'swf'	});	$("a.vimeo_test3").fancybox({		'padding'		: 0,		'cyclic'        : false,		'transitionIn'	:	'elastic',		'transitionOut'	:	'elastic',		'width'			: 854,		'height'		: 480,		'href'			: 'http://vimeo.com/moogaloop.swf?clip_id=22945707',		'type'			: 'swf'	});	$("a.vimeo_test4").fancybox({		'padding'		: 0,		'cyclic'        : false,		'transitionIn'	:	'elastic',		'transitionOut'	:	'elastic',		'width'			: 854,		'height'		: 480,		'href'			: 'http://vimeo.com/moogaloop.swf?clip_id=28201402',		'type'			: 'swf'	});			$('a[href*=#]').click(function() {    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')    && location.hostname == this.hostname) {      var $target = $(this.hash);      $target = $target.length && $target      || $('[name=' + this.hash.slice(1) +']');      if ($target.length) {        var targetOffset = $target.offset().top;        $('html,body')        .animate({scrollTop: targetOffset}, 1000);       return false;      }    }  });		var targetOffset = $target.offset().top;$('html,body').animate({scrollTop: targetOffset}, 1000); 	});
