// Path of the Master database:
var DBNameHTML = "/meerse/cms.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 );
}
//SEARCH
function entsub( sQuery )
{
if (window.event && window.event.keyCode == 13)
{
if(sQuery != "")
{
window.location = '/meerse/cms.nsf/v01013/Zoekresultaten?OpenDocument&ctxSearchResults1=(start=1~count=5~query=(' + sQuery + '))&q='+sQuery;
return false;
}
else
{
alert("Vul een trefwoord in!");
}
}
}
function openSearch( sQuery )
{
if(sQuery != "")
{
window.location = '/meerse/cms.nsf/v01013/Zoekresultaten?OpenDocument&ctxSearchResults1=(start=1~count=5~query=(' + sQuery + '))&q='+sQuery;
return false;
}
else
{
alert("Vul een trefwoord in!");
}
}
function checkEnter()
{
if( window.event && window.event.keyCode == 13 )
{
openSearch( document.forms[0].Search.value );
return false;
}
}
function checkContent( oInput )
{
if( oInput.value == "" ) oInput.value = "";
}
//END SEARCH
//ROTATING IMAGES WORDT NIET MEER GEBRUIKT
// =======================================
// set the following variables
// =======================================
// Set speed (milliseconds)
var speed = 8000
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = '/meerse/cms.nsf/v9906/banner/$File/Kantoor.jpg'
Pic[1] = '/meerse/cms.nsf/v9906/banner/$File/Voordeur.jpg'
Pic[2] = '/meerse/cms.nsf/v9906/banner/$File/Dak-bord.jpg'
Pic[3] = '/meerse/cms.nsf/v9906/banner/$File/Vlag.jpg'
//Pic[4] = '/meerse/cms.nsf/v9906/banner/$File/Garage.jpg'
//Pic[5] = '/meerse/cms.nsf/v9906/banner/$File/Jachthaven.jpg'
//Pic[6] = '/meerse/cms.nsf/v9906/banner/$File/Kas.jpg'
// do not edit anything below this line
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}
function runBGSlideShow(){
if (document.body){
element = document.getElementById('dHeaderBanner');
//element.style.backgroundImage = 'url('+Pic[j]+')';
x=(j+1);
if( x >1 )
{
y=( x-1)+'';
}
else if( x==1 )
{
y=4+'';
}
//show off image for previous dot
bolOff = document.getElementById('dHeaderBol'+y);
bolOff.style.backgroundImage = "url(/meerse/cms.nsf/v9906/homepage/$File/bol-off.png)";
//show on image for current dot
x=(j+1)+'';
bolOn = document.getElementById('dHeaderBol'+x);
bolOn.style.backgroundImage = "url(/meerse/cms.nsf/v9906/homepage/$File/bol-on.png)";
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runBGSlideShow()', speed)
}
}
// End -->
//END ROTATING IMAGES
//OPEN URL IN NEW WINDOW
function openWindow(url)
{
window.open(url);
window.location.href= window.location.href;
}