var img; var img_mo; var img_cl; img = new Array(); img_mo = new Array(); img_cl = new Array(); function initMo(uniqueid, origImgSrc, overImgSrc, clickImgSrc) { img[uniqueid] = new Image(); img[uniqueid].src = origImgSrc; img_mo[uniqueid] = new Image(); img_mo[uniqueid].src = overImgSrc; img_cl[uniqueid] = new Image(); img_cl[uniqueid].src = clickImgSrc; } function mov(uniqueid) { document[uniqueid].src = img_mo[uniqueid].src; } function mou(uniqueid) { document[uniqueid].src = img[uniqueid].src; } function md(uniqueid) { document[uniqueid].src = img_cl[uniqueid].src; } function initMouseOver(uniqueid, origImgSrc, overImgSrc, clickImgSrc) { img['I' + uniqueid + origImgSrc] = new Image(); img['I' + uniqueid + origImgSrc].src = origImgSrc; img_mo['I' + uniqueid + origImgSrc] = new Image(); img_mo['I' + uniqueid + origImgSrc].src = overImgSrc; img_cl['I' + uniqueid + origImgSrc] = new Image(); img_cl['I' + uniqueid + origImgSrc].src = clickImgSrc; } function MouseOver(imgName) { document[imgName].src = img_mo[imgName].src; } function MouseOut(imgName) { document[imgName].src = img[imgName].src; } function MouseDown(imgName) { document[imgName].src = img_cl[imgName].src; } function setCookie(name, value, expire) { if (expire == '') { document.cookie = name + "=" + escape(value); } else { var expires = new Date(); expires.setTime(expires.getTime() + expire); document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expires.toGMTString())); } } function getCookie(name) { var search = name + "="; var val = ""; if (document.cookie.length > 0) { // if there are any cookies offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length; // set index of beginning of value end = document.cookie.indexOf(";", offset) // set index of end of cookie value if (end == -1) { end = document.cookie.length; } val = unescape(document.cookie.substring(offset, end)); } } return val; } function encode(num, isopen) { var hexChars = "0123456789ABCDEF"; var i = 0; var tmp_num = num; var str = ""; if (!isopen) { tmp_num = tmp_num + 2147483648; } for (i = 0; i < 8; i++) { str = hexChars.charAt((tmp_num >> (4 * i)) & 15) + str; } return str; } function maximizeBlock(blockid) { maximizeBlock2(blockid,''); } function maximizeBlock2(blockid,cookiename) { var pre; var post; var i; if (cookiename == '') { cookie = getCookie('joostniemoller.nl '); } else { cookie = getCookie(cookiename); } // See if the closed block exists i = cookie.indexOf(encode(blockid, false) + ';'); if (i > -1) { pre = cookie.substring(0, i); post = ((i + 9) < cookie.length) ? cookie.substring(i + 9, cookie.length) : ""; // Replace the closed block by an opened block cookie = pre + encode(blockid, true) + ';' + post; } else { // See if the opened block does not already exist i = cookie.indexOf(encode(blockid, true) + ';'); if (i == -1) { // Add the opened block cookie = cookie + encode(blockid, true) + ';'; } } // Reset the cookie if (cookiename == '') { setCookie('joostniemoller.nl ', cookie, 1000*60*60*24*365); } else { setCookie(cookiename, cookie, 1000*60*60*24*365); } window.open(window.location, '_self'); } function minimizeBlock(blockid) { minimizeBlock2(blockid,''); } function minimizeBlock2(blockid,cookiename) { var pre; var post; var i; var cookie; if (cookiename == '') { cookie = getCookie('joostniemoller.nl '); } else { cookie = getCookie(cookiename); } // See if the opened block exists i = cookie.indexOf(encode(blockid, true) + ';'); if (i > -1) { pre = cookie.substring(0, i); post = ((i + 9) < cookie.length) ? cookie.substring(i + 9, cookie.length) : ""; // Replace the opened block by the closed block cookie = pre + encode(blockid, false) + ';' + post; } else { // See if the closed block does not already exist i = cookie.indexOf(encode(blockid, false) + ';'); if (i == -1) { // Add the closed block cookie = cookie + encode(blockid, false) + ';'; } } // Reset the cookie if (cookiename == '') { setCookie('joostniemoller.nl ', cookie, 1000*60*60*24*365); } else { setCookie(cookiename, cookie, 1000*60*60*24*365); } window.open(window.location, '_self'); } function showWindow(uniqueid,id,qs,width,height) { var windowObj; windowObj = eval('top.Info' + uniqueid); if (windowObj && windowObj !=null && !windowObj.closed) { windowObj.focus(); } else { windowObj = null; windowObj = window.open('/show?id=' + id + qs,'Info'+uniqueid,'toolbar=no,width=' + width + ',height=' + height + ',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no'); top.name = 'wm'; if (windowObj != null) { windowObj.focus(); } } reload = false; } function getElt() { if (document.all) { // IE4+ var elt = eval('document.all[\'' + getElt.arguments[getElt.arguments.length - 1] + '\']'); // Extra code to skip the LAYER for Netscape 4 with the same name which causes elt to be an array if (elt.length) { return elt[0]; } else { return elt; } } else if (document.layers) { //NS4 var currentLayer = document.layers[getElt.arguments[0]]; for (var i = 1; i < getElt.arguments.length && currentLayer; i++) { currentLayer = currentLayer.document.layers[getElt.arguments[i]]; } return currentLayer; } else if (document.getElementById) { // NS6 return document.getElementById(getElt.arguments[getElt.arguments.length - 1]); } } function setBg(id, color, fgcolor, imgurl) { if (document.all) { // IE4+ if (imgurl != null && imgurl != '') { getElt(id).style.background = 'url("' + imgurl + '")'; } else { getElt(id).style.background = 'none'; } getElt(id).style.backgroundColor = color; // DOM only if (document.getElementById) { getElt(id).childNodes.item(0).childNodes.item(0).style.color = fgcolor; } else { getElt('F' + id).color = fgcolor; } } else if (document.getElementById) { // NS6 if (imgurl != null && imgurl != '') { getElt(id).background = 'url("' + imgurl + '")'; } else { getElt(id).background = 'none'; } getElt(id).bgColor = (document.layers && color == 'transparent') ? '' : color; getElt(id).color = fgcolor; } }