jQuery(function( $ ){


	// Easing formula
	$.easing.slider = function (x, t, b, c, d, s) {if (s == undefined) s = 1.70158; return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;};

	// Initializing some things for JS Version.
	$("body").attr('class','');
	$("#detailblock ul li.home a").hide();
	$("#content").wrapInner("<div id='corkboard'></div>");
    $("#logo a").attr("href", "#home");


	// Moving around the box.
	$('#lineup a').click(function(){
		if($(this).attr('href') == "#home"){
			$("#detailblock ul li.home a").fadeOut();
		} else {
			$("#detailblock ul li.home a").fadeIn();
		}
	});
	$.localScroll({target: '#content', axis:'xy', queue:true, margin:true, duration:1500, easing:'slider'});

    // Open links with rel="external" in new window - like ye ole' target="_blank"
	$('a[rel="external"]').click( function() {window.open( $(this).attr('href') ); return false;});


});

