var DezePag = 1;
var NietPag = 1;

function BGMenu() {
if (location.protocol == "file:") {
	var DBGpad="../"
	}
else {
	var DBGpad="/"
  }
document.write("<!-- main table om witruimte links en rechts te bepalen -->");
document.write("<TABLE width = 100% cellSpacing=0 cellPadding=0 border=0>");
document.write("  <TBODY><TR><TD width=10%>&nbsp;</TD><TD width=80%>");
document.write("<!-- einde main table -->");
document.write("<!-- head table om de links te plaatsen -->");
document.write("<TABLE cellSpacing=0 cellPadding=0 border=0>");
document.write("<CAPTION><B><FONT size=+2>De Bondgenoot</FONT></B><BR>&nbsp;</CAPTION><TBODY><TR>");
document.write("<TD width=100 height=50 valign='center'><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='" + DBGpad + "index.html'>Welkom</a><br>");
document.write("<TD width=130 height=50 valign='center'><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='" + DBGpad + "BGnieuws/index.htm'>Nieuwsbrief</a></TD>");
document.write("<TD width=70 height=50 valign='center'><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='" + DBGpad + "Main/folder.htm'>Folder</a></TD>");
document.write("<TD width=80 height=97 valign='center'><img src='" + DBGpad + "Images/bondhart.gif' width='80' height='97' alt='De Bondgenoot'></TD>");
document.write("<TD width=120 height=50 valign='center' align='center'><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='http://www.bondgenootpartner.nl/' target=_new>Partner</a></TD>");
document.write("<TD width=100 height=50 valign='center'><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='" + DBGpad + "Main/contact.htm'>Contact</a></TD>");
document.write("<TD width=90 height=50 valign='center'><BR><BR><hr width='100%' size=2 align=center color='FO7478'><BR>");
document.write("<A HREF='" + DBGpad + "Main/kaart.htm'>Kaart</a><br>");
document.write("<A HREF='" + DBGpad + "Pers/index.htm'>Persberichten</a></TD>");
document.write("</TR></TBODY></TABLE>");
document.write("<!-- einde head table -->");
}

function BGEind()  {
LastDate();
document.write("<!-- main table om witruimte links en rechts te bepalen -->");
document.write("</TD><TD width=10%>&nbsp;</TD></TR></TBODY></<TABLE>");
document.write("<!-- einde main table -->");
}

function BGEindSP()  {
LastDateSP();
document.write("<!-- main table om witruimte links en rechts te bepalen -->");
document.write("</TD><TD width=10%>&nbsp;</TD></TR></TBODY></<TABLE>");
document.write("<!-- einde main table -->");
}

function initArray() {  
   this.length = initArray.arguments.length
   for (var i = 0; i < this.length; i++)
   this[i+1] = initArray.arguments[i]
}

