$(document).ready(function(){
	// Make the community dropdown work on click/touch
	$('#header .nav .community ul').hide();
	$('#header .nav .community > a').click(function(){
		$('#header .nav .community ul').slideToggle('fast');
		return false;
	});
	
	// Git thar twittar
	$('.home .twitter .content').social({
		network:'twitter',
		user:'whitechapelband',
		count:2,
		loadingText:'<p>Loading transmission &hellip;</p>',
		twitter:{output:'<span class="tweet">{text}</span> <span class="time">Posted <a href="{tweet_url}">{time}</a></span>'}
	});
	
	// Automatically scroll the page down a bit on interior pages
	$("body[class!='home']").scrollTo('270px');
	
	// Change back and forth pagination buttons to symbols instead of text
	$(".pagination .back a").html('|&lt;');
	$(".pagination .back li + li a").html('&lt;');
	$(".pagination .forth a").html('&gt;');
	$(".pagination .forth li + li a").html('&gt;|');
	
	// Featured news carousel
	$(".news.featured").scrollable({
		items : ".listing", 
		easing : "swing"
	});
	
	// Make a custom url label
	$(".account.settings .input .url").prepend('<label>Custom URL:</label>');
	
	// Change checkout continue button text
	$(".store.address .progress .submit button span").html('Summary &amp; payment');
});
