// Eolas Flash Fix
// By Buro Frank Hartman
// burofrankhartman@mac.com
// 
// 
// Put this in Head section of HTML file:
// <script type="text/javascript" src="eolasflashfix.js"></script>
//
// And this for every Flash movie used in the page:
// 	<script type="text/javascript"> 
//		function startEolasFix() {
//      eolasFix("0001","pathto.swf","width","height"); 
//		}
//	</script>
//
// This in the Body tag of the HTML:
// <body onload="startEolasFix();">
//
// And this for every Flash movie in the HTML:
//	<div id="0001"> <!-- this number should be consecutive for every movie -->
//		<p>Inhoud voor niet bezoeker zonder Flash</p>
//	</div>

function eolasFix(divId,path,width,height) {	
	replacementString = 
	"<object type=\"application/x-shockwave-flash\" data=\""+path+"\" height=\""+height+"\" width=\""+width+"\" id=\""+divId+"\">"+
	"<param name=\"movie\" value=\""+path+"\" />"+
	"<p><a href=\"http://www.macromedia.com/go/getflashplayer/\">Get Flash!</a></p>"+
	"</object>";
	document.getElementById(divId).innerHTML = replacementString;
}