


function restyle () {
	var blocksize;

	if (window.innerHeight>1.5*window.innerWidth) {
		blocksize= window.innerWidth/4;
	} else {
		blocksize = window.innerHeight/6;
	}
	left = (window.innerWidth-4*blocksize)/2;
	changecss('img.blok','width',blocksize);
	changecss('img.blok','height',blocksize);
	changecss('td.blok','width',blocksize);
	changecss('td.blok','height',blocksize);
	changecss('img.balk','width',4*blocksize);
	changecss('div#main','left',left);
}

var musiconoff = 1;

function switchmusic() {
}
function music(onoff) {
		var filename="/media/newyork.mp3";
		var musiccode = "";
		if (navigator.appName == "Microsoft Internet Explorer")
		    musiccode = '<BGSOUND SRC="' + filename + '">';
		else if (navigator.appName == "Netscape")
		    musiccode = '<EMBED SRC="' + filename + '" VOLUME="50" AUTOSTART=TRUE WIDTH=150 HEIGHT=20 LOOP>';
	if (onoff) {
		document.getElementById('music').innerHTML =musiccode;
	} else {
		document.getElementById('music').innerHTML ='';	
	} 
}
var lastshown = 'welkom';
function tofront(obj) {
  veld = new String;
	veld = obj;
  document.getElementById(obj).style.zIndex = 2;
  if (lastshown != obj) {
  	lastshown = obj;
  	toback(lastshown);
  }
  return true;
}


function toback(obj) {
  veld = new String;
	veld = obj;
  document.getElementById(veld).style.zIndex = -2;
}

function goto(theurl) {
	window.location=theurl;
}
function popup(url)
{

MyNewWindow=window.open(url,'popup','left=100,top=100,width=920,height=720,location=yes,resizable=yes,scrollbars=yes');
MyNewWindow.focus();
}

function showsubmenu(obj,target) {
	var topposition = findPos(obj);
	
	document.getElementById(target).style.top=topposition[1]+30;
	document.getElementById(target).style.left=topposition[0];
	tofront(target);
	
}


	
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		do {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		} while (obj = obj.offsetParent);
	}
	return [curleft,curtop];
}