// JavaScript Document

/*
function init(){
	if (window.XMLHttpRequest) {// IE 7, mozilla, safari, opera 9
		ie6=false;
	}else{// IE6, older browsers
		if(browserName == "Microsoft Internet Explorer"){
			ie6=true;
		}
	}
	if(ie6){
		preloadImg = new Image();
		preloadImg.src = theLocation + "plaatjes/logo-hover-IE.jpg";
	}else{
		preloadImg = new Image();
		preloadImg.src = theLocation + "plaatjes/logo-hover.jpg";
	}
	document.getElementById('logo').onmouseover = mouseOver;
	document.getElementById('logo').onmouseout = mouseOut;
	document.getElementById('logo').onclick = mouseClick;
}


function mouseOver(){
	this.style.cursor = "pointer";
	if(ie6){
		this.style.background = "url("+theLocation+"plaatjes/logo-hover-IE.jpg)";
	}else{
		this.style.background = "url("+theLocation+"plaatjes/logo-hover.jpg)";
	}
}

function mouseOut(){
	this.style.cursor = "auto";
	if(ie6){
		this.style.background = "url("+theLocation+"plaatjes/logo-IE.jpg)";
	}else{
		this.style.background = "url("+theLocation+"plaatjes/logo.jpg)";
	}
}

function mouseClick(){
	window.location = theLocation;
}

*/

var newwindow, x, y;

function openWindow(url,size){
	//alert(size);
	// 600 x 400 adressen
	// 740 x 500 fotos
	switch(size){

		case "adres":
			newwindow=window.open(url,'name','height=400,width=600,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		case "foto":
			newwindow=window.open(url,'name','height=500,width=768,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		case "map":
			newwindow=window.open(url,'name','height=220,width=768,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		case "kaart":
			newwindow=window.open(url,'name','height=600,width=500,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		case "plattegrond":
			newwindow=window.open(url,'name','height=550,width=700,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		case "kaartbakkeveen":
			newwindow=window.open(url,'name','height=480,width=600,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
		
		default:
			newwindow=window.open(url,'name','height=100,width=100,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no');
			break;
	}
	
	return false;
}

