// Path of the Master database:
var DBNameHTML = "/clients/vvaa/webportal.nsf";
// Path of the current database:
var DBNameHTML_C = "";
var sPathName = document.location.pathname;
var iNSFPos = sPathName.toUpperCase().indexOf( ".NSF" );
if( iNSFPos == -1 ){
var iSlashPos = sPathName.indexOf( "/", 1 );
DBNameHTML_C = sPathName.substring( 0, iSlashPos );
} else {
DBNameHTML_C = sPathName.substring( 0, iNSFPos + 4 );
}
document.onclick = clickOut;
function clickOut(e) {
// cross browser compatibility for events
if (!e) var e = window.event;
var etg = (e.target) ? e.target : e.srcElement;
// the target layer assuming the browser supports modern DOM
if (etg.className == "q")
targetEl = etg.parentNode.parentNode.parentNode.rows[1].cells[0];
if (etg.className == "q" && targetEl.style.display == "none")
{
targetEl.style.display = "block";
etg.style.backgroundImage='url("/clients/vvaa/webportal.nsf/v9906/I/$File/icoon-up.gif")';
if (typeof(setContentBorder) == "function")
setContentBorder();
}
else if ( etg.className == "q" && targetEl.style.display != "none")
{
targetEl.style.display = "none";
etg.style.backgroundImage='url("/clients/vvaa/webportal.nsf/v9906/I/$File/icoon-down.gif")';
if (typeof(setContentBorder) == "function")
setContentBorder();
}
}