var ELEMENTS=[];
var LAYOUT = [];

var CONCURRENT_DOWNLOADS=10;
var DEFAULT_PARAMS = "CObjectLoader_MaxConcurrent="+CONCURRENT_DOWNLOADS;

ELEMENTS['mmplayer']		={type:'swf'	, content:'metamanifestplayer.swf', parameters:DEFAULT_PARAMS};
ELEMENTS['mmelgplayer']		={type:'swf'	, content:'dashboard_vista.swf', parameters:DEFAULT_PARAMS};
ELEMENTS['scoarea']			={type:'html'	, content:'about:blank', parameters:DEFAULT_PARAMS};
ELEMENTS['qtiplayer']		={type:'swf'	, content:'playercontainer.swf', parameters:DEFAULT_PARAMS};
ELEMENTS['preloader']		={type:'swf'	, content:'prepreload.swf', parameters:DEFAULT_PARAMS};
//~ ELEMENTS['dialog']		={type:'swf'	, content:'dialog.swf',parameters:"CENTER=true"};
ELEMENTS['menu']		={type:'swf'	, disabled:true, content:'popupmenu.swf',parameters:DEFAULT_PARAMS + "&MENU_BACKGROUND=0x000000&COLOR=0xAABBCC&MENU_HIGHLIGHT=0x44525F&MENU_POS=BL&MENU_TYPE=main", objects:"menu"};

LAYOUT['preload'] = {
	elements:[
		 {name: 'mmplayer'	, left:0	, top:0				, width:800	, height:0}
		,{name: 'scoarea' 	, left:0	, top:0				, width:0	, height:0}
		,{name: 'qtiplayer'	, left:0	, top:0				, width:500	, height:0}
		,{name: 'mmelgplayer',left:0	, top:0				, width:500	, height:0}
		//~ ,{name: 'dialog',left:0	, top:0				, width:1	, height:1}
		,{name: 'preloader', left:"CenterWidth(250,0)"	, top:"CenterHeight(210)"	, width:250, height:210}
	]
};


LAYOUT['application/x-bitmedia-msepl'] = {
	elements:[
		 {name: 'mmplayer'	, left:0	, top:"Height()-24"	, width:800, height:24}
		,{name: 'mmelgplayer',left:0	, top:0			, width:800, height:"Height()-24", focus:1}
		//~ ,{name: 'dialog'  	, left:0  	, top:0			, width:800, height:600}
		,{name: 'menu'  	, left:0  	, top:"Height()-70"			, width:85, height:70}
	]
};

LAYOUT['msepl_to_qsepl'] = LAYOUT['application/x-bitmedia-msepl'];

LAYOUT['application/x-bitmedia-qsepl'] = {
	elements:[
		 {name: 'mmplayer'	, left:0	, top:"Height()-24"	, width:800, height:24}
		,{name: 'mmelgplayer',left:0	, top:0			, width:1, height:1}
		,{name: 'qtiplayer'	, left:0	, top:0			, width:800, height:"Height()-24", focus:1}
		//~ ,{name: 'dialog'  	, left:0  	, top:0			, width:"Width()", height:"Height()"}
		,{name: 'menu'  	, left:0  	, top:"Height()-70"			, width:85, height:70}
	]
};

LAYOUT['application/x-bitmedia-playercontainer'] = {
	elements:[
		 {name: 'mmplayer'	, left:0	, top:0	, width:800, height:"Height()"}
		//~ ,{name: 'dialog',left:0	, top:0				, width:1	, height:1}
	]
};

LAYOUT['main'] = {
	elements:[
		 {name: 'mmplayer'	, left:0	, top:"Height()-24"	, width:800, height:24}
		,{name: 'scoarea' 	, left:300	, top:0			, width:500, height:100}
		,{name: 'preloader'	, left:0	, top:0			, width:300, height:100}
		,{name: 'qtiplayer'	, left:0	, top:100			, width:500, height:"Height()-100-24"}
		,{name: 'mmelgplayer',left:500	, top:100			, width:500, height:"Height()-100-24"}
		//~ ,{name: 'dialog',left:0	, top:0				, width:1	, height:1}
	]
};

