
$(function () {
	/*$('<div>').animate({top: 0}, 3700, function () {
	//if ($('body.link-12').size() == 0) {
		$('<img />').attr('src', '/static/images/bg-top-bar.png').prependTo('#viewport').css({'position': 'absolute', 'z-index': 300, 'top': 250, 'right': 10}).animate({top: 130}, 700)
	//}
		$('body:not(.link-12) #content').animate({'height': $(window).height()-280, 'marginTop': -140}, 700)
		$('body.link-12 #content').animate({'height': $(window).height()-180, 'marginTop': -140}, 700)
	//$('body:not(.link-12) #content').animate({'height': $(window).height()-280, 'margin-top': -140})
	//alert($('#content').offset().top)
		$('body:not(.link-12) #lift').animate({'height': $(window).height()-360}, 700)
		$('body.link-12 #lift').animate({'height': $(window).height()-260}, 700)
	})*/

	var LIFT = false;
	$('#lift-up, #lift-down').mouseover(function () {
		if (LIFT == false) {
			//if ($('body.link-12').size() == 0) {
			$('<img />').attr('src', '/static/images/bg-top-bar.png').prependTo('#viewport').css({'position': 'absolute', 'z-index': 300, 'top': 250, 'right': 10}).animate({top: 130}, 700)
			//}
			$('body:not(.link-12) #content').animate({'height': $(window).height()-280, 'marginTop': -140}, 700)
			$('body.link-12 #content').animate({'height': $(window).height()-180, 'marginTop': -140}, 700)
			//$('body:not(.link-12) #content').animate({'height': $(window).height()-280, 'margin-top': -140})
			//alert($('#content').offset().top)
			$('body:not(.link-12) #lift').animate({'height': $(window).height()-360}, 700)
			$('body.link-12 #lift').animate({'height': $(window).height()-260}, 700)
			LIFT = true;
		}
	})
})

