		
function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function showMap()
{
	open ('kaartje.htm', 'map', 'scrollbars=1,toolbar=0,menubar=0,width=800,height=600,top=10%,left=20%');
}


path = 'images/';
var binnen0 = new Image();
binnen0.src = path + "fotos/cafe/binnen000.jpg";
var binnen1 = new Image();
binnen1.src = path + "fotos/cafe/binnen001.jpg";
var binnen2 = new Image();
binnen2.src = path + "fotos/cafe/binnen002.jpg";
var binnen3 = new Image();
binnen3.src = path + "fotos/cafe/binnen003.jpg";
var binnen4 = new Image();
binnen4.src = path + "fotos/cafe/binnen004.jpg";
var binnen5 = new Image();
binnen5.src = path + "fotos/cafe/binnen005.jpg";
var binnen6 = new Image();
binnen6.src = path + "fotos/cafe/binnen006.jpg";
var tuin1 = new Image();
tuin1.src = path + "fotos/tuin/tuin1.jpg";
var tuin2 = new Image();
tuin2.src = path + "fotos/tuin/tuin2.jpg";
var tuin3 = new Image();
tuin3.src = path + "fotos/tuin/tuin3.jpg";
var mapsmall = new Image();
mapsmall.src = path + "map_detail.png";
var mapbig = new Image();
mapbig.src = path + "map_overview.png";

function openthis(theImage)
{
   var W = theImage.width;
   var H = theImage.height;

   var X = (screen.width/2)-(W/2);
   var Y = (screen.height/2)-(H/2);

   //alert(W+","+H+","+X+","+Y);

   var winPref = "width=" + W + ",height=" + H
               + ",innerWidth=" + W + ",innerHeight=" + H
               + ",left=" + X + ",top=" + Y
               + ",screenX=" + X + ",screenY=" + Y
               + ",dependent=yes,titlebar=no,scrollbars=no,resizable=no";

   var myWin = open( "", "myWin", winPref );
   myWin.document.open();
   myWin.document.writeln("<HTML><TITLE>Pop Up</TITLE><BODY style='margin:0;'>");
   myWin.document.writeln("<IMG src='" + theImage.src + "' border='0' /></BODY></HTML>");
   myWin.document.close();


   if ( !myWin.opener )
       myWin.opener = top;

   myWin.focus();
   return false;
}