function getArguments(){
	var thisUrl = new String(document.location);
	if(thisUrl.indexOf("?") != -1){
		return(thisUrl.substring(thisUrl.indexOf("?")));
	}
	return("");
}
flash = false;
function setFlash(){
	flash = true;
}
function launchIfFlash(){
	if(flash){
		launchSite();
	}else{
		document.location = "noflash.html";
	}
}
function launchSite(version){
	var url = "standard/main.asp?version="+version; //+getArguments();
	// set default scrollbars property
	var scrollbars = "1";
	
	var popupwidth = 772;
	var popupheight = 580;
	
	var xpos = (screen.availWidth-popupwidth)/2;
	var ypos = (screen.availHeight-popupheight)/2;
	
	// Temporarily set scrollbars property = 0 manually
	var scrollbars = "0";
	
	var popupvenster = window.open(url,"popup","width="+popupwidth+",height="+popupheight+",screenX="+xpos+",screenY="+ypos+",status=0,scrollbars="+scrollbars);
	popupvenster.resizeTo(popupwidth, popupheight);
	popupvenster.moveTo(xpos, ypos);
	popupvenster.resizeTo(popupwidth, popupheight);
	popupvenster.focus();
		// 
	setTimeout('gotoThanks()', '5000');
}

function gotoThanks(){
	document.location = "standard/thanks.asp";
}