var EMBED_MODE_NORMAL = 0;
var EMBED_MODE_EDIT = 1;
var EMBED_MODE_PLAY = 2;

var popup = {
	create: function( hashedId, lang, mode ) {
		var browser = $.browser;

		height = 360;
		width = 410;	

		var left = ( screen.width - width)/2; 
		var top = ( screen.height - height)/2; 

		if( browser.msie ) {
			var wOffset = 18;
			var hOffset = 25;
			var string = "location=no, resizable=yes, menubar=no, status=no, scrollbars=no, menubar=no, width="+(width + wOffset )+", height="+(height + hOffset )+", left = "+left+", top="+top;
		}
		else {
			var wOffset = 0;
			var hOffset = 0;			
			var string = "menubar=no, status=no, scrollbars=no, menubar=no, width="+(width + wOffset)+", height="+(height + hOffset)+", left = "+left+", top="+top;
		}


		this._WINDOW = window.open( "/"+lang+"/popup/"+hashedId+"/"+mode, "Playlist", string );		
 		
	},


	createLoopcast: function( lang ) {
		var browser = $.browser;

		height = 300;
		width = 500;	

		var left = ( screen.width - width)/2; 
		var top = ( screen.height - height)/2; 

		if( browser.msie ) {
			var wOffset = 0;
			var hOffset = 0;
			var string = "location=no, resizable=no, menubar=no, status=no, scrollbars=no, menubar=no, width="+(width + wOffset )+", height="+(height + hOffset )+", left = "+left+", top="+top;
		}
		else {
			var wOffset = 0;
			var hOffset = 0;			
			var string = "menubar=no, status=no, resizable=no, scrollbars=no, menubar=no, width="+(width + wOffset)+", height="+(height + hOffset)+", left = "+left+", top="+top;
		}


		this._WINDOW = window.open( "/"+lang+"/loopcast", "Loopcast", string );	
	}
		
	/*emplain: function() {
		this._WINDOW.document.body.innerHTML = "<embed type='application/x-shockwave-flash' src='" + this._FO.movie + "' width='" + this._FO.width + "' height='" + this._FO.height + "' pluginspage=' http://www.macromedia.com/go/getflashplayer' flashvars='"+ this._FO.flashvars+"'></embed>";
		this._WINDOW.document.body.setAttribute("style", "margin:0; padding:0;");}*/
};
