// JavaScript Document
//GET/SET CONTENT HEIGHT
window.onresize=setContentHeight;

function getContentHeight(){
	var height;
	var ns=(document.layers);
	var ie=(document.all);
	var w3=(document.getElementById && !ie);

	if (ie){
		height = document.body.offsetHeight;
	}else if (ns){
		height = window.innerHeight;
	}else if (w3){
		height = self.innerHeight;    
	}
	return (height);
}

function setContentHeight(){
	var height = getContentHeight();
	height = height - 290;
	if (height < 10) {
		height = 10;
	}
	var mainheight = getContentHeight();
	mainheight = mainheight - 10;
	if (mainheight < 10) {
		mainheight = 10;
	}
	//document.getElementById("contentdiv").style.height = height + "px";
	if (document.getElementById("content") != null)
		document.getElementById("content").style.height = height + "px";
		
	if (document.getElementById("maintable") != null)
		document.getElementById("maintable").style.height = mainheight + "px";
		
	if (document.getElementById("logo_container") != null)
		document.getElementById("logo_container").style.height = height - 250 + "px";
}

function navigatie_contact() {
	parent.content.window.location = "contact.htm";
	parent.navigatie.window.location = "flash/navigatie_contact.htm";
}

function navigatie_fotos(src) {
	parent.content.window.location = src;
	parent.navigatie.window.location = "flash/navigatie_fotos.htm";
}

function CreateControl(DivID, MIMETYPE, ObjectID,
                       WIDTH, HEIGHT, URL, BGCOLOR)
{
  var d = document.getElementById(DivID);
  d.innerHTML = 
	'<object type="' + MIMETYPE + '" data="' + URL + '" style="width: ' + WIDTH + 'px; height: ' + HEIGHT + 'px;" id="' + ObjectID + '">' +
	'<param name="allowScriptAccess" value="sameDomain" />'+
	'<param name="movie" value="' + URL + '" />' +
	'<param name="quality" value="high" />' +
	'<param name="bgcolor" value="' + BGCOLOR + '" />' +
	'<param name="menu" value="false" />' +
	'<'+ '/object>';
}

function eGille()
{
	return 'p' + '.' + 'gille' + '@' + 'hetnet' + '.' + 'nl';
}