/*
These functions render flash movies onto pages in order to get around the click
to activate annoyance Microsoft made.

renderTransFlashObj is for flash movies that need to be transparent.
ie. the front page movie that has a menu on top of it.

renderFlashObj is for rendering regular flash movies.
this function requires a div wrapper around the function call in the HTML code,
and the ID of this div to be passed to the function as a string.
*/

function renderTransFlashObj(height, width, src){	
 	
	document.write('<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height=' + height + ' width=' + width + ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>');
	document.write('<PARAM NAME="Src" VALUE="' + src + '">');
	document.write('<PARAM NAME="WMode" VALUE="Transparent">');
	document.write('<embed src="' + src + '" quality="high" wmode="Transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width=' + width + ' height=' + height + '> </embed>');
	document.write('</OBJECT>');
	
}

function renderFlashObj(height, width, src, divID){

	var div = document.getElementById(divID)
	
	var myFlashObj = document.createElement("embed");
	myFlashObj.setAttribute('height', height);
	myFlashObj.setAttribute('width', width);
	myFlashObj.setAttribute('type', 'application/x-shockwave-flash');
	myFlashObj.setAttribute('src', src);
	
	div.appendChild(myFlashObj);
}