function flashdetect (movie_name,movie_width,movie_height,hide_id,resize) {
 
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
 
//There is flash present, so hide the stylized list in the element passed into variable “hide_class”
 
document.getElementById(hide_id).style.display='none';
 
//…write out the code required to render the flash movie .
 
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11"');
document.write('width="'+ movie_width +'" height="'+ movie_height +'" name="sw" id="sw">');
document.write('<param name="Movie" value="'+ movie_name +'">');
document.write('<param name="quality" value=high>');
document.write('<param name="Loop" value="true">');
document.write('<param name="play" value="true">');
document.write('<EMBED SRC="' + movie_name + '" WIDTH="' + movie_width + '" HEIGHT="' + movie_height + '" LOOP="true" QUALITY="high">');
 
	}
 
// IE flash detection.
 
else { 
	for(var i=9; i>0; i--){
		flashVersion = 0;
		try{
			var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
			flashVersion = i;
			return;
		}
		catch(e){ 
		//There is flash present, so hide the stylized list in the element passed into variable “hide_class”
 
				document.getElementById(hide_id).style.display='none';
				
				//…write out the code required to render the flash movie .
				
				document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
				document.write('codebase="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11"');
				document.write('width="'+ movie_width +'" height="'+ movie_height +'" name="sw" id="sw">');
				document.write('<param name="Movie" value="'+ movie_name +'">');
				document.write('<param name="quality" value=high>');
				document.write('<param name="Loop" value="true">');
				document.write('<param name="play" value="true">');
				document.write('<EMBED SRC="' + movie_name + '" WIDTH="' + movie_width + '" HEIGHT="' + movie_height + '" LOOP="true" QUALITY="high">');
			}		 
		}
	}
}