			var hilite_color = "#cc4411";
			var topHeight = 142;
			var botHeight = 48;
			var stageWidth;
			var stageHeight;
			var contentWidth=1000;
			var minHeight = 450;
			var minWidth = contentWidth+20;
			var platform;
			var browser;
			
			
			function kwSetup(){
				var a, b, x;
				
				if(navigator.appName == "Microsoft Internet Explorer"){
					browser = "IE";
					
				}
				if(navigator.appName == "Netscape"){
					browser = "NS";
				}
				if(navigator.appName == "Opera"){
					browser = "OP";
				}
				if(navigator.platform == "iPod" || navigator.platform == "iPhone" ){
					platform = "mobile";
				}
				var winVersion = detectWindowsVersion();
				if(navigator.appName == "Netscape" && navigator.platform == "Win32"){
					// FireFox, Safari unter Windows
					$('#main_menue a').css('font-weight', '600');
					$('#menue_sub a').css('font-weight', '600');
					$('#menue_sub_sub a').css('font-weight', '600');
					$('.top_grey_uc').css('font-weight', '600');
					$('.bold_grey').css('letter-spacing', '0');
					$('.bold_blue').css('letter-spacing', '0');
					$('h3').css('letter-spacing', '0');
				}
				
				
				//
				if (this.innerWidth){
					stageWidth = parent.innerWidth;
					stageHeight = parent.innerHeight;
					
				}  else if (document.body.offsetWidth){
					stageWidth =  document.body.offsetWidth;
					if (document.body.offsetHeight){
						stageHeight =  document.body.offsetHeight;
						
					} else if(document.documentElement.clientHeight)
					{
						stageHeight = document.documentElement.clientHeight;
					}
					
				}
				else if(document.documentElement.clientWidth)
				{
					stageWidth = document.documentElement.clientWidth;
				}
			
				//			CONTENT
				
				
				var a = document.getElementById('mid');
				var b = document.getElementById('cnt_area');
				if(stageHeight > minHeight && stageWidth > minWidth ){
					var val= Number(stageHeight - botHeight - topHeight -1);
					a.style.height = String(val)+"px";
					b.style.height = String(Number(val-4))+"px";
					b.style.overflow = "auto";
					if(flag_popup == 1){
						var c = document.getElementById('bg_popup');
						c.style.width = String(stageWidth)+"px";
						c.style.height = String(stageHeight)+"px";
						var c = document.getElementById('win_popup');
						c.style.top = Math.round(stageHeight/2 - 190) +"px";
						c.style.left = Math.round(stageWidth/2 - 320) +"px";
					}
				} else {
					a.style.height = "auto";
					b.style.height = "auto";
					
				}
				if(browser == "OP"){
					
				}
				if(browser == "IE"){
					
				}
				if(platform == "mobile"){
					a.style.height = "auto";
					b.style.height = "auto";
					
					//alert(document.height);
				}
			}
			//
			if (parent.window.innerWidth){
				parent.window.onresize = kwSetup;
			}
			
			
			//
			function kwPrint(){
				var a = document.getElementById('cnt_area');
				var btnPrint = document.getElementById('btnPrint');
				btnPrint.style.visibility = "hidden";
				a.style.height = "auto";
				cnt_area.print();
			}
			function kwLang(arg){
				
				if(navigator.platform == "Win32")
				{
					var splitter = "/";
					var arr = this.document.URL.split(splitter);
				} else {
					var splitter = "/";
				}
				var arr = this.document.URL.split(splitter);
				var doc_html = arr[arr.length-1];
				//alert("lang: "+doc_html +", "+arg +", "+navigator.platform);
				if(doc_html != "index.html"){
					this.document.location.href = "../"+arg+"/"+arr[arr.length-1];
				} else {
					this.document.location.href = "pages/en/loesungen_home.html";
				}
			}
			// 
			var flag_popup = 0;
			var popup_logo = "xxx";
			function kw_popup(ref, fa)
			{
					//alert(ref +" ---- "+fa);
					var c = document.getElementById('popup');
					c.style.visibility = "visible";
					c.style.overflow = "visible";
					c.style.position ="fixed";
					
					var c = document.getElementById('bg_popup');
					c.style.position ="absolute";
					c.style.top = "0px";
					c.style.left = "0px";
					if(platform == "mobile"){
						c.style.height = String(document.height)+"px";
						c.style.width = String(document.width)+"px";
					} else {
						c.style.width = String(stageWidth)+"px";
						c.style.height = String(stageHeight)+"px";
					}
										
					var c = document.getElementById('win_popup');
					c.style.position ="fixed";
					if(platform == "mobile"){
						c.style.top = Math.round(document.height/2 -190)+"px";
						c.style.left = Math.round(document.width/2 -320)+"px";
					} else {
						c.style.top = Math.round(stageHeight/2 - 190) +"px";
						c.style.left = Math.round(stageWidth/2 - 320) +"px";
					}
					
					c.src = ref;
					popup_logo = fa;
					
					
					flag_popup = 1;
			}
			function closePopup()
			{
				var c = document.getElementById('bg_popup');
				c.style.width = "10px";
				c.style.height = "10px";
				
				
				var c = document.getElementById('popup');
				c.style.width = "10px";
				c.style.height = "10px";
				c.style.visibility = "hidden";
				
				flag_popup = 0;
			};
			
			function detectWindowsVersion()
			{
				var n = navigator;
				var ua = ' ' + n.userAgent.toLowerCase();
				// find windows platform
				var is_win = ua.indexOf('win') > 0;
				var is_winnt4 = (ua.indexOf('nt 6.1') > 0 && ua.indexOf('win') > 0);
				if(is_winnt4)
				{
					return '7';
				} else {
					return 'xp';
				}	
			}
