$(document).ready(
	function(){
		$('#show').innerfade({
			speed: 500,
			timeout: 8000,
			type: 'random',
			containerheight: '611px'
		});				

	$('#show li').hover(function (){
		$(this).find('section').stop().fadeTo('normal', 1);
	}, function () {
		$(this).find('section').stop().fadeTo('normal', 0);
		});
		
	$("a[href^=http://www.flickr] img").each(function(){	
		$(this).after("<span>View On Flickr</span>").parent().addClass("flickr_img");
	})
	
	$("a[href^=http://flickr.com]").each(function(){	
		$(this).addClass("flickr_link");
	})
	
	$("a[href^=http://twitter.com]").each(function(){	
		$(this).addClass("twitter_link");
	})
	
	$("a[href^=http://last.fm]").each(function(){	
		$(this).addClass("lastfm_link");
	})
	
	$("a[href^=http://facebook.com]").each(function(){	
		$(this).addClass("facebook_link");
	})
	
	$("a[href^=http://liveforfame.com]").each(function(){	
		$(this).addClass("liveforfame_link");
	})
	
	$('input.innerlabel').innerLabel();
	
	$(".nothing_right_now_thanks").each(function(){
		$(this).html($(this).html().replace(/&amp;/g,'<em class="amp">&amp;</em>'))
	});
		
	$('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;
		  }
		}
	  });
	  
}); 