//call Ad String;


var player_url = document.location.href;
var parameters = [];
//version check
var requiredVersion = 8;
if(fWidth == undefined && ref_id == undefined){//set 2A w/h otherwise width and height have been set elsewhere e.g. in <head> of page for popups.
 		var fWidth = 790;
		var fHeight = 620;
} else if(fWidth == undefined && ref_id != undefined){//set 2B w/h
 		var fWidth = 520;
 		var fHeight = 350;
}

function getConfigValues() {
	var init = new Object();
	init["flashId"] = flashId;
	init["playerId"] = playerId;
	init["videoId"] = videoId;
	init["videoRef"] = refId;
	init["lineupId"] = lineupId;
	init["playerTag"] = null;
	init["autoStart"] = autoStart;
	init["externalAds"] = true;
	init["width"] = fWidth;
	init["height"] = fHeight;
	return init;
}

function returnVarsToFlash() {
	str = "s_prop22=" + c4props('vertical') + "|s_account=" + s_account + "|mypage="+player_url;
	return str
}
function getAdRequest() {
	//adInit();
	return c4_aStr;
}
parameters = [
	["movie","/bigbrother/media/flash/shellbb.swf"],
	["quality","high"],
	["flashvars","test"],
	["allowScriptAccess","always"],
	["wmode","opaque"],
	["continuousPlay","false"],
	["autostart","false"],
	["bgcolor","#ffffff"]
	
];

alternateContent = "<div class=\"p10 f75\">You either have no Flash Player or an old version of Flash Player installed. For a richer experience of this site, please visit <a href=\"http://www.adobe.com/go/getflashplayer\" target=\"_blank\">Adobe.com</a> to download the latest Flash Player.</div>"; 

detectFlash();
var objectDiv = document.getElementById("object_holder");
fString = embedFlash(fWidth,fHeight,flashId,alternateContent);
objectDiv.innerHTML=fString;
