if(typeof jwMediaPlayer == 'undefined'){jwMediaPlayer = {};}

// defaults
if(!jwMediaPlayer.defaults){jwMediaPlayer.defaults = {};}

// both
jwMediaPlayer.defaults.general = {
 	// colors
    backcolor:(typeof DarkColor == 'undefined')?"0xFFFFFF":"0x" + DarkColor.substring(1),
    frontcolor:(typeof MediumColor == 'undefined')?"0x000000":"0x" + MediumColor.substring(1),
    lightcolor:(typeof LightColor == 'undefined')?"0x000000":"0x" + LightColor.substring(1),

	// appearence
    autoscroll:false,
    showdigits:true,
    showicons:true,
 	showvolume:true,
    thumbsinplaylist:true,
	largecontrols:true,
	usekeys:true,
	usefullscreen:true,
	shuffle:false,
	
	// playback
	autostart: (window.TemplateID && window.TemplateID == 4)?true:false,
	bufferlength:6,

    // interaction
	enablejs:true
};

// override for LBC colors
if(window.BreadCrumb && window.BreadCrumb.indexOf("Living Beyond Cancer") == 0){
	var _jw = jwMediaPlayer.defaults.general;
	_jw.backcolor = "0x5AB12A";
	_jw.frontcolor = "0xFFFFFF";;
	_jw.lightcolor = "0xFFFFFF";;
}

// audio
jwMediaPlayer.defaults.audio = {};
// audio - file
jwMediaPlayer.defaults.audio.file = {
	height:40,
	width:240
};

// audio - playlist
jwMediaPlayer.defaults.audio.playlist = {
	height:180,
	width:240,
	displayheight:0,
	displaywidth:240
};

// video (4x3)
jwMediaPlayer.defaults.video = {};
// video - file
jwMediaPlayer.defaults.video.file = {
	height:220,
	width:240
};
// video - playlist (16x9)
jwMediaPlayer.defaults.video.playlist = {
	height:220,
	width:480,
	displayheight:180,
	displaywidth:240
};


