// mh 30.11.2006

var GOS={
	getLang:function(){
		return document.getElementsByTagName("body")[0].parentNode.lang?document.getElementsByTagName("body")[0].parentNode.lang:"de";
	},
	
	sChars:function(sct,mtyp){
		//	Beispiel:
		//	sChars("F(ue)r Br(oe)nnimann: bitte (Ue)berpr(ue)fen","js")

		if(sct.indexOf("(")<0){return sct}
		
		aIn=new Array("(Oe)","(oe)","(Ae)","(ae)","(Ue)","(ue)","(Eg)","(eg)","(Ea)","(ea)","(Oc)","(oc)"," ")
		switch(mtyp){
			case "js":
			if(jslib.browser.safari){
				aOut=new Array("Ö","ö","Ä","ä","Ü","ü","È","è","E","é","Ô","ô"," ")
			}else{
				aOut=new Array("%d6","%f6","%c4","%e4","%dc","%fc","%c8","%e8","%c9","%e9","%d4","%f4"," ")
			}
			break
			case "html":
			aOut=new Array("&Ouml;","&ouml;","&Auml;","&auml;","&Uuml;","&uuml;","&Egrave;","&egrave;","&Eacute;","&eacute;","&Ocirc;","&ocirc;"," ")
		}
		for(rL=0;rL<aIn.length;rL++){
			sct=replaceAll(sct,aIn[rL],aOut[rL])
		}
		if(mtyp=="js"){sct=unescape(sct)}
		return sct
	},

	
	gt:function(p1,p2,p3,p4,p5,lang,mode){
		//	DE,FR,IT,RO,EN

		var p1,p2,p3,p4,p5;
		if(!mode){mode="js"}

		if(!lang){lang=this.getLang();}

		switch(lang){
			case "de":
				return(this.sChars(p1,mode));
			
			case "fr":
				return(this.sChars(p2,mode));
			
			case "it":
				return(this.sChars(p3,mode));
			
			case "ro":
				return(this.sChars(p4,mode));
			
			case "en":
				return(this.sChars(p5,mode));
			
			default:
				return(p1);
		}
	}
}