/**
 * Player 
 */

var Class = {
	create: function() {
		return function() {
			this.initialize.apply(this, arguments);
		}
	}
}

var PlayerClass = Class.create();
PlayerClass.prototype = {
	_status: 0,
	_toolbar: 0,
	_location: 0,
	_menubar: 0,
	_directories: 0,
	_resizable: 0,
	_scrollbars: 0,
	_width: 306,
	_height: 290,
	
	initialize: function () {
	} ,
	
	getPlayer: function (_id) {
		var _params = '';
		if (_id) _params = '?id='+_id;
		var options = 'status='+this._status+', toolbar='+this._toolbar+', location='+this._location+', menubar='+this._menubar+', resizable='+this._resizable+', scrollbars='+this._scrollbars+', width='+this._width+', height='+this._height;
		var player = window.open('http://open.fm/play/2');
		player.focus();
		return player;
	}
}
