<!--

function random_foto(){
  var fotoa=new Array()
  //foto1
  fotoa[0]="/_images/foto/13.gif"
  fotoa[1]="/_images/foto/14.gif"
  fotoa[2]="/_images/foto/15.gif"
  fotoa[3]="/_images/foto/16.gif"
  fotoa[4]="/_images/foto/17.gif"
 
//foto2
  var fotob=new Array()
  fotob[0]="/_images/foto/18.gif"
  fotob[1]="/_images/foto/19.gif"
  fotob[2]="/_images/foto/20.gif"
  fotob[3]="/_images/foto/21.gif"


  
  var ry=Math.floor(Math.random()*fotoa.length)
	   var xy=Math.floor(Math.random()*fotob.length)

  if (ry==0)
     ry=1
     document.write("<img src='"+fotoa[ry]+"' class='picture'/>");
	document.write("<img src='"+fotob[xy]+"' class='picture'/>");
	 }

  
 
//-------------------------------------------------------------------------------------------//

var image = null;

function ShowFoto(image)
{
  var divwidth    = 600;
  var divheight   = 470;
  var width       = document.body.clientWidth;
  var height      = document.body.clientHeight + document.body.scrollTop;
  var marginleft  = (width - divwidth) / 2;
  var margintop   = (height - divheight) /2;
  var bodywidth	  = document.body.scrollWidth;
  var bodyheight  = document.body.scrollHeight;

  document.getElementById("a_overlay").style.width  = bodywidth;
  if (height > bodyheight)
  {
    document.getElementById("a_overlay").style.height = height;
  }
  else document.getElementById("a_overlay").style.height = bodyheight;

  document.getElementById("showfoto").style.width  = divwidth;
  document.getElementById("showfoto").style.height = divheight;
  document.getElementById("showfoto").style.top    = margintop + (document.body.scrollTop / 2);
  document.getElementById("showfoto").style.left   = marginleft;
  
  var inner = "<img src=\ "+image+"\ onclick=\"HideFoto();\" /><br /><span class=\"sluitfoto\">Klik op de foto om deze af te sluiten</span>"

  document.getElementById("showfoto").innerHTML = inner;
  
  document.getElementById("showfoto").style.display  = "block";
  document.getElementById("a_overlay").style.display  = "block";
}

function HideFoto()
{
  document.getElementById("showfoto").style.display  = "none";
  document.getElementById("a_overlay").style.display  = "none";
}




//-->