//#############################################################################
//# FUNCTIES VOOR FOTOALBUM                                                   #
//#############################################################################
var thumb_on  = 1;
var slideshow_on = true;

function showover(thumb, show) {
  document.getElementById('over'+thumb).style.display=(show || thumb_on == thumb)?'block':'none';
}

function changethumb(thumb) {
  document.getElementById('photo').src = document.getElementById('thumb'+thumb).src;
  thumb_on     = thumb;
  slideshow_on = false;
  for(i=1; i<=4; i++)
    if(document.getElementById('over'+i))
      document.getElementById('over'+i).style.display=(thumb_on == i)?'block':'none';
}

function slideshow() {
  if(slideshow_on) {
    if (document.getElementById('thumb'+(thumb_on+1))) thumb_on += 1;
    else thumb_on = 1;
    document.getElementById('photo').src = document.getElementById('thumb'+thumb_on).src;
    for(i=1; i<=4; i++)
      if(document.getElementById('over'+i))
        document.getElementById('over'+i).style.display = (thumb_on == i)?'block':'none';
  }
  if(slideshow_on) setTimeout('slideshow()',5000);
}

function PopUpWindow(Wurl,Wname,Wtoolbar,Wlocation,Wdirectories,Wstatus,Wmenubar,Wscrollbars,Wresizable,Wcopyhistory,_width,_height)
{
  nw = window.open(Wurl,Wname,"height="+_height+",width="+_width+",top=0,left=0,resizable="+Wresizable+",scrollbars="+Wscrollbars+",toolbar="+Wtoolbar+",menubar="+Wmenubar+",location="+Wlocation+",status="+Wstatus+",directories="+Wdirectories);
}
