var graphics = new Array (); var countGraph = 0, prevID = 0, prev1 = -1, prev2 = -1, activeFoo = ""; // Script code Copyright MyRo 1999-2003 function errorHandler(message, url, line) { if (activeFoo != "showImage") { window.alert ("Een fout gebeurde: " + message + "\n op de lijn:" + line + "\n in: " + url); // stop the event from bubbling up to the default window.onerror handler } return true; } // install the global error-handler window.onerror = errorHandler; function CBrowserVersion() { this.ver=navigator.appVersion; this.agent=navigator.userAgent.toLowerCase(); this.dom=document.getElementById?1:0; this.opera = -1; if (window.opera) { if (this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) this.opera = 500; else if (this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) this.opera = 600; } this.ie = -1; if (this.opera < 0) { pos = this.agent.indexOf ("msie"); if (pos >= 0) { pos += 5; this.ie = parseFloat (this.agent.substr (pos, pos + 6)) * 100; } } this.mac=(this.agent.indexOf("mac")>-1); this.ns = -1; this.firefox = -1; this.mozila = -1; if (this.agent.indexOf("firefox") > -1) { pos = this.agent.indexOf("firefox") + 8; this.firefox = parseFloat (this.agent.substring (pos, pos + 6)) * 100; } else if (this.agent.indexOf("gecko")>-1 || window.sidebar) { this.ns = 600; pos = this.agent.indexOf ("netscape"); if (pos > 0) { pos += 9; this.ns = parseFloat (this.agent.substr (pos, pos + 6)) * 100; if (this.ns < 600) this.ns = 600; } else { pos = this.agent.indexOf ("rv:"); if (pos > 0) { pos += 3; this.mozilla = parseFloat (this.agent.substr (pos, pos + 6)) * 100; } } } else if (!this.dom && document.layers) this.ns = 400; this.usedom= this.ns >= 600 || this.firefox >= 0; this.reuse = this.ie >= 400 || this.usedom || this.firefox >= 0;//Reuse layers this.useDhtml= this.ie >= 400 || this.firefox >= 0 || this.ns >= 500; this.useLayer=this.ns == 400; this.supportError=this.ie >= 500 || this.ns >= 600 || this.firefox >= 0; if (document.all) GetObjectByRef = function (nm) {return window.document.all [nm];}; else if (document.getElementById) GetObjectByRef = function (nm) {return document.getElementById (nm);}; else if (document.layers) GetObjectByRef = function (nm) {return document.layers [nm];}; else GetObjectByRef = null; if (this.ie >= 400) GetParentNode = function(obj) {return obj ? obj.parentElement : NULL;}; else GetParentNode = function (obj) {return obj ? obj.parentNode : NULL;}; return this; } var browserVersion=new CBrowserVersion(); function InitGetObject () { } function IEVersion () { if (browserVersion == null) return 0; return browserVersion.ie; } function NSVersion () { if (browserVersion == null) return 0; return browserVersion.ns; } function FireFoxVersion () { if (browserVersion == null) return 0; return browserVersion.firefox; } function MozillaVersion () { if (browserVersion == null) return 0; return browserVersion.mozilla; } function SupportDHTML () { if (browserVersion == null) return false; return browserVersion.useDhtml; } function SupportLayers () { if (browserVersion == null) return false; return browserVersion.useLayer; } function SupportAnimation () { if (browserVersion == null) return false; return browserVersion.ie >= 550; } function CreateGraph (nameGraph, width, height) { if ( SupportDHTML ()) { this.image = new Image (); this.image.src = nameGraph; this.image.width = width; this.image.height = height; } // if } function AddGraph (nameGraph, width, height) { graphics [countGraph] = new CreateGraph (nameGraph, width, height); return countGraph++; } function showImage (b, index) { activeFoo = "showImage"; var src; src=b.src; b.src = graphics [index].image.src; if (b.readyState == "uninitialized") { b.src = src; } activeFoo = ""; } function getImage (index) { return graphics [index].image.src; } var prevOpen = null; function toggle(id) { if (!GetObjectByRef) return; var obj = GetObjectByRef (id); if (prevOpen) prevOpen.style.display = "none"; if (obj.style.display=="none") { obj.style.display = ""; prevOpen = null; } else { obj.style.display = "none"; prevOpen = obj; } } function hideObject(id) { if (!GetObjectByRef) return; var obj = GetObjectByRef (id); if (obj) obj.style.display = "none"; } function showObject(id) { if (!GetObjectByRef) return; var obj = GetObjectByRef (id); if (obj) obj.style.display = ""; }