function setLinkMO(ID) { if(document.getElementById(ID)) { var entries = document.getElementById(ID).getElementsByTagName('a'); for (var i=0; i= 0) { if (state == 'open') { entries[i].src = entries[i].src.replace('_s.', '_n.'); } } } } } } } function Revealer(obj, startY, visibleHeight) { this.div = document.getElementById(obj); this.visibleHeight = visibleHeight; this.startY = startY; this.height = this.div.offsetHeight; this.yClip = this.height - visibleHeight; this.yPos = (startY - this.height) + visibleHeight; this.animating = -1; this.div.style.top = this.yPos + "px"; this.div.style.clip = "rect(" + this.yClip + "px auto auto auto)"; } Revealer.prototype.pixelDown = function (amount) { this.yPos += amount; this.yClip -= amount; if (this.yPos > this.startY) { this.yPos = this.startY; this.yClip = 0; clearInterval(top.animating); } this.div.style.clip = "rect(" + (this.yClip) + "px auto auto auto)"; this.div.style.top = this.yPos + "px"; } Revealer.prototype.pixelUp = function (amount) { this.yPos -= amount; this.yClip += amount; if (this.yPos < (this.startY - this.height) + this.visibleHeight) { this.yPos = this.startY - this.height + this.visibleHeight; this.yClip = this.height - this.visibleHeight; clearInterval(top.animating); } this.div.style.top = this.yPos + "px"; this.div.style.clip = "rect(" + (this.yClip) + "px auto auto auto)"; } /******* ** vp ** *******/ function setLayer(ID) { if (document.getElementById(ID)) { var entries = document.getElementById(ID).getElementsByTagName('a'); for (var i=0; i 0) { DEFAULTCONTENTHEIGHT = document.getElementById('con').offsetHeight; var footerElement = document.getElementById('indi_Placeholder_03'); var footerHeight = footerElement.offsetHeight; if (windowHeight - (DEFAULTCONTENTHEIGHT + footerHeight) >= 0) { footerElement.style.position = 'absolute'; footerElement.style.top = (windowHeight - footerHeight + 0) + 'px'; // het getal erbij is de padding van de 'con' container. } else { //footerElement.style.position = 'static'; //footerElement.style.position = 'absolute'; //bovenstaande regel in commentaar gezet voor FF - hansk footerElement.style.top = (DEFAULTCONTENTHEIGHT + 0) + 'px'; // het getal erbij is de padding van de 'con' container. } } } } /****** ** versie 1.0 date : 28092004 ******/ // JavaScript Document var SCREEN_WIDTH = 950; var navPosition; function activateMenu(ID) { if(document.getElementById(ID)) { navPosition = document.getElementById(ID).offsetLeft; items = document.getElementById(ID).getElementsByTagName('img'); for (i=0; i SCREEN_WIDTH) { firstPos += (navItem.offsetWidth - subWidth); xCorrection = 0; } return firstPos + xCorrection; } function closeNav(e) { var to = (e) ? e.relatedTarget : event.toElement; if (top.opendropdown) { if (to) {//Do not close in response to events within the menu itself var tg = to.tagName.toLowerCase(); if (tg == "ul") return false; if (tg == "li") return false; if (tg == "a") return false; if (to == top.opendropdown.menu) return false; } closeOpen(); return true; } } function closeOpen () { top.opendropdown.src = top.opendropdown.src.replace('_o.', '_n.'); top.opendropdown.menu.style.visibility = 'hidden'; } function getBrowser () { var mvIndex; var mozVers; var os = navigator.platform.toLowerCase(); var agt = navigator.userAgent.toLowerCase(); var ver = navigator.appVersion.toLowerCase(); if (os.indexOf('win') != -1) { if (agt.indexOf("msie 6.0")!=-1) return "WIN_IE6"; else if (agt.indexOf("msie 5.5")!=-1) return "WIN_IE55"; else if (agt.indexOf("msie 5.0")!=-1) return "WIN_IE50"; else if (agt.indexOf("netscape")!=-1) return "Netscape"; else if (agt.indexOf("mozilla")!=-1) { var mvIndex = agt.indexOf('; rv:1.'); var mozVers = agt.substr(mvIndex + 7, 1); if (mozVers > 3) return "WINMOZ"; } } else if (os.indexOf('mac') != -1) { if (agt.indexOf("safari")!=-1) return "MAC_SAF"; else if (agt.indexOf("netscape")!=-1) return "Netscape"; else if (agt.indexOf("mozilla")!=-1) { var mvIndex = agt.indexOf('; rv:1.'); var mozVers = agt.substr(mvIndex + 7, 1); if (mozVers > 3) return "WINMOZ"; } } } function setCenter() { var browser = 'unknown'; browser = getBrowser(); var windowWidth = getWindowWidth(); var con = document.getElementById('con') var footer = document.getElementById('footer') if ((browser == 'WIN_IE6')) { if (windowWidth > 950) { if (windowWidth % 2) { // == odd con.style.left ='+1px'; con.style.margin = ''; footer.style.left ='+1px'; footer.style.margin = ''; } else { // === even con.style.left =''; con.style.margin = '0 auto'; footer.style.left =''; footer.style.margin = '0 auto'; } } } }