var player_url = document.location.href;
var swfid = "homeBrightcove";
var parameters = [];
//version check
var requiredVersion = 8;

var fWidth = 416;
var fHeight = 236;

function getConfigValues() {
	if (typeof c4VideoPlayer.params == "object") {
		return c4VideoPlayer.params;
	}
}

function returnVarsToFlash() {
	str = "s_prop22=" + c4props('vertical') + "|s_account=" + s_account + "|mypage="+player_url;
	return str;
}

parameters = [
	["movie","/media/swf/brightcove/shellms-v1.1.swf"],
	["quality","high"],
	["allowScriptAccess","sameDomain"],
	["wmode","transparent"],
	["continuousPlay","false"],
	["autostart","false"],
	["bgcolor","#000000"]
];

detectFlash();

var objectDiv = document.getElementById("videoPlayerContainer");
if (objectDiv != null && typeof(c4VideoPlayer)=="object" && c4VideoPlayer.params.playerId != "") {
	if (document.body && typeof(c4VideoPlayer.bodyClass)=="string") {
		document.body.className = (document.body.className!=null && document.body.className!="")?document.body.className + " " + c4VideoPlayer.bodyClass:c4VideoPlayer.bodyClass;
	}
	var finalWidth = c4VideoPlayer.params.fWidth || fWidth;
	var finalHeight = c4VideoPlayer.params.fHeight || fHeight;
	fString = embedFlashVideo(finalWidth, finalHeight, swfid);
	objectDiv.innerHTML=fString;
}
