var SWF = {
	
	//----------------------------------------------------------------
	
	file:null,
	ratio:null,
	
	//----------------------------------------------------------------
	
	init:function( swfName ) {
		this.file = this.get_swf(swfName);
		this.on_resize();
		window.addEvent('resize',function(){ SWF.on_resize(); });
	},
	
	//----------------------------------------------------------------
	
	execute:function( key, value ) {
		this.file.execute(key, value);
	},
	
	//----------------------------------------------------------------
	
	get_swf:function( swfName ) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[swfName];
		} else {
			return document[swfName];
		}
	},
	
	//----------------------------------------------------------------
	
	on_resize:function() {
		if( this.ratio === null ) {
			this.ratio = this.file.width / this.file.height;
		}
		this.file.width = window.getSize().x;
		this.file.height = this.file.width / this.ratio;
	},
	
	//----------------------------------------------------------------
	
	load_content:function() {
		
	}
	
	//----------------------------------------------------------------
	
};

window.addEvent('load',function(){
	//SWF.init('powerup_movie');
});
