// This code (C) MediaMonks B.V. (www.mediamonks.com)
// All rights reserved
//
// Retain this message when using this code

//vacature popup
function vacatures(wich) {
	window.open("wanted/"+wich+".html","","width=240,height=325");
}

// Random text part
function getRandomNum(lbound, ubound) {
  return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}

function doText() {
  var monks = new Array();
  monks[1] = 'dennis';
  monks[2] = 'gin';
  monks[3] = 'sebastiaan';
  monks[4] = 'terrence';
  monks[5] = 'wesley';
  monks[6] = 'victor';

  monks[7] = 'maarten';
  monks[8] = 'arjen';
  monks[9] = 'weyert';
  monks[10]= 'eelco';
  monks[11]= 'suzanne';
  
  rand1 = getRandomNum(1,17);
  rand2 = getRandomNum(1,5);
  newtext = new Image();
  if(rand1>11) {
    rand1 = rand1-10;
    newtext.src = './images/text/spl_text_'+monks[rand1]+'_'+rand2+'.gif';
    document.top2_text.src = newtext.src;
    newtext.src = './images/text/line.gif';
    document.bottom_text.src = newtext.src;
    document.top_text.src = newtext.src;
 } else {
      if (rand1>6) {
        rand1 = rand1-5;
        newtext.src = './images/text/spl_text_'+monks[rand1]+'_'+rand2+'.gif';
        document.top_text.src = newtext.src;
        newtext.src = './images/text/line.gif';
        document.bottom_text.src = newtext.src;
        document.top2_text.src = newtext.src;
      } else {
        newtext.src = './images/text/spl_text_'+monks[rand1]+'_'+rand2+'.gif';
        document.bottom_text.src = newtext.src;
        newtext.src = './images/text/line.gif';
        document.top_text.src = newtext.src;
        document.top2_text.src = newtext.src;
      }
   }
}
function startClock() {
  clock();
}

function clock() {
  setTimeout("clock()", 4500);
  doText();
}