jQuery(function( $ ){


      

           

/* SEARCH */ 
$('.InputSearch').focus( function() {  if($(this).attr("value") == "Search") $(this).attr("value", ""); });
$('.InputSearch').blur(function() {  if($(this).attr("value") == "") $(this).attr("value", "Search"); });

$('#Slides').cycle({
   fx:     'fade',
       speed:  1300,
       timeout: 6400,
       cssBefore: { zIndex: 1 },
       cssAfter: {  zIndex: 1 }
});

	$("a[rel=slideshow]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'outside',
				'padding'           : '0',
				'overlayOpacity'  	: '0.6',
				'overlayColor'  	: '#000',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over" style="display: block; height: 17px; background-color: #FFF; "><div style="float: left;">Photo ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</div><div class="AddThis" style="float: right; width: 130px; text-align: right;"><a name=\"fb_share\" type=\"icon_link\" share_url=\"'+location.href+'image'+ (currentIndex + 1) +'/\">Share</a><script src=\"http://static.ak.fbcdn.net/connect.php/js/FB.Share\" type=\"text/javascript\"></script></div></span>';
				}
					
			
		});
		
		$(".ContactPop").fancybox({
	'scrolling'     : 'no',
	'overlayOpacity'  	: '0.6',
	'overlayColor'  	: '#000'

		});

 $.preloadCssImages();



});



