<!--
var orighs=new Array();
var dopened=new Array();

document.write("<style type='text/css'>#fade {visibility:hidden;}</style>");

function initImage() {
	imageId = 'fade';
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = "visible";
	fadeIn(imageId,0);
}
function  fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 6;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
		}
	}
}
function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}
window.onload = function() {initImage()} ();


window.onload=function(){
	var divs=document.getElementsByTagName("div");
	for(var i=0;i<divs.length;i++){
		if(divs[i].className=="optionen_moelkau"){
			orighs[i]=divs[i].offsetHeight;
			dopened[i]=0;
			divs[i].id="optionen_moelkau"+i;
			divs[i].onclick=function(){
				var t=0,tid=parseInt(this.id.replace("optionen_moelkau",""));
				if(dopened[tid]==0){
					dopened[tid]=1;
					for(var i=this.getElementsByTagName("div")[0].offsetHeight;i<orighs[tid];i+=3){
						window.setTimeout('document.getElementById("'+this.id+'").style.height="'+i+'px"',t);
						t+=5;
					}
					window.setTimeout('document.getElementById("'+this.id+'").style.height="'+orighs[tid]+'px";dopened['+tid+']=2;',t);
				}
				if(dopened[tid]==2){
					dopened[tid]=1;
					for(var i=orighs[tid];i>this.getElementsByTagName("div")[0].offsetHeight;i-=3){
						window.setTimeout('document.getElementById("'+this.id+'").style.height="'+i+'px"',t);
						t+=5;
					}
					window.setTimeout('document.getElementById("'+this.id+'").style.height="'+this.getElementsByTagName("div")[0].offsetHeight+'px";dopened['+tid+']=0;',t);
				}
			}
			divs[i].style.height=divs[i].getElementsByTagName("div")[0].offsetHeight+'px';
		}
	}
}


-->

