/**
 * emp js default configuration settings
*/
if(typeof bbc === "undefined") window.bbc = {};

bbc.emp_fmtj_default_properties = function(){
	// set default variable
	// this.setVariable("config", this._propertiesObj.configURL);
	this.configURL="http://news.bbc.co.uk/player/emp/config/default.xml?v11";
	// this.setVariable("preroll", BBC.adverts.empCompanion());
	// can preRoll = BBC.adverts.empCompanion() be put into default.js?
	this.companionSize="300x30";
	this.companionType="adi";
	//these only appear of override default
	//this.setVariable("config_settings_skin", this._propertiesObj.config_settings_skin);
	//this.setVariable("config_settings_showShareButton", this._propertiesObj.showShareButton);
	// end of set variable
	
	// params
	this.swf="http://news.bbc.co.uk/player/emp/2_6_5222/player.swf";
    this.id="bbc_emp_fmtj_embed";
    this.wmode="default";
    this.allowFullScreen="true";
	
	// global values
	// alignment code now has setDimensions instead
	// this.audioSize["Small"]={width:226, height:106};
	// this.audioSize["Full"]={width:512, height:106};
	this.audioHeight=106;
	this.audioWidthSmall=226;
	this.audioWidthLarge=512;
	// video height comes from CPS but add 35 padding
	this.toolbarPadding = 35;
	// for pop-out video
	// this.popoutEMP={width:512, height:106};
	// what are these added values for popVidHeight=323+77+4 in emp_fmtj
	this.popVidHeight=323;
	this.popVidWidth=512;
	// minimum version of flash player required
	this.flashPlayerRequired = 8; 
		
	// values ro create HTML when can't detetct required Flash player
	this.expressInstallUrl = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
	this.warningMessageObj={	
		heading:"Cannot play media.",
		bodyText:"You do not have the correct version of the flash player. ",
		linkText:"Download the correct version"
		};
	this.warningHTML = this.getWarningHTML(this.warningMessageObj, this.expressInstallUrl);
	
	// image to display above warning HTML;
	this.audioImgHTML='<div class="audioImage"></div>';
	// can we add this as we need to insert values into HTML for src, height and width
	this.videoImgHTML='<img src={src} height={height} width={width} class="holding">';
}

bbc.emp_fmtj_default_properties.prototype.getWarningHTML=function(warningMessageObj, expressInstallUrl){
	var warningHTML = '<div class="warning">' + '<p><strong>' + warningMessageObj.heading + '</strong>' + warningMessageObj.bodyText + ' <a href="' + expressInstallUrl + '">' + warningMessageObj.linkText +'</a></p></div>';
	return warningHTML;
}
