jQuery(document).ready(function() {
	$.localScroll({
	   axis:'y',
	   queue:true
	});

	jQuery.event.add(window, "load", resizeFrame);
	jQuery.event.add(window, "resize", resizeFrame);

	function resizeFrame() 
	{
		var h = $(window).height();
		var w = $(window).width();

		if (h < 700) {
			$("#bg_1").css("height", 1300);
			$("#bg_2").css("height", 1655);
			$("#bg_3").css("height", 1100);
			$("#bg_4").css("height", 1300);
		}
		else {
			$("#bg_1").css("height", 1300);
			$("#bg_2").css("height", 1655);
			$("#bg_3").css("height", 1100);
			$("#bg_4").css("height", 1300);
		}

		if (w < 1024) {
			$(".bg_block").css("width", 990);
		} 
		else {
			$(".bg_block").css("width", w); 
		}

			$(".bg_block").css("background-position");

		}


		$("#projects").hide();

		$("#work").click(function () { 
		$("#projects").fadeIn("slow");
 		});

});

