var FlashExtra=null;var query=window.location.search.substring(1);var parms=query.split("&");for(var i=0;i<parms.length;i++){var pos=parms[i].indexOf("=");if(pos>0){var key=parms[i].substring(0,pos);var val=parms[i].substring(pos+1);if(key=="FlashExtra"){FlashExtra=val}}}function write_flash(destination,classid,id,width,height,codebase,play,flash_uri,loop,quality,control,wmode,flashvars,swliveconnect,scale,align,salign,bgcolor,base,name,pluginspage){var allowFullScreen="true";if(FlashExtra!=null){if(flashvars==""){flashvars="FlashExtra="+FlashExtra}else{flashvars=flashvars+"&FlashExtra="+FlashExtra}}if(flashvars!=""){flash_uri=flash_uri+"?"+flashvars}var destStr='<OBJECT CLASSID="'+classid+'" ID="'+id+'" ';if(width>0&&height>0){destStr=destStr+' WIDTH="'+width+'" HEIGHT="'+height+'" '}destStr=destStr+' CODEBASE="'+codebase+'"> <PARAM NAME="PLAY" VALUE="'+play+'"> <PARAM NAME="MOVIE" VALUE="'+flash_uri+'"> <PARAM NAME="LOOP" VALUE="'+loop+'"> <PARAM NAME="QUALITY" VALUE="'+quality+'"> <PARAM NAME="MENU" VALUE="'+control+'"> <PARAM NAME="WMODE" VALUE="'+wmode+'"> <PARAM NAME="allowFullScreen" VALUE="'+allowFullScreen+'"> <PARAM NAME="FlashVars" VALUE="'+flashvars+'"> <PARAM NAME="SWLIVECONNECT" VALUE="'+swliveconnect+'"> <PARAM NAME="SCALE" VALUE="'+scale+'"> <PARAM NAME="ALIGN" VALUE="'+align+'"> <PARAM NAME="SALIGN" VALUE="'+salign+'"> <PARAM NAME="BGCOLOR" VALUE="#'+bgcolor+'"> <PARAM NAME="BASE" VALUE="'+base+'"> <PARAM NAME="allowScriptAccess" VALUE="always"> <EMBED SRC="'+flash_uri+'"   NAME="'+name+'" ';if(width>0&&height>0){destStr=destStr+' WIDTH="'+width+'" HEIGHT="'+height+'" '}destStr=destStr+'  PLAY="'+play+'"   LOOP="'+loop+'"   QUALITY="'+quality+'"   MENU="'+control+'"   WMODE="'+wmode+'"   allowFullScreen="'+allowFullScreen+'"   SWLIVECONNECT="'+swliveconnect+'"   SCALE="'+scale+'"   ALIGN="'+align+'"   SALIGN="'+salign+'"   BGCOLOR="#'+bgcolor+'"   BASE="'+base+'"   TYPE="application/x-shockwave-flash"   FlashVars="'+flashvars+'"   allowScriptAccess="always"   PLUGINSPAGE="'+pluginspage+'">  </EMBED></OBJECT>';destination.innerHTML=destStr};