// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeInOutQuart',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	}
});

function resizeFlashContent(newHeight)
{
	var footerTopMargin = 0;
	if(newHeight>600){
		footerTopMargin = 195;
	}else{
		footerTopMargin = 0;
	}
	
	$("#flashContent").animate({
	height:newHeight
	}, {duration: 1000, easing: 'easeInOutQuart'} );
	$("#footer").animate({
	marginTop:footerTopMargin
	}, {duration: 1000, easing: 'easeInOutQuart'} );
}

