function toggleLayer( whichLayer )
{
	var hide1 = returnElem('omschrijving')
	var hide2 = returnElem('kenmerken')
        var hide3 = returnElem('fotos')
        var hide4 = returnElem('locatie')

        hide1.style.display = 'none';
        hide2.style.display = 'none';
        hide3.style.display = 'none';
        hide4.style.display = 'none';


        var elem = returnElem(whichLayer)

	elem.style.display = 'block';

	// update google map
	//map.checkResize();
}

function returnElem( whichElement )
{
	  var elem;
	  if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( whichElement );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[whichElement];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[whichElement];
	    
	    return elem;
}