
if (!ez_NN4) {window.onresize = function() {displayMenu();}} 

function displayMenu() {
  /* detect the coordinates of image named 'marker'and pass to showPermPanel to display menu panel 'Bar' */
  /* If you have used different names, please change the two lines below accordingly */
  var imgPosition = imgXY('marker');                     
  showPermPanel('Main', imgPosition.x, imgPosition.y);   
}

function imgXY(imgID) {
  /* This function returns the upperleft x,y coordinates of the specified image */
  var XY = new Object();
  var imgObj = document.images[imgID];
  if (document.layers) {
	XY.x = eval(imgObj).x;
	XY.y = eval(imgObj).y;
  } else {
	var x,y, tempEl;
	x = eval(imgObj).offsetLeft;
	y = eval(imgObj).offsetTop;
	tempEl = eval(imgObj).offsetParent;
  	while (tempEl != null) {
  		x += tempEl.offsetLeft;
		y += tempEl.offsetTop;
  		tempEl = tempEl.offsetParent;
  	}
	XY.x = x;
	XY.y = y;
  }
  return XY;
}

function js_write(txt){
	document.write(txt);
}

var v = parseInt(navigator.appVersion);
var ns4 = (navigator.appName=='Netscape' && v>=4 && v<5);
var ns6 = (navigator.appName=='Netscape' && v>=5);
var ie4 = (navigator.appName=='Microsoft Internet Explorer' && v>=4);
var newWin;
var url="http://www.fototool.nl"; 
var title="Fototool.nl: makkelijk online foto's bewerken"; 

function openWin(url, width, height, scrollbars, toolbar, target)
{
	var left, top;
	(ie4) ? left = window.screenLeft : left = window.screenX;
	(ie4) ? top = window.screenTop : top = window.screenY;
	var rnd = Math.round(Math.random() * 100);

	scrollbars = (scrollbars) ? 'yes' : 'no';
	toolbar = (toolbar) ? 'yes' : 'no';
	target = (target) ? target : 'Jijbent'+rnd;
	newWin = window.open(url, target, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar+',directories=no,status=no,resizable=yes,menubar=no,scrollbars='+scrollbars);
	if (newWin.opener == null) newWin.opener = self;
	setTimeout('if (newWin != null && !newWin.closed) newWin.focus()',250);
}

function toggleDisplay(eleId){
   var dsp = document.getElementById(eleId);

	 dsp.style.display = (dsp.style.display == "none") ? "block" : "none";
}


