// Open a small information file in a separate popup-window.
function moreInfo(filename) {
	filename="/extrainfo.php?f="+filename;
	myWin=open(filename, "displayWindow", "width=500,height=440,left="+(screen.width-500)/2+",top="+(screen.height-600)/2+",status=no,location=no,toolbar=no,menubar=no");
}

function moreInfo2(filename, width, height){
	filename="extrainfo.php?f="+filename;
	myWin=open(filename, "displayWindow", "width="+width+",height="+height+",left="+(screen.width-width)/2+",top="+(screen.height-height-100)/2+",status=no,location=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes"); 
}

// Open a popup-window, containing a large version of an image.
function showImage(image){
	filename = "/images/" + image;
	filename="/showimage.php?image="+image;
	myWin=open(filename, "displayWindow", "width=800,height=600,left="+(screen.width-800)/2+",top="+(screen.height-600)/2+",scrollbars=yes");
}

// Split the email-address to extract user-info and server-info. 
function split_emailaddress(form) {
	emailparts = form.email.value.split('@');
	form.user.value=emailparts[0];
	form.server.value=emailparts[1];
	return true;
}

// Highlight area.
function hilite(mode){
	// Move mouse cursor over tablerow.
	if(mode=='over') return "#EEF8FD";

	// Move mouse cursor over tab-button.
	if(mode=='button') return "#FF0000";

	// Move mouse over input-button.
	if(mode == 'vipred') return "#B92733";

	// Mover mouse out of input-button.
	if(mode == 'vipblue') return "#0F5397";
	
	// Reset color to white.
	return "#FFFFFF";
}

// Save the current page.
function doSaveAs(){
	if (document.execCommand){
		document.execCommand("SaveAs", true, ".html");
	}else{
		alert('Dit is alleen mogelijk met Internet Explorer.');
	}
	MM_showHideLayers('buttons','','show');
}

// Browser Detection.
function browserDetection(){
	var css;

	if(navigator.appName=="Netscape"){
		if(navigator.appVersion.indexOf("5.0")+1){
			css="_ns7";
		} else if(navigator.appVersion.indexOf("4.7")+1){
			css="_ns4";
		} else {
			css="_nsx";
		}
	} else if(navigator.appName=="Microsoft Internet Explorer"){
		if(navigator.userAgent.indexOf("Opera")+1){
			css="_opera";
		} else if(navigator.userAgent.indexOf("MSIE")+1){
			css="";
		} else {
			css="";
		}
	} else {
		css="";
	}

	document.write('<link id="stylesheet" rel="stylesheet" href="/styles/vipinternet' + css + '.css">');
}

