function showDiv(elementId) {
	e = document.getElementById(elementId);
	if(e.style.display == 'none') e.style.display = 'inline';
	else e.style.display = 'none';
}
function deleteIt(elementId, postURL, name, queryString){
	if(confirm('Weet je zeker dat je '+name+' wilt verwijderen?')){
		location.href = postURL+'?id='+elementId+queryString;
	}
}

function popup(source, width, height){
	xl = (screen.availWidth/2)-(width/2)
	tt = (screen.availHeight/2)-(height/2)
	picture=window.open(source,'noscroll','toolbar=no,scrolling=auto,resizable=no,location=no,directories=no,status=no,scrollbars=auto,menubar=no,width='+width+',height='+height+',left='+xl+',top='+tt);
	picture.focus()
}

function popupScroll(source, width, height){
	xl = (screen.availWidth/2)-(width/2)
	tt = (screen.availHeight/2)-(height/2)
	picture=window.open(source,'scroll','toolbar=no,scrolling=yes,resizable=no,location=no,directories=no,status=no,scrollbars=yes,menubar=no,width='+width+',height='+height+',left='+xl+',top='+tt);
	picture.focus()
}

function init() {
	resizeWindow()
}

function resizeWindow() {
	var imageHeight = 91
	var footerHeight = 19
	var WinHeight = (document.layers)? window.innerHeight:document.body.clientHeight
	var Offset = (document.layers)? window.pageYOffset:document.body.scrollTop
	var positionY = WinHeight + Offset - imageHeight
	var pageHeight = document.body.scrollHeight
	var positionX = HM_f_GetElementXY('marker','x')

	if(positionY > 200) {
		if((positionY+imageHeight) == (pageHeight))
			positionY = positionY-footerHeight
		else if((positionY+imageHeight) > (pageHeight-footerHeight)) {
			var verschil = (positionY+imageHeight) - (pageHeight-footerHeight)
			positionY = positionY - verschil
		}
		document.getElementById('bottomLeftNav').style.top = (positionY)+'px'
	}
	
	document.getElementById('bottomLeftNav').style.left = (positionX+1)+'px'
	setTimeout('resizeWindow()',100)
}

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
