n=navigator.userAgent;
w=n.indexOf("MSIE");
if((w>0)&&(parseInt(n.charAt(w+5))>5))
{
	T=["object","embed","applet"];
	for(j=0;j<2;j++)
	{
		E=document.getElementsByTagName(T[j]);
		for(i=0;i<E.length;i++)
		{
			P=E[i].parentNode;
			H=P.innerHTML;
			P.removeChild(E[i]);
			P.innerHTML=H;
		}
	}
}
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? 

navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	//window.location.replace("http://www.drnathbrachialplexis.com/canplayflash.php");
} else{
	alert("Browser does not have lastest flash installed. Please install latest flash for better browsing experience.")
}

// Fix to run google call me widget on IE. Mozzila work just fine. Need to update top_banner.php and main_hdr_theme_pic_1.php
if(document.getElementById("call_widget_IE_fix_1"))
{
	document.getElementById("call_widget_IE_fix_1").innerHTML = '<object type="application/x-shockwave-flash" data="https://clients4.google.com/voice/embed/webCallButton" width="230" height="85"><param name="movie" value="https://clients4.google.com/voice/embed/webCallButton" /><param name="wmode" value="transparent" /><param name="FlashVars" value="id=bac20e50a715926079eb75f8e443ef210dd31ed6&style=0" /><embed src="https://clients4.google.com/voice/embed/webCallButton?id=bac20e50a715926079eb75f8e443ef210dd31ed6&style=0" width="230" height="85" wmode="transparent"></object>';
}
if(document.getElementById("call_widget_IE_fix_2"))
{
	document.getElementById("call_widget_IE_fix_2").innerHTML = '<object type="application/x-shockwave-flash" data="https://clients4.google.com/voice/embed/webCallButton" width="230" height="85"><param name="movie" value="https://clients4.google.com/voice/embed/webCallButton" /><param name="wmode" value="transparent" /><param name="FlashVars" value="id=bac20e50a715926079eb75f8e443ef210dd31ed6&style=0" /><embed src="https://clients4.google.com/voice/embed/webCallButton?id=bac20e50a715926079eb75f8e443ef210dd31ed6&style=0" width="230" height="85" wmode="transparent"></object>';
}
