    //var firstPass = document.URL.split('?');
	//var secondPass = firstPass[1].split('=');
	//tab = secondPass[1];

function launchFlash(tab) {
	var targetarea = document.getElementById('video-' + tab);
	targetarea.innerHTML = writeFlash(tab);
}

function writeFlash(tab) {
	var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="340" 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/ccPlayer.swf?ccVideoName=../video/' + tab + '/ast_' + tab + '_about_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionSource=video/' + tab + '/ast_' + tab + '_about.dfxp.xml&ccCaptionAutoHide=false" />'
    + '<param name="quality" value="high" />'
    + '<param name="bgcolor" value="#000000" />'
    + '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="allowFullScreen" value="false" />'
    + '<embed src="player/ccPlayer.swf?ccVideoName=../video/' + tab + '/ast_' + tab + '_about_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionSource=video/' + tab + '/ast_' + tab + '_about.dfxp.xml&ccCaptionAutoHide=false" '
    + 'width="340" height="376" '
    + '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>';
    
//	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/about_' + tab + '.jpg" alt="" width="340" height="250" />';
	
		return(alternateContent);  // insert non-flash content
	  } */
}