    var firstPass = document.URL.split('poetryeverywhere/');
	var secondPass = firstPass[1].split('.');
	poet = secondPass[0];
    
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="397" height="376"'
    + '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/ccPlayer302.swf?ccVideoName=../videos/' + poet + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionAutoHide=true&ccCaptionSource=videos/captions/' + poet + '.dfxp.xml" />'
    + '<param name="quality" value="high" />'
    + '<param name="bgcolor" value="#131b25" />'
    + '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="allowFullScreen" value="false" />'
    + '<embed src="player/ccPlayer302.swf?ccVideoName=../videos/' + poet + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionAutoHide=true&ccCaptionSource=videos/captions/' + poet + '.dfxp.xml" '
    + 'width="397" height="376" '
    + 'quality="high" '
    + 'bgcolor="#131b25" '
	+ '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/video/' + poet + '_video.jpg" alt="" width="390" height="222" />';
	
		return(alternateContent);  // insert non-flash content
	  }
}