var bo_ns_id = 0;
function startIeFix()
{  
	if(isIE())
	{    
		document.write('<div style="display: none;" id="bo_ns_id_' + bo_ns_id + '">');
	}
}

function endIeFix()
{  
	if(isIE())
	{    
		//Detect IE7+ pentru ca e un bug la meniu pt IE<7
		version=0;
		if (navigator.appVersion.indexOf("MSIE")!=-1){
		temp=navigator.appVersion.split("MSIE")
		version=parseFloat(temp[1])
		}
		
		if (version<7)
		{
				document.write('</div>');    
				var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);    
				if(theObject.firstChild.data)
				{      
					theObject.firstChild.removeAttribute('data');    
				}    
				var theParams = theObject.getElementsByTagName("param");
				var theParamsLength = theParams.length;
				for (var j = 0; j < theParamsLength; j++)
				{      
					if(theParams[j].name.toLowerCase() == 'flashvars')
					{        
						var theFlashVars = theParams[j].value;
					}    
				}    
				var theInnnerHTML = theObject.innerHTML;
				var re = /<param name="FlashVars" value="">/;
				theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");
				theObject.outerHTML = theInnnerHTML; 
		}
		else
		{
				document.write('</div>');
				var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
				var theCode = theObject.innerHTML;
				theCode = theCode.substring(8 ,87+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;
}
}