function LastDate() {
var DOWArray = new initArray("zondag","maandag","dinsdag","woensdag",
                             "donderdag","vrijdag","zaterdag");
var MOYArray = new initArray("januari","februari","maart","april",
                             "mei","juni","juli","augustus","september",
                             "oktober","november","december");
var LastModDate = new Date(document.lastModified);
if (DezePag > 0) { 
document.write("<br><hr width='100%' size=1 align=center color='#FO7478'><br>");
document.write("<center>");
}
if (DezePag > 1) { 
   DezePag--
   if (DezePag > 9) {
	document.write("<a href='bond02" + DezePag + ".htm'>Vorige Pagina</a>&nbsp;&nbsp;&nbsp;");
   }
   else {
	document.write("<a href='bond020" + DezePag + ".htm'>Vorige Pagina</a>&nbsp;&nbsp;&nbsp;");
   } 
   DezePag++
}
if (DezePag > 0) { 
document.write("&nbsp;&nbsp;&nbsp;<a href='../index.htm'>Inhoudsopgave</a>&nbsp;&nbsp;&nbsp;");
}
if (DezePag > 0) { 
   DezePag++
   if (DezePag > NietPag) {
   }
   else {
      if (DezePag > 9) {
 	document.write("&nbsp;&nbsp;&nbsp;<a href='bond02" + DezePag + ".htm'>Volgende Pagina</a>&nbsp;&nbsp;&nbsp;");
      }
      else {
	document.write("&nbsp;&nbsp;&nbsp;<a href='bond020" + DezePag + ".htm'>Volgende Pagina</a>&nbsp;&nbsp;&nbsp;");
      }
   }
   DezePag--
}
if (DezePag > 0) { 
document.write("</center>");
}
document.write("<!-- einde van de pagina: laatste wijziging & copyright -->");
if (DezePag < 0) {
	document.write("<br><hr width='100%' size=1 align=center color='c7ebff'>");
}
else {
//uitgeremd:	document.write("<br><hr width='100%' size=1 align=center color='FO7478'>");
} 
if (DezePag < 0) {
	document.write("<P ALIGN=CENTER><FONT SIZE=-1>");
}
else {
	document.write("<P ALIGN=CENTER><FONT SIZE=-1>");
} 
document.write("Deze pagina is voor het laatst gewijzigd op ");
document.write(DOWArray[(LastModDate.getDay()+1)]," ");
document.write(LastModDate.getDate()," ",MOYArray[(LastModDate.getMonth()+1)]);
document.write(" ",(LastModDate.getYear()),".");
if (DezePag < 0) {
	document.write("<br><br>© 1997 - 2010: De YOSOY.</p><BR>");
}
else {
	document.write("<br><br>© 2002 - 2010: Stichting de Bondgenoot.</p><BR>");
} 
}

