function addSWF (URL, WIDTH, HEIGHT, TRANSPARENT)
{
document.write (' <object classid="clsid:27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write (' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
document.write (' width="'+ WIDTH +'" height="'+ HEIGHT +'">');
document.write (' <param name="movie" value="'+ URL +'" />');
document.write (' <param name="quality" value="high" />');

if ( TRANSPARENT ) {
  document.write (' <param name="Wmode" value="Transparent" />'); 
}

document.write (' <embed src="'+ URL +'" quality="high" ');

if ( TRANSPARENT ) {
document.write (' Wmode = "transparent" ');
}

document.write (' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
document.write (' type="application/x-shockwave-flash" width="'+ WIDTH +'" height="'+ HEIGHT +'"></embed> ');
document.write (' </object>');

}

function startIeFix(){ 

if(isIE()){ 
document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
}
}

function endIeFix(){ 
if(isIE()){ 
document.write('</div>'); 
var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++); 
var theCode = theObject.innerHTML; 
theCode = theCode.substring(4 ,9+theCode.indexOf("</object>")) 
document.write(theCode); }}

function isIE(){ // only for Win IE 6+ // But not in Windows 98, Me, NT 4.0, 2000 
var strBrwsr= navigator.userAgent.toLowerCase(); 
if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){ 
if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){ 
return false; } 

if(strBrwsr.indexOf("win98") > -1 || strBrwsr.indexOf("win 9x 4.90") > -1 ||strBrwsr.indexOf("winnt4.0") > -1 ||strBrwsr.indexOf("windows nt 5.0") > -1) 
{ 
return false; 
} 
return true; 
}

else{ 
return false; }

}

function ieupdate(){
  theObjects = document.getElementsByTagName("object");
	for (var i = 0; i < theObjects.length; i++) {
	  theObjects[i].outerHTML = theObjects[i].outerHTML;
	}
}