<!--

// script formulier popup

function formulier(page) {
				LeftPosition = (screen.width) ? (screen.width-660)/2 : 0;
				Height = (screen.height) ? (screen.height-200) : 0;			
				if ( Height >= 690 ){
					Height=690;
				}					
				TopPosition = (screen.height) ? (screen.height-Height)/2-20 : 0;						
				var popup=window.open(page,"formulier","height="+Height+",width=660,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}
}


// scripts voor popup

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;

function intro() {
	if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==4))     {
		skip();
	} else {
		popup();
	}
}

function skip() {
	width= window.screen.width-10;
	height = window.screen.height-50;
	if (screen.width == 800) {
		var popup = window.open('index800.php','Anton','top=,left=,width='+width+',height='+height+',resizable=no,scrollbars=no,toolbar=no,status=no');
				if (popup) {} else {
				   location.href=sitePage;
				}
	} else if (screen.width == 1024) {
		var popup = window.open('index1024.php','Anton','top=,left=,width='+width+',height='+height+',resizable=no,scrollbars=no,toolbar=no,status=no');
				if (popup) {} else {
				   location.href=sitePage;
				}
	} else if (screen.width == 1280) {
		var popup = window.open('index1280.php','Anton','top=,left=,width='+width+',height='+height+',resizable=no,scrollbars=no,toolbar=no,status=no');
				if (popup) {} else {
				   location.href=sitePage;
				}		
	} else if (screen.width > 1280) {
		var popup = window.open('index1280.php','Anton','top=,left=,width='+width+',height='+height+',resizable=no,scrollbars=no,toolbar=no,status=no');
				if (popup) {} else {
				   location.href=sitePage;
				}		
	} else {
		location.href=sitePage;
	}
}

function popup() {
	version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
	if (version >= 4)
	version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
	if (version >= 4) {
		if (navigator.appName=="Netscape") {
			skip()
		}
		if (navigator.appName=="Microsoft Internet Explorer") {
			if (screen.width <= 800) {
				LeftPosition =  (screen.width) ? (screen.width-760)/2 : 0;
				TopPosition =   (screen.height) ? (screen.height-410)/2 : 0;
				var popup=window.open("index800.php","screen","height=410,width=760,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}
			} else if (screen.width <= 1279) {
				LeftPosition = (screen.width) ? (screen.width-1005)/2 : 0;
				TopPosition = (screen.height) ? (screen.height-600)/2 : 0;			
				var popup=window.open("index1024.php","screen","height=600,width=1005,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}			
			} else if (screen.width == 1280) {
				LeftPosition = (screen.width) ? (screen.width-1220)/2 : 0;
				TopPosition = (screen.height) ? (screen.height-670)/2 : 0;			
				var popup=window.open("index1280.php","screen","height=670,width=1220,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}
			} else if (screen.width > 1280) {
				LeftPosition = (screen.width) ? (screen.width-1220)/2 : 0;
				TopPosition = (screen.height) ? (screen.height-670)/2 : 0;
				var popup=window.open("index1280.php","screen","height=670,width=1220,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}
			} else {
				location.href=sitePage;
			}
		}
	} else {
		location.href=sitePage;
	}
}

function inwindowintro() {
	if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==4))     {
		inwindowskip();
	} else {
		inwindowpopup();
	}
}

function inwindowskip() {
	width= window.screen.width-10;
	height = window.screen.height-50;
	if (screen.width == 800) {
		location.href="index800.php";
	} else if (screen.width == 1024) {
		location.href="index1024.php";
	} else if (screen.width == 1280) {
		location.href="index1280.php";
	} else if (screen.width > 1280) {
		location.href="index1280.php";
	} else {
		location.href="index1024.php";
	}
}

function inwindowpopup() {
	version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
	if (version >= 4)
	version = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
	if (version >= 4) {
		if (navigator.appName=="Netscape") {
			skip()
		}
		if (navigator.appName=="Microsoft Internet Explorer") {
			if (screen.width <= 800) {
				location.href="index800.php";
			} else if (screen.width <= 1279) {
				location.href="index1024.php";
			} else if (screen.width == 1280) {
				location.href="index1280.php";
			} else if (screen.width > 1280) {
				location.href="index1280.php";
			} else {
				location.href="index1024.php";
			}
		}
	} else {
		location.href="index1024.php";
	}
}

function tune() {
				LeftPosition = (screen.width) ? (screen.width-550)/2 : 0;
				Height = 450;							
				TopPosition = (screen.height) ? (screen.height-Height)/2-20 : 0;						
				var popup=window.open("tunecar.html","tune","height="+Height+",width=550,resizable=no,scrollbars=no,toolbar=no,status=no,top="+TopPosition+",left="+LeftPosition);//,left="+left+",top="+height);
				if (popup) {} else {
				   location.href=sitePage;
				}
}

// -->
