function blendfunction (teambild, anfang, ende, moment) {
	

  if (typeof moment == 'undefined') {
    
	moment = anfang;
	
  }
	  if (typeof teambild.style.opacity != 'undefined') {
		    teambild.style.opacity = moment;
	        teambild.style.MozOpacity = moment;
	        teambild.style.KhtmlOpacity = moment;
	        teambild.style.filter = "alpha(opacity=" + (moment * 100) + ");";
	  		}
				  else if (typeof teambild.style.filter != 'undefined') {
						if (moment>0){
						teambild.style.visibility = "visible";
						} else {
							teambild.style.visibility = "hidden";
						}
					    teambild.style.opacity = moment;
				        teambild.style.MozOpacity = moment;
				        teambild.style.KhtmlOpacity = moment;
				        teambild.style.filter = "alpha(opacity=" + (moment * 100) + ");";
						}

  if (anfang > ende) {
    moment -= 0.1;
    moment = Math.round(moment * 100) / 100;
    	if (moment >= ende) {
      	setTimeout(function () { blendfunction(teambild, anfang, ende, moment); }, 20);
    }
  }

  else {
    moment += 0.1;
    moment = Math.round(moment * 100) / 100;
    if (moment <= ende) {
      setTimeout(function () { blendfunction(teambild, anfang, ende, moment); }, 20);
    }
  }
}
