    var firstPass = document.URL.split('uwm/');
	var secondPass = firstPass[1].split('.');
	poet = secondPass[0];
    
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="340" height="312"'
    + 'id="player" align="middle"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">'
    + '<param name="movie" value="../player/ccPlayer301.swf?ccVideoName=../videos/uwm/' + poet + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=embedded&ccCaptionAutoHide=true" />'
    + '<param name="quality" value="high" />'
    + '<param name="bgcolor" value="#000000" />'
    + '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="allowFullScreen" value="false" />'
    + '<embed src="../player/ccPlayer301.swf?ccVideoName=../videos/uwm/' + poet + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=embedded&ccCaptionAutoHide=true" '
    + 'width="340" height="312" '
    + 'quality="high" '
    + 'bgcolor="#000000" '
	+ 'name="player" '
	+ 'align="middle" '
	+ 'allowScriptAccess="sameDomain" '
	+ 'allowFullScreen = "false" '
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '\</embed>'
    + '\</object>';


function launchFlash() {
	var targetarea = document.getElementById('player');
	targetarea.innerHTML = writeFlash();
}

function writeFlash() {
	if(PBS_FlashCanPlay(8)) {
		return (oeTags);   // embed the flash movie
		
	  } else {  // flash is too old or we can't detect the plugin
		// NOTE: height, width are required!
		var alternateContent = '<img src="../images/uwm/video/' + poet + '.jpg" alt="" width="340" height="250" />';
	
		return(alternateContent);  // insert non-flash content
	  }
}