// JavaScript Document

// Ajax load pages

$(document).ready(function(){
	$.ajaxSetup({cache:false});
	
	$(".page-item-4").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '4707px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/on-stellar-rays/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-6").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '1731px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/asmallworld/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-8").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '1138px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/mutualart/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-9").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '675px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/regine-basha/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-10").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '645px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/fakealbumcover/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-12").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '1358px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/sorrow-hound/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-13").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '2296px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/mmmmmmmmmmmmmimic/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-15").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '676px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/bushwick-design-club-version-1/ .post" ,{id:post_id});
		return false;
	});
	
	$(".page-item-17").click(function(){
		var post_id = $(this).attr("rel");
		$("#animations").remove();
		$("#loadHere").empty().html('<img class="ajaxLoader" src="http://bushwickdesignclub.com/wp-content/themes/starkers/style/images/ajax-loader.gif" />');
		$("#landingContainer").animate({'height': '1280px'},650);
		$("#loadHere").load("http://bushwickdesignclub.com/moti-hasson-gallery/ .post" ,{id:post_id});
		return false;
	});
			
});

