Modernizr.load([
{
	load: '/manager/include/scripts/jquery/jquery.extras.common.js'
}, {
	load: '/manager/include/scripts/scripts.js',
    	complete: function () {
      		$(function () {
			
      			if ( !("placeholder" in document.createElement("input")) )
			{
				$('input[placeholder]').placeholder();
			}
			
			$("#srchsubmit").click(function(){
				$input = $("#srchinput input");
				if( $input.attr("value") == $input.attr("placeholder") ) 
					$input.attr("value", "");
						
				document.quickSearchForm.submit();
			});
			
			$("a[rel^='lightbox']").prettyPhoto({
					animationSpeed: 'slow',
					padding: 40,
					opacity: 0.85,
					showTitle: false,
					allowresize: true,
					counter_separator_label: '/',
					theme: 'light_rounded'
			});
			
			
			$("a.ro").mbRollover();
			
			//Remove text from search criteria, so image shows through
			if( $(".SearchCrit2 a").length > 0){
				$(".SearchCrit2 a").each(function(){
					$(this).html("");
				});
			}
      		});
	}
}
]);

(function() {
  var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  po.src = 'https://apis.google.com/js/plusone.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
