var bo_noscript_id = 0;

function isIE() {
  var strBrowser = navigator.userAgent.toLowerCase();
  return (strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 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++);
   theObject.outerHTML = theObject.innerHTML;
  }
}

function doFlashFix(idFlashObj) {
	if (isIE()) {
		var flashObj = document.getElementById(idFlashObj);
		if (flashObj != null) {
			var preHTML = '<div style="display: block;" id="bo_noscript_id_' + bo_noscript_id + '">';
			var postHTML = '</div>'
			flashObj.outerHTML = preHTML + flashObj.outerHTML + postHTML;
		}
	}
}

function fixFlashObjects(arrFlash) {
	for (var i=0; i<arrFlash.length; i++) {
		doFlashFix(arrFlash[i]);
	}
}

var strBrowser = navigator.userAgent.toLowerCase();
if (strBrowser.indexOf("msie") > -1) {
	//document.styleSheets.push.href = "/common/css/iexplorer.css";
}
