$(document) .ready(function() {
	$(".section.recent.media").scrollable({
		prev: '.prev', 
	    next: '.next',
		horizontal: true,
		size: 4
	});
	// $(".section.client").scrollable({
	// 		prev: '.prev', 
	// 	    next: '.next',
	// 		horizontal: true,
	// 		size: 4
	// 	});
	jQuery.event.add(window, "load", adjustLayout);
	jQuery.event.add(window, "resize", adjustLayout);
	function adjustLayout() {
		var w = $(window).width();
		$("#dashboard .section, #header .section, #breadcrumbs, #page, #footer .section, #main.full, .main.full, #main.full .section, .main.full .section").css('width', (w < 1416) ? 944 : 1416 );
		$("#header > .section > .nav > ul").css('margin', (w < 1416) ? '0 0 0 250px' : '0 auto');
		$(".home #main,.home #aside").css('float', (w < 1416) ? 'none' : 'left');
		$(".section.news.featured").css('width', (w < 1416) ? 944 : 474 );
		$(".section.recent.media").css('width', (w < 1416) ? 930 : 458 );
		$(".section.recent.media .listing, .section.recent.media .listing .items").css('width', (w < 1416) ? 900 : 430 );
		$(".news #aside, .events #aside, .news #aside .section, .events #aside .section, .users #aside, .campaigns #aside, .campaigns #aside .section, .contests #aside, .contests #aside .section").css('width', (w < 1416) ? 236 : 708);
		$(".releases #main").css('width', (w < 1416) ? 472 : 942);
		$(".events #header .section.client").css('background-image', (w < 1416) ? 'url(/clients/backstreet_boys/img/curtains-small.jpg)' : 'url(/clients/backstreet_boys/img/curtains.jpg)');
		$(".blogs #main").css('width', (w < 1416) ? 708 : 944);
		$(".blogs #aside, .blogs #aside .section").css('width', (w < 1416) ? 236 : 472);
		$("#main.full .section.forum, .home .section.twitter, .account #page, .account #main.full, .account #main.full .section, .store #main.full .section, .media #comments, .section.access").css('width', 944);
		$(".media #main #post_comment").css('width', 914);
	}
	$(".news > .listing .article").prepend('<img src="/clients/backstreet_boys/img/news.png" alt="news" class="badge" />');
	$(".blogs > .listing .article").prepend('<img src="/clients/backstreet_boys/img/blogs.png" alt="news" class="badge" />');
	$("#header .nav .store a").prepend('<img src="/clients/backstreet_boys/img/external-arrow.png" alt="External Site" class="badge" />');
	$(".section.releases .listing.full .figure a, .section.release.cover").prepend('<img src="/clients/backstreet_boys/img/album-mask.png" alt="" class="mask" />');
	$(".section.social.controls").css('top', $(".section.member.details").outerHeight() + 60);
});
Cufon.replace('.section h1, .section h2, .section h3,#header .nav a, #footer .nav a,.header .nav a, .footer .nav a,thead th,.section.event .meta, .section.discography h2,.section.store legend, .section.store.payment h2,.section.social.controls a, .section.signups > .signup button, .section.signups > .unsignup button',{hover: true});
