//check for flash 

var flashversion = 0; 
if (navigator.plugins && navigator.mimeTypes.length) { 
var x = navigator.plugins["Shockwave Flash"]; 
if(x && x.description) { 
var y = x.description; 
  flashversion = y.charAt(y.indexOf('.')-1); 
} 
} else { 
result = false; 
    for(var i = 15; i >= 3 && result != true; i--){ 
  execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript'); 
  flashversion = i; 
  } 
} 


function theflash(movie,width,height,text) { 

if (flashversion > 5) 
{ 

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'">\n'); 
document.write('<param name="movie" value="'+movie+'">\n'); 
document.write('<param name="quality" value="high" />\n'); 
document.write('<param name="menu" value="false">\n'); 
document.write('<param name="wmode" value="transparent">\n'); 
document.write('<embed src="'+movie+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>\n'); 
document.write('</object>\n'); 

} 
else 
{ 
document.write('<b>'+text+'</b>'); 

} 
}
