$(document).ready(function(){
		$('li.main_nav_sublink').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	
	
   $("a.gallery").fancybox({
        'hideOnContentClick': false,
     	'overlayShow'			: true,
     	'padding'               : 0,
     	'frameWidth'             : 500,
     	'frameHeight'            : 470,
     	'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack',
		'centerOnScroll'            : false
		
     }); 
        $("a.ajaxYoutube").fancybox({
        'hideOnContentClick': false,
     	'overlayShow'			: true,
     	'padding'               : 0,
     	'frameWidth'             : 483,
     	'frameHeight'            : 363,
     	'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'
		
     });  
     
   $("a.galleryPhoto").fancybox({
          'overlayShow'			: false,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'			: 500,
		'easingIn'				: 'easeOutBack',
		'easingOut'				: 'easeInBack'

     });
     
     
     // Using multiple unit types within one animation.
    $("#pg_search_criteria").click(function(){
      $("#main_search").animate({ 
        opacity: 1
      }, 1500 );
    
    el =  document.getElementById('pg_search_criteria');
    if(el.value == 'Search')
       {
       el.value = '';
       }
     
    });
   $("#pg_search_criteria").blur(function()
          {
          $("#main_search").animate({ 
          opacity: .4}, 1500 );
      
     el =  document.getElementById('pg_search_criteria');
    if(el.value == '')
       {
       el.value = 'Search';
       }

      });

$("hr").before( "<div class=\"hr_fake\">&nbsp;</div>").remove(); 

});
