ms = navigator.appVersion.indexOf("MSIE");
vers = navigator.appVersion.substring(ms+5, ms+6);
ie =(ms>0) && (parseInt(vers) >=4);

