			function openPage(page, width, height, sBar) {
				var w, h;
				var agt = navigator.userAgent.toLowerCase();
				var isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
				var isMac = (navigator.appVersion.indexOf("Mac") != -1);
		
				w = (screen.availWidth ? screen.availWidth : 800);
				h = (screen.availHeight ? screen.availHeight : 600);
		
				var winObj = window.open("/"+page,"mini","left="+Math.round((w-width)/2)+",top="+Math.round((h-height)/2)+",width="+width+",height="+height+",fullscreen=no,scrollbars="+sBar);
			}
			function Pop(page){
				switch(page){
				case "test":
					openPage("test.html", 350, 550, "yes");
				break;
								
				default:
				break;
				}
			}

			
			var hwin= null;
			var fwin = null;
			
		   	function enterFoo(){
				openFullScreen();
				//if (screen.width > 1024) openPopup();
				//else openFullScreen();
				//location.href = "thanks.html";
			}
			function enterFoo_en(){
				openFullScreen_en();
				//if (screen.width > 1024) openPopup();
				//else openFullScreen();
				//location.href = "thanks.html";
			}
			function openPopup(){
				var popwidth=1024
				var isMac = (navigator.appVersion.indexOf("Mac") != -1);
				var winl = (screen.width-popwidth)/2;
				var wint = (screen.height-700)/2;
				if (isMac) wint += 30; // 20
				else {
					wint -= 20;
					winl -= 10;
				}
				settings='height='+700+',width='+popwidth+',top='+wint+',left='+winl+',toolbar=no, location=no, menubar=no, status=no, scrollbars=yes, resizable=no'
				fwin=window.open('main_de.html','.:Tag7:.',settings)
				if(parseInt(navigator.appVersion) >= 4){fwin.window.focus();}
			}	
			function openFullScreen() {	
				var width, height;
				var agt = navigator.userAgent.toLowerCase();
				var isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
				var isMac = (navigator.appVersion.indexOf("Mac") != -1);
		
				width = (screen.availWidth ? screen.availWidth : 800);
				height = (screen.availHeight ? screen.availHeight : 600);
		
				height -= 35; // -20 
		
				if (isMac) height += 30; // 20
				else width -= 10;
				
				url = "main_de.htm";
		
				var winObj = window.open(url,"Tag7","left=0,top=0,width=" + width + ",height=" + height + ",fullscreen=no, scrollbars=auto");
				if(winObj && isMac && winObj.moveTo && winObj.resizeTo) {
					winObj.moveTo(0, 0);
					winObj.resizeTo((width), height);
					winObj.focus();
				}
				
			}
			function openFullScreen_en() {	
				var width, height;
				var agt = navigator.userAgent.toLowerCase();
				var isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
				var isMac = (navigator.appVersion.indexOf("Mac") != -1);
		
				width = (screen.availWidth ? screen.availWidth : 800);
				height = (screen.availHeight ? screen.availHeight : 600);
		
				height -= 35; // -20 
		
				if (isMac) height += 30; // 20
				else width -= 10;
				
				url = "main_en.htm";
		
				var winObj = window.open(url,"Tag7","left=0,top=0,width=" + width + ",height=" + height + ",fullscreen=no, scrollbars=auto");
				if(winObj && isMac && winObj.moveTo && winObj.resizeTo) {
					winObj.moveTo(0, 0);
					winObj.resizeTo((width), height);
					winObj.focus();
				}
				
			}
			
			function updateFlash(){
					document.title = document.title.slice(0, 47) + " - Flash Player Installation";
			}
			
		
