// ++++++++++++++++++++++++++++++++++++++++++ //
// OPEN NEW WINDOW IN CENTER OF SCREEN        // 
// ++++++++++++++++++++++++++++++++++++++++++ //

function NewWindow(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;
var wint = ((screen.height - 50)- h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// ++++++++++++++++++++++++++++++++++++++++++ //
// SPAWN EXTERNAL LINK IN POPUP WINDOW          // 
// ++++++++++++++++++++++++++++++++++++++++++ //

function extern(mypage) {
var w = 417;
var h = 500;
var winl = (screen.width - w) / 2;
var wint = ((screen.height - 50)- h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,noresize'
win = window.open(mypage, 'extern', winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// ++++++++++++++++++++++++++++++++++++++++++ //
// ROLLOVER VOOR BOVENSTE MENU ITEMS      // 
// ++++++++++++++++++++++++++++++++++++++++++ //

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		menu1_on = newImage("images/menu1_on.gif");
		preloadFlag = true;
	}
}

// ++++++++++++++++++++++++++++++++++++++++++ //
// MOUSE OVER KLASSIEKE FOYES				  // 
// ++++++++++++++++++++++++++++++++++++++++++ //


function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = "ie";
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v==4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ie = ((this.b=="ie" && this.v>=4)||(this.b=="ns" && this.v>=5))
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)

	if(!this.ns) {
		this.ie=true;
	}
		
}

is = new BrowserCheck()


// Show/Hide script
function show(id) {
        if (is.ns) document.layers[id].visibility = "show"
        else if (is.ie4) document.all[id].style.visibility = "visible"
		else if (is.ie)	document.getElementById(id).style.visibility = 'visible'
}

function hide(id) {
        if (is.ns) document.layers[id].visibility = "hide"
        else if (is.ie4) document.all[id].style.visibility = "hidden"
		else if (is.ie) document.getElementById(id).style.visibility = 'hidden'
}


// Hier alle content divjes neerzetten
function hideall() {
	hide('home');
	hide('steenbergen');
	hide('willem');
	hide('dames');
}

// ++++++++++++++++++++++++++++++++++++++++++ //
// 			  // 
// ++++++++++++++++++++++++++++++++++++++++++ //
