$(window).load(function() {	
					
		$('ul.social li a').tipsy({gravity: 's'});
		$('.tipsy').tipsy({gravity: 's'});
		
		$('ul.sf-menu').superfish({
			delay: 0,
			animation: {opacity:'show',duraction:'0'},
			speed: 'fast',
			autoArrows: false,
			dropShadows: true,
		});		

		$('form.search input').focus(function() {
  			$(this).val('');
		});
		
		$("#gallery li").append("");

// begin new javascript which hooks the default links in normal WP gallery
// note that on pages with multiple galleries, the "some value here"
// should be set with javascript to a random val
$(".gallery-item a").each(function() {
$(this).attr("rel", "prettyPhoto[some value here]");
});
// end new javascript

$("a[rel^='prettyPhoto']").prettyPhoto();

});

