<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("(c) Fitness Park.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
window.onload = resize;
//  End -->

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script

function disableselect(e){
return true
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function resize() {
	var fillleft = document.getElementById('fillleft');
	var fillright = document.getElementById('fillright');
	var footer = document.getElementById('footer');
	var fillleftpos = findPos(fillleft);
	var fillrightpos = findPos(fillright);
	var footerpos = findPos(footer);
	//alert (fillleftpos);
	fillleft.style.height = (footerpos.curtop - fillleftpos.curtop - 6) + 'px';
	fillright.style.height = (footerpos.curtop - fillrightpos.curtop - 6) + 'px';
}

function findPos(obj) {
	var position = {};
	position.curleft = 0;
	position.curtop = 0;
	if (obj.offsetParent) {
		position.curleft = obj.offsetLeft
		position.curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			position.curleft += obj.offsetLeft
			position.curtop += obj.offsetTop
		}
	} else {
		position.curleft = obj.offsetLeft;
		position.curtop = obj.offsetTop;
	}
	return position;
}

function gotoPark() {
	window.open('http://www.fitness-park.nl');
}

function sendMail(e) {
	var event = e || window.event;
	
	window.open('mailto:info@fitness-park.nl');
	
	event.cancelBubble = true;
	if (document.all) {
		event.returnValue = false;
	} else {
		e.preventDefault();
	}
	return false;
}
