// JavaScript Document
/////// b1 
///////This file is referenced inbetween the <head> and </head> tags:

/*<script type="text/javascript" src="ienoscript.js"></script>*/

//Then, for each <object> tag you need to add a line above and below each one.


/*<script type="text/javascript">startIeFix();</script>
<objectetc etc</object>
<!--[if gte IE 6]></noscript><![endif]-->
<script type="text/javascript">endIeFix();</script>*/

//It seems to work OK on all the browsers I tried it on, the only exception being Opera when it identifies itself as IE, which I guess could be solved using the [if gte IE 6] to write the top <script> bit out too. Something like:

/*<!--[if gte IE 6]><script type="text/javascript">startIeFix();</script><![endif]-->
<objectetc etc</object>
<!--[if gte IE 6]></noscript><script type="text/javascript">endIeFix();</script><![endif]-->
/////// b2 */
///////
var bo_ns_id = 0;
function startIeFix()
{
	if(isIE())
	{
		document.write('<noscript id="bo_ns_id_' + bo_ns_id + '">');
		}
	}
function endIeFix()
{
	if(isIE())
	{
		var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
		var theNoScript = theObject.innerHTML;
		document.write(theNoScript);
		}
	}
function isIE()
{
	var strBrowser = navigator.userAgent.toLowerCase();
	if(strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0)
	{return true;}
	else
	{return false;}
}
