/*
Pop up image viewer script II
*/

function popimage(imagesrc,winwidth,winheight){
var LeftPosition = (screen.width) ? (screen.width-winwidth)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-winheight)/2 : 0;
winwidth = winwidth + 20;
winheight = winheight + 20;
var look='width='+winwidth+',height='+winheight+',top='+TopPosition+',left='+LeftPosition+','

popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Foto</title><body><img src="'+imagesrc+'"></body>')
popwin.document.close()
}


/*
Pop up deelnemers
*/

var IE = document.all?true:false
 
if (!IE) document.captureEvents(Event.MOUSEMOVE)
 
document.onmousemove = getMouseXY;
 
var tempX = 0
var tempY = 0
 
  
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
obj_info = document.getElementById("info")
obj_info.style.top = tempY -10 ;
obj_info.style.left = tempX -250;
  return true
}
 
function alert_msg(bodytext){
obj_info = document.getElementById("info")
obj_info.style.display = '';

obj_imagebody = document.getElementById("imagebody");
obj_imagebody.innerHTML = bodytext;
}
 
function away()
{
obj_info = document.getElementById("info")
obj_info.style.display = 'none';
}