/*
# script.js
#
# v1.0 - 19/jul/2005 - Bob Kersten - Initial version
#
# (C) Copyright 2005 Medusa, Media Usage Advice B.V.
# All rights reserved.
*/

cindex = -1;
naam_old = -1;
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 ))) ;
 if (magOok) 
         {
// vul het aantal roll-over plaatjes in
          off = new MakeImageArray(15);
          over = new MakeImageArray(15);
          down = new MakeImageArray(15);
		  
// vul hier de off-toestand van de plaatjes in
           off[0].src = "images/nl/b1.png";
           off[1].src = "images/nl/b2.png";
           off[2].src = "images/nl/b3.png";
           off[3].src = "images/nl/b4.png";
           off[4].src = "images/nl/b5.png";
           off[5].src = "images/nl/b6.png";
		   
           off[6].src = "images/nl/s1.png";
           off[7].src = "images/nl/s2.png";
           off[8].src = "images/nl/s3.png";
           off[9].src = "images/nl/s4.png";
           off[10].src = "images/nl/s5.png";
		   
// vul hier de over-toestand in
           over[0].src = "images/nl/b1a.png";
           over[1].src = "images/nl/b2a.png";
           over[2].src = "images/nl/b3a.png";
           over[3].src = "images/nl/b4a.png";
           over[4].src = "images/nl/b5a.png";
           over[5].src = "images/nl/b6a.png";
		   
           over[6].src = "images/nl/s1a.png";
           over[7].src = "images/nl/s2a.png";
           over[8].src = "images/nl/s3a.png";
           over[9].src = "images/nl/s4a.png";
           over[10].src = "images/nl/s5a.png";
		   
// en ook de down-toestand
           down[0].src = "images/nl/b1b.png";
           down[1].src = "images/nl/b2b.png";
           down[2].src = "images/nl/b3b.png";
           down[3].src = "images/nl/b4b.png";
           down[4].src = "images/nl/b5b.png";
           down[5].src = "images/nl/b6b.png";
		   
           down[6].src = "images/nl/s1a.png";
           down[7].src = "images/nl/s2a.png";
           down[8].src = "images/nl/s3a.png";
           down[9].src = "images/nl/s4a.png";
           down[10].src = "images/nl/s5a.png";
}
function MakeImageArray(n) {
    this.length = n;
    for (var i = 0; i<=n; i++) {
        this[i] = new Image();
    }
    return this;
}
function mOver(num,pos) {
    if (document.images) {
        if ((over[num].src != "") && (num != cindex)) {
            document.images[pos].src = over[num].src;
        }
    }
}
function mOut(num,pos) {
    if (document.images) {
        if ((off[num].src != "") && (num != cindex)) {
            document.images[pos].src = off[num].src;
        }
    }                   
}
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 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";
}
