document.write('<'+'script src="/js/prototype.js" type="text/javascript"'+'><'+'/script'+'>');
		function toggleIconIn (id, ad){
				 if (document.getElementById(id)){
						document.getElementById(id).style.display = 'block';
				}
				if (document.getElementById(ad)){
						document.getElementById(ad).style.color ="#999999";
				}
		}

		function toggleIconOut (id, ad){
				if (document.getElementById(id)){
						document.getElementById(id).style.display = 'none';
				}
				if (document.getElementById(ad)){
						document.getElementById(ad).style.color ="#cccccc";
				}
		}

		// Farbwechsel  weiss/ grau !!!!
		function setColor(x){
				x.style.backgroundColor ="#7caf00";
				}

		function clearColor(x){
				x.style.backgroundColor ="#99cc00";
				}

		function changeImageFromParent(uri,_this)
			{/*{{{*/
				if (!uri) return false;

				if (_this && _this.firstChild && _this.firstChild.tagName && _this.firstChild.tagName.toLowerCase) //DOM ?
					{
						if (_this.firstChild.tagName.toLowerCase() == 'img') // <img... ?
						_this.firstChild.src = uri;//set src="...">
						return true;
					}

				//IE 4+ (?)
				if (!window || !window.event || !window.event.srcElement || !window.event.srcElement.tagName) return false;
				if (window.event.srcElement.tagName.toLowerCase() != 'img') return false;
				window.event.srcElement.src = uri;
				return true;
			}/*}}}*/
		function changeImageFromSubmit(uri,_this)
			{/*{{{*/
				if (uri && _this && _this.src) _this.src = uri;
			}/*}}}*/

			
			
		
			
			
		function openWin(uri,w,h,l,t,_options)
			{
				if (!uri) return false;
				if (!w) w=400;
				if (!h) h=500;
				if (!l) l=10;
				if (!t) t=10;
				if (!_options)	_options='scrollbars=no,resizable=1,status=1';
				window.open(uri,"_blank","width="+w+",height="+h+",left="+l+",top="+t+","+_options) 
			}
		function tmt_winManage(id,c,x,y){
			var d=eval(id)==null||eval(id+".closed");
			if(!d){eval(id+"."+c+"("+x+","+y+")");}
		}

		function tmt_winControl(id,c){ 
			var d=eval(id)==null||eval(id+".closed");
			if(!d){eval(id+"."+c);}
		}

		function on(name){
			document[name].src = eval(name + "on.src");
		}
		function off(name){
			document[name].src = eval(name + ".src");
		}


		var NS = (document.layers) ? 1 : 0;
		var IE = (document.all) ? 1: 0;
		var DOM = (document.getElementById) ? 1: 0;


		function cm_bwcheck()
		{
			this.ver=navigator.appVersion
			this.agent=navigator.userAgent.toLowerCase()
			this.dom=document.getElementById?1:0
			this.ns4=(!this.dom && document.layers)?1:0;
			this.op=window.opera 
			this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
			this.ie=this.agent.indexOf("msie")>-1 && !this.op
			this.safari=(this.agent.indexOf("safari")>-1)
			if(this.op){
				this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
				this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
				this.op7=this.dom&&!this.op5&&!this.op6
			}else if(this.moz) this.ns6 = 1
			else if(this.ie){
				this.ie4 = !this.dom && document.all
			  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
			  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
			  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
			  	this.ie7 = document.all && !document.XMLHTTPObject
		  	
			}
			this.mac=(this.agent.indexOf("mac")>-1)
			this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
			this.usedom= this.ns6||this.op7
			this.reuse = this.ie||this.op7||this.usedom
			this.px=this.dom&&!this.op5?"px":""
			return this
		}

		var bw=new cm_bwcheck();
		
		function hideLayer(){
			document.getElementById('overlay').style.display = 'none';
			document.getElementById('layerProfil1').style.display = 'none';
			
			if (bw.ie && !document.documentElement.clientWidth) {
				setScroll(0,this.yPos);
				prepareIE("auto", "auto");
				toggleSelects('visible');
			}
		}		
			
		function showLayer(){
			hideLayer();
			document.getElementById('overlay').style.display = 'block';
			document.getElementById('layerProfil1').style.display = 'block';
			
			if (bw.ie && !document.documentElement.clientWidth) {
				getScroll();
				prepareIE('100%', 'hidden');
				setScroll(0,0);
				toggleSelects('hidden');
			}
			
		} 
		
		
		function showLayerProfil (id) {
			
		
			$('proflayTitle').innerHTML = $('title_'+id).innerHTML;
			$('proflayText').innerHTML = $('text_'+id).innerHTML;
			$('proflayFile').innerHTML = $('file_'+id).innerHTML;
			
			showLayer();
			
		}
			
		function prepareIE(height, overflow){
				bod = document.getElementsByTagName('body')[0];
				bod.style.height = height;
				bod.style.overflow = overflow;

				htm = document.getElementsByTagName('html')[0];
				htm.style.height = height;
				htm.style.overflow = overflow; 
		}

		function getScroll(){
				if (self.pageYOffset) {
					this.yPos = self.pageYOffset;
				} else if (document.documentElement && document.documentElement.scrollTop){
					this.yPos = document.documentElement.scrollTop; 
				} else if (document.body) {
					this.yPos = document.body.scrollTop;
				}
		}
				
		function setScroll(x, y){
				window.scrollTo(x, y); 
		}
	
			
		function toggleSelects(visibility){
				selects = document.getElementsByTagName('select');
				for(i = 0; i < selects.length; i++) {
					selects[i].style.visibility = visibility;
				}
		}			
			


