// This is the main method for detecting SVG, but see also svgjscript.js function detectSVG() { // Internet Explorer returns 0 as the number of MIME types, // so this code will not be executed by it. This is our indication // to use VBScript to detect SVG support. if (navigator.mimeTypes != null && navigator.mimeTypes.length > 0) { if(navigator.mimeTypes["image/svg+xml"]) { return true; } else { return false; } // Netscape: MIME Types searched, svg support not found } else { return vbDetectSVG(); } }