disar.maxContentWidth = 900;

$(function() {
	disarFP.positionAnimation();
	$(window).bind('resize', disarFP.positionAnimation);
	
	swfobject.embedSWF(SITE_ROOT + "/img/frontpage_animation.swf", "animation_content", "740", "490", "9.0.0", null, null, { 
		wmode: 'transparent',
		allowscriptaccess : "always"
	});
});

var disarFP = {
	positionAnimation : function() {
		var contentWidth = $('#content').width();
		var margin = contentWidth / 2 - 380;
		$('#frontpage_animation').css({'margin-left':margin+'px'});
	}
}