function embedSWF(swfInfo,heightPos){
		//embed a SWF using swfObject.js
		//find which div to replace with the SWF:
		var currDiv = document.getElementById(swfInfo.divName)
		//add session variables to the swf's vars:
		var swfVars = sessionVars;
		for (i in swfInfo.extraVars){
			swfVars[i] = swfInfo.extraVars[i];
		}
		swfVars["containingDiv"] = swfInfo.divName;
		//embed the SWF:
		swfobject.embedSWF(swfInfo.filePath, swfInfo.divName, swfInfo.width, swfInfo.height, "9.0.0", "expressInstall.swf", swfVars, swfInfo.params , {})
		swfobject.createCSS("#"+swfInfo.divName,"outline:none");
		document.getElementById(swfInfo.divName).className=swfInfo.className;
		document.getElementById(swfInfo.divName).style.top = heightPos;
		document.getElementById(swfInfo.divName).style.height = swfInfo.height;
		if (swfInfo.width == "980"){
			document.getElementById(swfInfo.divName).style.marginLeft = -Number(swfInfo.width)/2
			//center only the window-wide SWFs
		}
		swfobject.createCSS("#"+swfInfo.divName,"outline:none");
		return (heightPos + swfInfo.height);
}



function yellAtts(obj){
	str = "";
	for (i in obj){
		str+=i+": "+obj[i]+"\n";
		}
	alert (str);
}