
var bo_noscript_id = 0;

function startIeFix(){
	if(isIE()){
		document.write('<div style="display: none;" id="bo_noscript_id_' + bo_noscript_id + '">');
	}
}

function endIeFix(){
	if(isIE()){
		document.write('</div>');
		var theObject = document.getElementById("bo_noscript_id_" + bo_noscript_id++);
		if(theObject.firstChild.data){
			// Fix for Flash Satay style objects
			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="">/ig;
		theInnnerHTML = theInnnerHTML.replace(re, "<param name='FlashVars' value='" + theFlashVars + "'>");
		theObject.outerHTML = theInnnerHTML;
	}
}

function isIE(){
	var strBrowser = navigator.userAgent.toLowerCase();
	if(strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0){
		return true;
	}else{
		return false;
	}
}


