//====== //====== // // Template- VERSION_JS.IHT by T.Hughes 08-AUG-06 / 19-APR-07 // // Purpose- // // Browser detection and javascript version detection functions; // // Notes- // // Normally you should detect whether the object you need to use // exists. Browser detection should be reserved for when you // have to avoid a known bug in a particular browser. // // Modifications- // // 10-AUG-06 TH / BH / TH 12=18564 // - Created. // // 19-APR-07 TH / BH / TH 17= // - Renamed from BROWSER_DETECT to VERSION. // - Add W3CDOM standard test. // - Add standard error message for version failure. // // 04-Jul-07 BG / BG / BG 12=18420 // - Converted to from .iht to .js. // //====== //====== // Replace with a downloaded script if we ever need anything // more complicated function dy_is_opera() { if (window.opera) return true; else return false; } function dy_is_safari() { if (navigator.vendor && navigator.vendor.indexOf("Apple") != -1) return true; else return false; } // Standard W3C DOM test. var W3CDOM = false; if (document.createElement && document.getElementById) W3CDOM = true; // Standard error message for STAFF Web pages when a browser fails // to support required JavaScript Dym.VersionError = function () { alert("This page requires IE5/Nestcape6 or up, please upgrade your browser."); return false; }