function embedResource(asset) 
{
	document.write( '<embed ');
	document.write( ' src="' + asset + '" ' );
	document.write( ' width="100%" ' );
	document.write( ' height="100%" ' );
	document.write( ' quality="high" ' );
	document.write( ' name="' + asset + '" ' );
	document.write( ' bgcolor="black" ' );
	document.write( ' pluginspage="http://www.macromedia.com/go/getflashplayer" ' );
	document.write( ' allowScriptAccess="sameDomain" ' );
	document.write( ' type="application/x-shockwave-flash">' );
	document.write( '</embed>' );
}

function OpenFooterAsset(URL)
{
	window.open(URL,"Project_Information","toolbar=no,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,scrolling=yes,resizable=yes,width=750,height=550,left=0,top=0");
}

function embedFlashObject(asset, width, height, bgcolor) 
{		
	document.write('<object ');
		document.write('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
		document.write('width="' + width + '"');
		document.write('height="' + height + '">');
		
	
		document.write('<param name="movie" value="' + asset + '" />');
		document.write('<param name="menu" value="false" />');
		document.write('<param name="quality" value="high" />');
		document.write('<param name="bgcolor" value="' + bgcolor + '" />');
		document.write('<param name="menu" value="false" />');
	
		document.write( '<embed ');
			document.write( ' src="' + asset + '"' );
			document.write( ' width="' + width + '"' );
			document.write( ' height="' + height + '"' );
			document.write( ' quality="high" ' );
			document.write( ' menu="false" ' );
			document.write( ' name="' + asset + '" ' );
			document.write( ' bgcolor="' + bgcolor + '" ' );
			document.write( ' pluginspage="http://www.macromedia.com/go/getflashplayer" ' );
			document.write( ' allowScriptAccess="sameDomain" ' );
			document.write( ' type="application/x-shockwave-flash">' );
		document.write( '</embed>' );
	document.write('</object>');
}

function embedQuicktimeObject() {
	document.title = parent.window.location.search.substring(parent.window.location.search.indexOf("&title=") + 7, parent.window.location.length).replace("%20", " ").replace("%20", " ").replace("%20", " ");
		
		document.write("<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='100%' height='80%' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
			document.write("<param name='src' value='" + parent.window.location.search.substring(7, parent.window.location.search.indexOf("&title=")) + "' />");
			document.write("<param name='controller' value='true' />");
			document.write("<param name='autoplay' value='true' />");
			document.write("<param name='enablejavascript' value='true' />");
			document.write("<param name='scale' value='tofit' />");
			document.write("<param name='kioskmode' value='true' />");
			document.write("<param name='bgcolor' value='#000000' />");
				
			document.write("<embed ");
				document.write("src='" + parent.window.location.search.substring(7, parent.window.location.search.indexOf("&title=")) + "'");
				document.write("width='100%'");
				document.write("height='80%'");
				document.write("autoplay='true'");
				document.write("type='video/quicktime'");
				document.write("controller='true'");
				document.write("enablejavascript='true'");
				document.write("scale='tofit'");
				document.write("kioskmode='true'");
				document.write("bgcolor='#000000'");
				document.write("pluginspage='http://www.apple.com/quicktime/download/'");
			document.write("></embed>");
			
		document.write("</object>");
}