var hoehe = 612;
var weite = 958;

var lay_cont =	self.document.getElementById("code_cont");
var lay1_cont =	self.document.getElementById("cont");
var bgo1 = self.document.getElementById("bgo1");
var bgo2 = self.document.getElementById("bgo2");
if (navigator.userAgent.indexOf("MSIE") == -1){
		var hoehe = window.innerHeight;
		 var lay0 = self.document.getElementById("cont_txt");
		 var lay1 = self.document.getElementById("lang_c");
		 var lay2 = self.document.getElementById("lang_ue");
		 var lay3 = self.document.getElementById("search_c");
		 var lay4 = self.document.getElementById("search_ue");
		 var lay5 = self.document.getElementById("world");
		 
				 
		 if (lay0 != null) {		 
		 		//lay.style.MozOpacity = 10/100;
				//lay0.style.height = "440px";
				/*lay1.style.width="238px";
				lay2.style.width="240px";
				lay3.style.width="238px";
				lay4.style.width="240px";
				/*lay2.style.top="430px";
				lay1.style.top="449px";
				lay4.style.top="495px";
				lay3.style.top="513px";*/
			}
		//self.document.cont_txt.vopacity(10);
		
		
		if (lay_cont != null) {		 
			
			lay_cont.style.height = window.innerHeight - 110;
			lay1_cont.style.height = window.innerHeight - 110;
		}
		if (bgo1 != null) {		 
		if (document.body.offsetWidth > 850){
			bgo1.style.width = window.innerWidth ;
			bgo2.style.width = window.innerWidth ;
		}
		
		
	}
				
}
		
	if (lay_cont != null) {		 
		
		lay_cont.style.height = document.body.offsetHeight - 115;
		lay1_cont.style.height = document.body.offsetHeight - 115;
	}
	
	if (bgo1 != null) {		 
		if (document.body.offsetWidth > 850){
			bgo1.style.width = document.body.offsetWidth;
			bgo2.style.width = document.body.offsetWidth;
		}
		
	}
	
	 function reDo(){ 
	 	if(navigator.userAgent.indexOf("MSIE") != -1) {
			hoehe = document.body.offsetHeight;
			weite = document.body.offsetWidth;
		}else{
			hoehe = window.innerHeight;
			weite = window.innerWidth;
		}
	 var jetzt = top.content.location.pathname;
	 var jetzt2 = top.content.location.search;
	 //alert (hoehe);
	 if (hoehe > 500 && weite > 850){
	 	regexp1 = "800600";
	 	regexp2 = "86";
	 	jetzt = jetzt.replace(regexp1,"")
	 	jetzt = jetzt.replace(regexp2,"")
	 	jetzt2 = jetzt2.replace(regexp1,"")
	 	jetzt2 = jetzt2.replace(regexp2,"")
	 }else{
		 regexp1 = "che-jsp.jsp";
		 regexp2 = "cont.jsp";
		 jetzt = jetzt.replace(regexp1,"che-jsp800600.jsp")
		 jetzt = jetzt.replace(regexp2,"cont86.jsp")
		 jetzt2 = jetzt2.replace(regexp1,"che-jsp800600.jsp")
		 jetzt2 = jetzt2.replace(regexp2,"cont86.jsp")
	 }
	 //alert ("index.jsp?cont=" + jetzt + jetzt2)
	 top.location.href = "index.jsp?cont=" + escape(jetzt + jetzt2);
	 }
    //window.onresize = reDo;
    
    
    function topDo(){ 
	 	if(navigator.userAgent.indexOf("MSIE") != -1) {
			hoehe = document.body.offsetHeight;
			weite = document.body.offsetWidth;
		}else{
			hoehe = window.innerHeight;
			weite = window.innerWidth;
		}
	 var jetzt = top.location.pathname;
	 var jetzt2 = top.location.search;
	 //alert (hoehe);
	 if (hoehe > 500 && weite > 850){
	 	regexp1 = "800600";
	 	regexp2 = "86";
	 	jetzt = jetzt.replace(regexp1,"")
	 	jetzt = jetzt.replace(regexp2,"")
	 	jetzt2 = jetzt2.replace(regexp1,"")
	 	jetzt2 = jetzt2.replace(regexp2,"")
	 }else{
		 regexp1 = "che-jsp.jsp";
		 regexp2 = "cont.jsp";
		 jetzt = jetzt.replace(regexp1,"che-jsp800600.jsp")
		 jetzt = jetzt.replace(regexp2,"cont86.jsp")
		 jetzt2 = jetzt2.replace(regexp1,"che-jsp800600.jsp")
		 jetzt2 = jetzt2.replace(regexp2,"cont86.jsp")
	 }
	 //alert ("index.jsp?cont=" + jetzt + jetzt2)
	 top.location.href = "index.jsp?cont=" + escape(jetzt + jetzt2);
	 }
    
	if (window == window.top){topDo();}

	
	function replacer(text){
	text2 = "";
	 for (i = 0; i < text.length; i++) {
	        c = text.charAt(i);
	        switch (c) {
	            case '<':
	                text2 += "&lt;";
	                break;
	            case '&':
	                text2 += "&amp;";
	                break;
	            case '>':
	               text2 += "&gt;";
	                break;
	                case 'ü':
	                text2 += "&#252;";
	                break;
	             case 'ä':
	                text2 += "&#228;";
	                break;
	            case 'ö':
	               text2 += "&#246;";
	                break;
	            case 'ß':
	               text2 += "&#223;";
	                break;
	              case 'Ä':
	                text2 += "&#196;";
	                break;
	            case 'Ö':
	                text2 += "&#214;";
	                break;
	            case 'Ü':
	                text2 += "&#220;";
	                break;
	            case '"':
	                text2 += "&quot;";
	                break;
	            case '’':
	                text2 += "&#39;";
	                break;
	            case '©':
	                text2 += "&#169;";
	                break;
	            case '®':
	               text2 += "&#174;";
	                break;

	            default:
	                text2 += c;
	                break;
	        }
	    }
	    return text2;
	
	}		
