
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function internetal_floatdiv(id, sx, sy) {
		
		sx = 17;
		sy = 100;
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		var px = document.layers ? "" : "px";
		window[id + "_obj"] = el;
		if(d.layers)el.style=el;
		el.cx = el.sx = sx;el.cy = el.sy = sy;
		el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

		el.floatIt=function()
		{
			var pX, pY;
			pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
			document.documentElement && document.documentElement.clientWidth ? 
			document.documentElement.clientWidth : document.body.clientWidth;
			pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
			document.documentElement.scrollTop : document.body.scrollTop;
			if(this.sy<0) 
			pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
			document.documentElement.clientHeight : document.body.clientHeight;
			this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
			this.sP(this.cx, this.cy);
			setTimeout(this.id + "_obj.floatIt()", 40);
		}
		
		return el;
		
	}

	
	var lastmenuid;
	function showmenu (menuid, menutitel) {
		hidemenu();
		showmenu1 (menuid, menutitel);
		lastmenuid = menuid;
	}
	function hidemenu (menucolor) {
		if (lastmenuid) {
			hidemenu1 (lastmenuid, menucolor);
		} 
		lastmenuid = '';
	}
	
	function showmenuimg (menuid, status) {
		eval("document.'+menuid+'.src = '../abbbg/video_button_'+status+'.png'");
	}
	
	function showmenu1 (menuid, menutitel) {
		if (menuid) {	
			
		}
	}
	function hidemenu1 (hidemenuid, menucolor) {
		
	}
	function showpage (template, contentfile, dateiname) {
		self.location = 'http://www.jnf-kkl.de/d/' + dateiname + '.htm';
	}
	
	
	
	
	

	function showdiv(divnew) {	
		if (divold) {		
			showhidediv(divold,0);
		}
		showhidediv(divnew,1);
		divold = divnew;
	}
	
	
	function showhidediv(id,show) {
		var div =  'DIV' + id;
		var li = 'li' + id;	
		var liborder  = '1px solid #e7decf';
		var lifontweight  = 'normal';
		var divvis = new Array ('none','none');
		if (show == 1) {
			var liborder  = '1px solid #26a83a';
			var lifontweight  = 'bold';
			var divvis = new Array ('inline','inline');
		}
		if (document.layers) {
			document.layers[div].display = divvis[0];
			document.layers[li].borderBottom = liborder;	
			document.layers[li].fontWeight = lifontweight		
		}
		else if (document.all) {	
			document.all[div].style.display = divvis[0];
			document.all[li].style.borderBottom = liborder;	
			document.all[li].style.fontWeight = lifontweight					
		}
		else {			
			document.getElementById(div).style.display = divvis[1];
			document.getElementById(li).style.borderBottom = liborder;	
			document.getElementById(li).style.fontWeight = lifontweight;
		}
	}
	
	function showdivinput (divtoshow){
		var status = 'none';
		if (document.urkundeformular.showurkundeformular.checked) {
			status = 'inline';
		}
		if (document.layers) {
			document.layers[divtoshow].display = status;
		}
		else if (document.all) {	
			document.all[divtoshow].style.display = status;
		}
		else {
			document.getElementById(divtoshow).style.display = status;
		}
			
	}
	function formular (divtoshow){
		if (document.layers) {
			document.layers[divtoshow].visibility = 'hide'; 
			document.layers[divtoshow].zIndex = 0;
			document.layers['opak'].visibility = 'hide'; 
			document.layers['opak'].zIndex = 0; 
		}
		else if (document.all) {
			document.all[divtoshow].style.visibility = 'hidden';
			document.all[divtoshow].style.zIndex = 0;
			document.all['opak'].style.visibility = 'hidden';
			document.all['opak'].style.zIndex = 0; 
		}
		else {
			document.getElementById(divtoshow).style.visibility = 'hidden';
			document.getElementById(divtoshow).style.zIndex = 0; 
			document.getElementById('opak').style.visibility = 'hidden';
			document.getElementById('opak').style.zIndex = 0; 
		}
	}

	
	

	
	var topbanner = new Array ('bannertop_2_sw.jpg', 'bannertop_2.jpg', 'bannertop_1.jpg');
	var phase = 0;
	var phasenext = phase +1;
	
	function fadebg(step) {	
		document.images.topbanner2.src = '../abb3/' + topbanner[phase];
		if (document.all) {	
			eval("topbanner2.style.filter = 'alpha(opacity=100)'");
		}
		else {
			document.images['topbanner2'].style.opacity = 1;
		}
		document.images['topbanner2'].style.opacity = 1;
		document.images.topbanner1.src = '../abb3/' + topbanner[phasenext];
		startfade = window.setTimeout(function () { fadebg2(step); }, 1000);	
	}

	function fadebg2(step) {
		clearTimeout(startfade);
		step = step || 0;
		step = step + 1;
		if (step <= 100) { 	
		 	if (document.all) {	
				eval("topbanner2.style.filter = 'alpha(opacity=" + (100-step) + ")'");
			}
			else {
				document.images['topbanner2'].style.opacity = (100-step)/100;
			}
			fade=window.setTimeout(function () { fadebg2(step); }, 1);
		}
		else {
			clearTimeout(fade);
			phase++;
			if (phase == topbanner.length) {
				phase = 0;
			}
			phasenext = phase +1;
			if (phasenext == topbanner.length) {
				phasenext = 0;
			}
			step = 0;
			fadebg(step);
		}
	}
	
