var popupvenster;
function launchSite(){
	var url = "frames.html";
	var popupheight = 789;//hou rekening met de status en top
	var popupwidth = 1024;//1024

	if(navigator.appVersion.indexOf("Mac") != -1){
		if(navigator.userAgent.indexOf("Safari") != -1){
			var popupwidth = 1018;
			var popupheight = 740;
		}else if(navigator.userAgent.indexOf("MSIE") != -1){
			var popupwidth = 1018;
			var popupheight = 717;
		}else{//firefox on mac
			var popupwidth = 1018;
			var popupheight = 733;
		}
	} else{ //windows
		if(navigator.userAgent.indexOf("Firefox/") != -1){ //firefox
			var popupheight = 748;
		}else{
			var popupheight = 744; //IE
			}
		var popupwidth = 1024;
	}
	
	
	if((screen.availWidth > 1 && screen.availWidth < popupwidth) || window.screen.height < popupheight){
		document.location = "resolution.php";
		return;
	}
	var xpos = (screen.availWidth-popupwidth)/2;
	var ypos = (screen.availHeight-popupheight)/2;
	if(xpos<0)xpos=0;
	if(ypos<0)ypos=0;
	//url = url + popupheight + "&w=" + popupwidth;
	
	
	//!!IE & Firefox kunnen de status niet weglaten
	//dus windows maken we iets langer
	//if(navigator.appVersion.indexOf("Mac") == -1) popupheight += 30;
		
	popupvenster = window.open(url,"popup","width="+popupwidth+",height="+popupheight+",screenX="+xpos+",screenY="+ypos+",status=0,status=no,scrollbars=0,resizable=no");
	popupvenster.resizeTo(popupwidth, popupheight);
	popupvenster.moveTo(xpos, ypos);
	popupvenster.resizeTo(popupwidth, popupheight);
	popupvenster.focus();
	setTimeout('gotoThanks()', '5000');
}
function gotoThanks(){
	document.location = "thanks.html";
}

window.status = "Golf Attribute.";