// initialiseren van variabelen cindex = -1; naam_old = -1; // browsercontrole app = navigator.appName; ver = navigator.appVersion; mac = ver.indexOf("Macintosh") > 0; win = ver.indexOf("Win") > 0; vnum = parseFloat(ver); magOok = (((app == "Netscape") && (vnum >= 3 )) || ((mac) && (app == "Microsoft Internet Explorer") && (vnum >= 3.01 )) || ((win) && (app == "Microsoft Internet Explorer") && (vnum >= 4 ))) ; // als de browser rollovers kan laten zien dan de array met plaatjes aanmaken if (magOok) { // vul het aantal roll-over plaatjes in off = new MakeImageArray(7); over = new MakeImageArray(7); down = new MakeImageArray(7); // vul hier de off-toestand van de plaatjes in off[0].src = "images/en/b1.gif"; off[1].src = "images/en/b2.gif"; off[2].src = "images/en/b3.gif"; off[3].src = "images/en/b4.gif"; off[4].src = "images/en/b5.gif"; off[5].src = "images/h1.gif"; off[6].src = "images/h2.gif"; off[7].src = "images/h3.gif"; // vul hier de over-toestand in over[0].src = "images/en/b1a.gif"; over[1].src = "images/en/b2a.gif"; over[2].src = "images/en/b3a.gif"; over[3].src = "images/en/b4a.gif"; over[4].src = "images/en/b5a.gif"; over[5].src = "images/h1a.gif"; over[6].src = "images/h2a.gif"; over[7].src = "images/h3a.gif"; // en ook de down-toestand down[0].src = "images/en/b1a.gif"; down[1].src = "images/en/b2a.gif"; down[2].src = "images/en/b3a.gif"; down[3].src = "images/en/b4a.gif"; down[4].src = "images/en/b5a.gif"; down[4].src = "images/en/b5a.gif"; down[5].src = "images/h1a.gif"; down[6].src = "images/h2a.gif"; down[7].src = "images/h3a.gif"; } // de browser wordt verteld dattie de plaatjes moet pre-loaden function MakeImageArray(n) { this.length = n; for (var i = 0; i<=n; i++) { this[i] = new Image(); } return this; } // de roll-over functie function mOver(num,pos) { if (document.images) { if ((over[num].src != "") && (num != cindex)) { document.images[pos].src = over[num].src; } } } // de opruim functie function mOut(num,pos) { if (document.images) { if ((off[num].src != "") && (num != cindex)) { document.images[pos].src = off[num].src; } } } // en de klik-functie function mClick(num,pos) { if (document.images) { if ((down[num].src != "")) { if (cindex != -1) { document.images[naam_old].src = off[cindex].src; } document.images[pos].src = down[num].src; cindex = num; naam_old = pos; } } } function selectWm () { if (document.forms) { wm = document.forms['wmform']['wmselect'].value; if (wm == '0') { return true; } else { this.location.href = 'werkmaatschappij.php?wmid=' + wm; } } } function openPopup(which,width,height) { w = screen.width - 260; h = screen.height - 160; // w = width + 60; // h = height; l = (screen.width - w) / 2; t = (screen.height - h) / 2; msg = window.open (which, "msg", "toolbar=no,width=" + w + ",height=" + h + ",directories=no,resizable=yes,status=no,scrollbars=yes,menubar=no,location=no,left=" + l + ",screenX=" + l + ",top=" + t + ",screenY=" + t); msg.focus (); } function show(id) { if (document.getElementById) document.getElementById(id).style.visibility = "visible"; else if (document.all) document.all[id].style.visibility ="visible"; else if (document.layers) document.layers[id].visibility = "show"; } function hide(id) { if (document.getElementById) document.getElementById(id).style.visibility = "hidden"; else if (document.all) document.all[id].style.visibility ="hidden"; else if (document.layers) document.layers[id].visibility = "hide"; } function openImage (which, width, height) { w = width; h = height; l = (screen.width - w) / 2; t = (screen.height - h) / 2; msg = window.open ("image.php?image=" + which + "&width=" + width + "&height=" + height, "msg", "toolbar=no,width=" + w + ",height=" + h + ",directories=no,resizable=no,status=no,scrollbars=no,menubar=no,location=no,left=" + l + ",screenX=" + l + ",top=" + t + ",screenY=" + t); msg.focus (); } function openImageAjax(title_, image_, width_, height_) { dialog.open( { title:title_, modal:true, width:width_ + 22, duration:0.5, background:'#C8C7D7', content:'', buttons:'Sluiten', button_cancel:'Sluiten', callback:function(button_, dialog_) { dialog_.close(); } } ); return false; }