// 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 ); } var aME = new Array(); // test // Parameters: Concept, Title, Parent, Button_URL_1, Button_Target_1, Button_URL_2, Button_Target_2, Button_URL_3, Button_Target_3, Button_URL_4, Button_Target_4, ImageStoreDoc, ImageName, FontFace function menuEntry( sConcept, sBTitle, sParent, sBURL1, sBTarget1, sBURL2, sBTarget2, sBURL3, sBTarget3, sBURL4, sBTarget4, sImageStoreDoc, sImageName, sFontFace ) { // Object constructor this.sConcept = sConcept; this.sBTitle = sBTitle; this.sParent = sParent; this.sBURL1 = sBURL1; this.sBTarget1 = sBTarget1; this.sBURL2 = sBURL2; this.sBTarget2 = getTargetName( sBTarget2 ); this.sBURL3 = sBURL3; this.sBTarget3 = getTargetName( sBTarget3 ); this.sBURL4 = sBURL4; this.sBTarget4 = getTargetName( sBTarget4 ); this.sImageStoreDoc = sImageStoreDoc; this.sImageName = sImageName; this.sFontFace = sFontFace; // Private function function getTargetName( sTarget ) { var sReturnValue = sTarget; switch( sTarget ) { case "Content Page" : sReturnValue = "rechts"; break; case "Cluster Navigator" : sReturnValue = "links"; break; case "Top Navigator" : sReturnValue = "boven"; break; case "Extra Frame" : sReturnValue = "londer"; break; } return sReturnValue; } // end getTargetName( ) } // end menuEntry( ) function mE( sConcept, sBTitle, sParent, sBURL1, sBTarget1, sBURL2, sBTarget2, sBURL3, sBTarget3, sBURL4, sBTarget4, sImageStoreDoc, sImageName, sFontFace ) { // alert (sBURL1); // Menu Entry: create an object instance in the array oMenuEntry = new menuEntry( sConcept, sBTitle, sParent, sBURL1, sBTarget1, sBURL2, sBTarget2, sBURL3, sBTarget3, sBURL4, sBTarget4, sImageStoreDoc, sImageName, sFontFace ); if (aME.push ) { pushed = aME.push( oMenuEntry ); } else { aME = aME.concat(oMenuEntry ) } } // end mE( ) function writeMenuItems (type) { var html = "" if( aME.length > 0 ) { for( var i=0; i < aME.length; i++ ) { if (aME[i].sConcept == type && aME[i].sBURL1 != "#" ) { html = html + '
| ';
html = html + ' ';
if (aME[i].sBTitle == title ) {
html = html + '' + aME[i].sBTitle + '';
} else {
html = html + '' + aME[i].sBTitle + '';
}
html = html + ' ';
html = html + ' | ';
}
}
html = html + '
| ';
html = html + ' ';
if (aME[i].sBTitle == highlight ) {
html = html + '' + aME[i].sBTitle + '';
} else {
html = html + '' + aME[i].sBTitle + '';
}
html = html + ' ';
html = html + ' | ';
}
}
html = html + '
| ';
html = html + ' ';
if ( highlight == "e-dossier")
aME[i].sBURL1 = "http://www.vvaa.nl" + aME[i].sBURL1;
if (aME[i].sBTitle == highlight && document.domain == "www.vvaa.nl") {
html = html + '' + aME[i].sBTitle + '';
} else {
html = html + '' + aME[i].sBTitle + '';
}
html = html + ' ';
html = html + ' | ';
}
}
html = html + '
| ';
html = html + ' ';
if (aME[i].sBTitle == title ) {
html = html + '' + aME[i].sBTitle + '';
} else {
html = html + '' + aME[i].sBTitle + '';
}
html = html + ' ';
html = html + ' | ';
}
}
html = html + '