function DetectFlashVersion(version, browser)
  {
	if (navigator.plugins && navigator.plugins['Shockwave Flash']) 
	  {
    	plugin_descr = navigator.plugins['Shockwave Flash'].description
		if (parseInt(plugin_descr.substring(plugin_descr.indexOf(".") - 1)) >= version) 
		   {
			if(version >= 5)
			  {
				if (navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin == null) return false;
			  }
			return true;
		   } 
	    }
	 return false;
}

function DetectFlash(version) 
{
	if (navigator.userAgent.indexOf("iCab") != -1 || navigator.userAgent.indexOf("MSIE 3") != -1) return false;
	if (navigator.userAgent.indexOf("MSIE") != -1 && 
		navigator.userAgent.indexOf("Windows") != -1 && 
		navigator.userAgent.indexOf("Opera") == -1) 
	  { return DetectFlashVersionVB(version);} 
	else { return DetectFlashVersion(version); }
}


