netedit.player = {
	
    options:{
        containerId: 'mediaspace',
		width: '470',
		height: '320',
		background: '#ffffff',
		playlist: 'right',
		autostart: 'true',
		allowfullscreen: 'true',
		id: 'ply'
    },

	init: function(options){
    	this.options = $merge(this.options,options);
		
		this.lst = new Array();
		this.create();
	},
	
	create: function(){
		var s1 = new SWFObject('js/mediaplayer/player.swf', this.options.id, this.options.width, this.options.height,'9',this.options.background);
		s1.addParam('allowfullscreen',this.options.allowfullscreen);
		s1.addParam('allowscriptaccess','always');
		s1.addParam('wmode','opaque');
		s1.addParam('flashvars','file=&playlist='+this.options.playlist+'&autostart='+this.options.autostart);
		s1.write(this.options.containerId);	
	},
	
	addToList: function(obj){
		var player = $(this.options.id);
		this.lst.unshift(obj);
		player.sendEvent('LOAD', this.lst);
	}
};