// updated 1/6/03
//function to create flash object to be written out on call
function _flashObject(fFileName, fWidth, fHeight, fTagName, fBgColor, fVarName, fVarValue) {
	// check and see if there are extra vars to be passed to flash
	// always pass the path and if it should use gate for popups
	var fAddQStr = "sPath=/shakespeare/&usegate="+_browserCheck("gate");
	if(fVarName != null){
		// variable into an array
		varName_array = fVarName.split(",");
		varValue_array = fVarValue.split(",");
		// loop and construct a query string
		for(i=0;i<varName_array.length;i++){
			fAddQStr += "&"+varName_array[i]+"="+varValue_array[i];
		}
	};
// create the flash object variable version 6 player
	sFlashObject ='<object id="'+fTagName+'" name="'+fTagName+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+fWidth+'" height="'+fHeight+'"><param name="movie" value="flash/'+fFileName+'.swf?'+fAddQStr+'"/><param name="bgcolor" value="'+fBgColor+'"/><embed name="'+fTagName+'" src="flash/'+fFileName+'.swf?'+fAddQStr+'" bgcolor="'+fBgColor+'"  width="'+fWidth+'" height="'+fHeight+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
	
	//alert(sFlashObject);
	return sFlashObject;
}
