function swapFlashVideo(id, src, extras, width, height){
  var hasReqestedVersion = DetectFlashVer(7, requiredMinorVersion, requiredRevision);
  if (hasReqestedVersion) {
    var container = document.getElementById(id);
    var innerTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">\n';
    innerTags+= '<param name="movie" value="'+src+extras+'" /><param name="bgcolor" value="#ffffff" />\n';
    innerTags+='<param name="allowScriptAccess" value="sameDomain" /><param name="wmode" value="transparent" /><param name="quality" value="high" />\n';
    innerTags+= '<embed src="'+src+extras+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" allowScriptAccess="sameDomain"/> \n';
    innerTags+= "</object>";
    container.innerHTML = innerTags;
    //alert(container.innerHTML);
  }
  else {
    var alternateContent = 'You must have the <a href="http://www.macromedia.com/go/getflash/">Flash Player</a> with at least version 7 in order to view the video';
    document.write(alternateContent);  // insert non-flash content
  }
}