function swapFlash(localFlashURL, localWidth, localHeight, scaleType){
	document.getElementById("flashEmbed").style.width = localWidth+"px";
	document.getElementById("flashEmbed").style.height = localHeight+"px";
	document.getElementById("flashEmbed").style.overflow = "hidden";

	
	var newFO = new FlashObject(localFlashURL,"mediaCenter","744","494","9","#FFFFFF");
    newFO.addParam("allowScriptAccess", "always");
    newFO.addParam("quality", "high");
    newFO.addParam("scale", scaleType);
    newFO.addParam("loop", "false");
    newFO.addParam("wmode", "opaque");
    newFO.addParam("width", localWidth);//"744");
    newFO.addParam("height", localHeight);//"494");
    
    newFO.write("flashEmbed");
	var oldDiv = document.getElementById("loader");
	oldDiv.style.display = 'none';
}

function getURLVar(name) {
	var q = unescape(location.search.substring(1)).split(/[=&]/);
	for (var j=0; j<q.length; j+=2) {
		if (q[j] == name) {
			return q[j+1];
		}
	}
	return null;
}
