 function langSwitch(lang, target) {
	var locat = window.location.href;
	
	// store suffix - may contain additional get-parameters
	var suffix=locat.substr(locat.indexOf('.html')+5,locat.length);

	if(target != '/') {
		if(locat.indexOf('index.html') == -1) {
			locat = target;
		} else {
			var pos = target.lastIndexOf('/')+1;
			locat=target.substring(0,pos)+'index.html';
		}
	}

	if(locat.indexOf('?changelang=') != -1) {
		locat = locat.replace(/\?changelang=1/,'');
		locat = locat.replace(/\?changelang=2/,'');
	}
	if(locat.indexOf('&changelang=') != -1) {
		locat = locat.replace(/\&changelang=1/,'');
		locat = locat.replace(/\&changelang=2/,'');
	}
	
	locat=locat+suffix;
	if(locat.indexOf('?') == -1) {
		locat=locat+'?changelang='+lang;
	} else {
		locat=locat+'&changelang='+lang;
	}

	window.location.href=locat;
}

                                    function getElHeight(el){
                                        if(ns4)return (el.document.height)? el.document.height : el.clip.bottom-el.clip.top;
                                        else if(ie4||ie5)return (el.style.height)? el.style.height : el.clientHeight;
                                        else return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
                                    }

                                    function getPageLeft(el){
                                        var x;
                                        if(ns4)return el.pageX;
                                        if(ie4||w3c){
                                            x = 0;
                                            while(el.offsetParent!=null){
                                                x+=el.offsetLeft;
                                                el=el.offsetParent;
                                            }
                                            x+=el.offsetLeft;
                                            return x;
                                        }
                                    }

                                    function getPageTop(el){
                                        var y;
                                        if(ns4)return el.pageY;
                                        if(ie4||w3c){
                                            y=0;
                                            while(el.offsetParent!=null){
                                                y+=el.offsetTop;
                                                el=el.offsetParent;
                                            }
                                            y+=el.offsetTop;
                                            return y;
                                        }
                                    }

                                    function scrollbox(){
                                        if(ns4){
                                            inner.top+=(godown)? pixelstep: -pixelstep;
                                            if(godown){
                                                if(inner.top>boxheight)inner.top=-elementheight;
                                            } else {
                                                if(inner.top<2-elementheight)inner.top=boxheight+2;
                                            }
                                        } else {
                                            inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
                                            if(godown){
                                                if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
                                            } else {
                                                if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
                                            }
                                        }
                                    }
