document.observe('dom:loaded', function() {
	
	var id = 'swfContainer';
	var el = $(id);
	var form = el.down('form');
	var filename = form.filename.getValue();
	var width = form.width.getValue();
	var height = form.height.getValue();
	
	if (document.viewport.getWidth() > width)
	{
		var marginLeft = - (Math.round(width - document.viewport.getWidth() / 2));
		el.setStyle({ marginLeft: marginLeft });
	}
	
	var params = {
		wmode: 'transparent',
		menu: 'false',
		allowscriptaccess: 'always',
		quality: 'high',
		scale: 'noscale'
	};
	
	swfobject.embedSWF(filename, id, width, height, "10.0.0", Framework.Configuration.get('__static') + "/f/expressInstall.swf", null, params);
	
});