
function createFlash(src, container, width, height) {
    // JavaScript Document

    //Detect IE5.5+
    version=0
    if (navigator.appVersion.indexOf("MSIE")!=-1){
    temp=navigator.appVersion.split("MSIE")
    version=parseFloat(temp[1])
    }
	
	
   if (version>=5.5) //NON IE browser will return 0
    {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http');
    document.write('//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + width + 'px" height="' + height + 'px">');
    document.write('<param name="movie" value="' + src + '?dd=' + Date() + '"/>');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="allowNetworking" value="all" />');
    document.write('<embed src="' + src + '?dd=' + Date() + '" quality="high" pluginspage="http:');
    document.write('//www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash'); 
    document.write('width="' + width + 'px" height="' + height + 'px" wmode="transparent"></embed></object>');
    }
    else
    {
    var objMedia  = document.getElementById(''+container+'');
    var objEmbed  = document.createElement('embed');

    objEmbed.setAttribute('src', '' + src + '');
    objEmbed.setAttribute('type', 'application/x-shockwave-flash');
    objEmbed.setAttribute('width', '' + width + 'px');
    objEmbed.setAttribute('height', '' + height + 'px');
    objEmbed.setAttribute('wmode', 'transparent');
    objEmbed.setAttribute('pluginspage', 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash');

    objMedia.appendChild(objEmbed);
    }
}