// Hide these elements until the flash is loaded.
document.write('<style type="text/css" media="screen">');
document.write('#webcast {visibility: hidden;} #no_flash {visibility: hidden; display: none;}');
document.write('</style>');


function doWebcastReplace(){
	var b = document.getElementById("webcast");
	var nf = document.getElementById("no_flash");

	var w = 760;
	var h = 450;
	
	//var slideURL = "/flashdata/quotes.html";	
	
	var slideURL = document.getElementById("webcast_url").href;
	writeFlash(b, "webcast_ppt/pgc_webcast_ppt_loader_v2.swf", w, h,  "movieUrl=" + encodeURIComponent(flashPath + "webcast_ppt/pgc_webcast_ppt_v3.swf") + "&slideUrl=" + encodeURIComponent(slideURL));	
	
	if(MM_FlashCanPlay){
		 nf.style.visibility = "hidden";
		 nf.style.display = "none";
	}else{
		nf.style.visibility = "visible";
		nf.style.display = "block";
		b.style.display = "none";
	}
}

EventUtils.addEventListener(window,'load',doWebcastReplace);