function BGhead() {
document.write("<STYLE>");
document.write("A   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #0066CC; }");
document.write("A:hover   { color: darkred; }");
document.write("A:active  { color: darkred; }");
document.write("B   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("BR  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("CENTER  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("H1  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 21; color: #000080;  }");
document.write("I   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("INPUT { BACKGROUND-COLOR: #cbfee6; BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; COLOR: #000080; FONT: 18pt/100% Verdana, Arial, Helvetica, Sans-Serif }");
document.write("LI  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("P   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("PRE { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("UL { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("</STYLE>");
}

//-- JavaScript code written by Alan Simpson - www.coolnerds.com
//This first function pads the message with blanks, and inserts the HTML
//required to display the form in your page. Not executed until called.
//Do not change any of this code. 
   function banner(msg,ctrlwidth) {
   // Pad message and bring to width of textbox.
   for (i=0;i<=ctrlwidth;i++){msg="  "+msg}
	// Set up the form and form field.
	document.write ('<form name="banner">')
	document.write ('<input name="scrollBox" value="'+msg+'" size='+ctrlwidth+'>')
	document.write ('</form>')
	rollmsg()	//Get the banner rolling
}
//This function makes the message scroll through the text box.
function rollmsg() {
   nowMsg=document.banner.scrollBox.value
   nowMsg=nowMsg.substring(1,nowMsg.length)+nowMsg.substring(0,1)
   document.banner.scrollBox.value=nowMsg
	myTimer=setTimeout("rollmsg()",100) 
}

function BGlijn() {
document.write("<hr width='100%' size=1 align=center color='FO7478'>");
}

/*
Slowly coming together status bar scroller
Written by BengalBoy (www.angelfire.com/nt/bengaliboy/index.html)
Visit http://wsabstract.com for this script and more
*/

//set message:
msg = "Welkom aan boord van de YOSOY !";
if ( document.location.href.indexOf("indexsp.htm") > -1) msg = "Muy bienvenidos a bordo de YOSOY !" ;
if ( document.location.href.indexOf("/sp/") > -1) msg = "Muy bienvenidos a bordo de YOSOY !" ;

timeID = 10;
stcnt = 16;
wmsg = new Array(33);
        wmsg[0]=msg;
        blnk = "                                                               ";
        for (i=1; i<32; i++)
        {
                b = blnk.substring(0,i);
                wmsg[i]="";
                for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
        }

function wiper()
{
        if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
        if (stcnt-- < -40) stcnt=31;
        status = str;
        clearTimeout(timeID);
        timeID = setTimeout("wiper()",100);
}

function BootHead() {
document.write("<STYLE>");
document.write("A   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #0066CC; }");
document.write("A:hover   { color: darkred; }");
document.write("A:active  { color: darkred; }");
document.write("B   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("BR  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("H1  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 21; color: #000080;  }");
document.write("I   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("INPUT { BACKGROUND-COLOR: #cbfee6; BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; COLOR: #000080; FONT: 18pt/100% Verdana, Arial, Helvetica, Sans-Serif }");
document.write("LI  { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("P   { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("PRE { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("TD { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("UL { font-family: Verdana, Arial, Helvetica, Sans-Serif; font-size: 15; color: #000080;  }");
document.write("</STYLE>");
wiper()
}

if ( document.location.href.indexOf("index.html") > -1)  {
	var DBGpad=""
	}
else {
	var DBGpad="../"
}

function EndFooter()	{
document.write('</div><div id="footer"><a href="../index.html" '
+ ' onblur="change(\'toolBoxInfoText\',\'Kies een functie…\')" '
+ ' onmouseover="change(\'toolBoxInfoText\',\'Terug naar de welkomspagina\')" '
+ ' onfocus="change(\'toolBoxInfoText\',\'Terug naar de welkomspagina\')" '
+ ' onmouseout="change(\'toolBoxInfoText\',\'Kies een functie…\')" >');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/home_ico_.gif" alt="Terug naar de welkomspagina" width="44" height="46" border="0"></a> ');

document.write('<a '
+ ' href="javascript:window.external.AddFavorite'
+ '(\'http://www.bondgenoot.nl/\','
+ '\'De Bondgenoot\')" '
+ ' onblur="change(\'toolBoxInfoText\',\'Kies een functie…\')" '
+ ' onmouseover="change(\'toolBoxInfoText\',\'Voeg deze pagina aan de Favorieten toe\')" '
+ ' onfocus="change(\'toolBoxInfoText\',\'Voeg deze pagina aan de Favorieten toe\')" '
+ ' onmouseout="change(\'toolBoxInfoText\',\'Kies een functie…\')" >'
+ '<img class="imgfoot" src="' + DBGpad + 'Images/add_to_favorites.gif" alt="Voeg deze pagina aan de Favorieten toe" width="44" height="46" border="0"></a>');

document.write('<a href="javascript:window.print();" '
+ ' onblur="change(\'toolBoxInfoText\',\'Kies een functie…\')" '
+ ' onmouseover="change(\'toolBoxInfoText\',\'Print deze pagina\')" '
+ ' onfocus="change(\'toolBoxInfoText\',\'Print deze pagina\')" '
+ ' onmouseout="change(\'toolBoxInfoText\',\'Kies een functie…\')" >');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/print_this_page.gif" alt="Print deze pagina" width="44" height="46" border="0"></a>');

document.write('<a href="javascript:LaatzienDoor();" '
+ ' onblur="change(\'toolBoxInfoText\',\'Kies een functie…\')" '
+ ' onmouseover="change(\'toolBoxInfoText\',\'Stuur deze pagina door naar een vriend\')" '
+ ' onfocus="change(\'toolBoxInfoText\',\'Stuur deze pagina door naar een vriend\')" '
+ ' onmouseout="change(\'toolBoxInfoText\',\'Kies een functie…\')" >');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/send_to_friend.gif" alt="Stuur deze pagina door naar een vriend" width="44" height="46" border="0"></a> ');

document.write('<a href="#Top" '
+ ' onblur="change(\'toolBoxInfoText\',\'Kies een functie…\')" '
+ ' onmouseover="change(\'toolBoxInfoText\',\'Naar het begin van deze pagina\')" '
+ ' onfocus="change(\'toolBoxInfoText\',\'Naar het begin van deze pagina\')" '
+ ' onmouseout="change(\'toolBoxInfoText\',\'Kies een functie…\')" >');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/arrow_top.gif" alt="Naar het begin van deze pagina" width="44" height="46" border="0"></a>');

document.write('<br><div id="footinfo"><p id=toolBoxInfoText>Kies een functie…</p></div>');

var DOWArray = new initArray("zondag","maandag","dinsdag","woensdag",
                             "donderdag","vrijdag","zaterdag");
var MOYArray = new initArray("januari","februari","maart","april",
                             "mei","juni","juli","augustus","september",
                             "oktober","november","december");
var LastModDate = new Date(document.lastModified);
document.write('<p align="center">Deze pagina is voor het laatst gewijzigd op ');
document.write(DOWArray[(LastModDate.getDay()+1)]," ");
document.write(LastModDate.getDate()," ",MOYArray[(LastModDate.getMonth()+1)]);
document.write(" ",(LastModDate.getYear()),".");
document.write("<br><br>© 2002 - 2010: Stichting de Bondgenoot.</p><BR>");
document.write('<div id="stuurdoor" > ');
document.write('<a href="javascript:VerbergDoor();" class="sluitdoor"> ');
document.write('<img src="' + DBGpad + 'Images/kruis.gif" border="0" alt="Sluit berichtvenster" ></a> ');
document.write('<center><b>Stuur deze pagina door</b></center> ');
document.write('<form name="emailform" action="' + DBGpad + 'Main/bondstuur.php" method="post"> ');
document.write('<label for="emailwie">Aan: (Emailadres = verplicht)</label> ');
document.write('<input type="text" id="emailwie" name="emailwie" value="" class="inputdoor" > ');
document.write('<label for="emailwat">Onderwerp:</label> ');
document.write('<input type="text" id="emailwat" name="emailwat" value="Pagina aangeraden door een vriend" class="inputdoor" > ');
document.write('<label for="emailhoe">Bericht:</label> ');
document.write('<textarea id="emailhoe" name="emailhoe" cols="27" rows="5"></textarea> ');
document.write('<label for="emailzend">Van: (Emailadres)</label> ');
document.write('<input type="text" id="emailzend" name="emailzend" value="" class="inputdoor" > ');
document.write('<input type="hidden" class="inputdoor" id="dezepagina" name="dezepagina" value="www.bondgenoot.nl"> ');
document.write('<p align="center"> ');
document.write('<input type="submit" id="senddoor" value=" " alt="Stuur door" title="Stuur door" class="senddoor" > ');
document.write('<br><br><br>.</p></form></div> ');
document.write('</div>');
}

function BeginHeader()	{
document.write('<div id="header"><a name="#Top"></a><center><a href="' + DBGpad + 'index.html"><img src="' + DBGpad + 'Images/grotehuis.jpg" alt="[ Welkom ]" width="292" height="200" border="0"></a></center>');
document.write('<div id="linkhome"><a href="' + DBGpad + 'Main/contact.htm">');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/contact.gif" alt="[ Contact ]" width="100" height="114" border="0"><br>[ Contact ]</a></div>');
document.write('<div id="linkfold"><a href="' + DBGpad + 'Main/folder.htm">');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/folder.gif" alt="[ Folder ]" width="100" height="100" border="0"><br>[ Folder ]</a></div>');
document.write('<div id="linkpers"><a href="' + DBGpad + 'Pers/index.htm">');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/krant.gif" alt="[ Persberichten ]" width="121" height="90" border="0"><br>[ Persberichten ]</a></div>');
document.write('<div id="linknews"><a href="' + DBGpad + 'BGnieuws/index.htm">');
document.write('<img class="imgfoot" src="' + DBGpad + 'Images/nieuwsbrief1.gif" alt="[ Nieuwsbrief ]" width="72" height="88" border="0"></a>');
document.write('<a href="' + DBGpad + 'BGnieuws/index.htm">');
document.write('<img src="' + DBGpad + 'Images/nieuwsbrief2.gif" alt="[ Nieuwsbrief ]" width="97" height="88" border="0"><br>[ Nieuwsbrief ]</a>');
document.write('</div></div><div id="main_content"> ');
}
function VerbergDoor(){
	var obj_divnaam = document.getElementById('stuurdoor');
	obj_divnaam.style.display='none';
}

function LaatzienDoor(){
	document.emailform.dezepagina.value = window.location.pathname;
	var obj_divnaam = document.getElementById('stuurdoor');
	obj_divnaam.style.display='block';
}
function change(id,newtext) {
  document.getElementById(id).innerHTML=newtext;
}
