function launchFlash(num) {
	if(!num) {
		num = 1;
	}
	
	var targetarea = document.getElementById('video');
	
	var firstPass = document.URL.split('arts/');
	var secondPass = firstPass[1].split('.');
	page = secondPass[0];
	
	if(page == 'pr_building_skills') {
		videoName = 'ast_art_tunnelbooks'; 
	} else if(page == 'pr_expressing') {
		videoName = 'ast_art_breakdance';	
	} 
	
	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/arts/' + videoName + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionSource=../video/arts/' + videoName + '.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/arts/' + videoName + '_350.flv&ccVideoAutoStart=true&ccCaptSourceType=external&ccCaptionSource=../video/arts/' + videoName + '.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>';
    
    targetarea.innerHTML = oeTags;
}

function writeFlash(num) {
//	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/' + videoName + '.jpg" alt="" width="320" height="240" />';
	
		return(alternateContent);  // insert non-flash content
	  } */
}
