function loadFlash(swf,width,height,qs,bgcolor) {
    //workaround for Microsoft 'feature' of making you click on Flash to activate it
    //pass in the swf file you're trying to load and the associated query string to pass into Flash
    //also pass in the expected height and width of the movie
    //if no bgcolor set it to blue
    if (bgcolor == '' || bgcolor == undefined) bgcolor='#FFFFFF';
    
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ width +'" height="'+ height +'">');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="movie" value="' + swf + '" />');
	document.writeln('<param name="quality" value="High" />');
	document.writeln('<param name="bgcolor" value="' + bgcolor + '" />');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<embed src="' + swf + '" quality="High" bgcolor="#ffffff" width="'+ width +'" height="'+ height +'" name="disturbance" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" menu="false" wmode="transparent" />');
	document.writeln('</object>');
}