

var pos = 2;
var oc=0;
var start=1;
anzahl = new Array(11);







function fadeIn()
{
document.all.bild1.style.filter="Alpha(opacity="+oc+", finishopacity="+oc+", style=2)";
if(oc!=100) setTimeout('oc++;fadeIn()',10);
else setTimeout("fadeOut()",3000);
}



function fadeOut()
{
document.all.bild1.style.filter="Alpha(opacity="+oc+", finishopacity="+oc+", style=2)";
if(oc!=0) setTimeout('oc--;fadeOut()',10);
else setTimeout("changepic()",10);
}


function changepic()
{
document.all.bild1.src = anzahl[pos];
pos= pos + 1;
if(pos == 12) pos = 1;
window.setTimeout("fadeIn()", 10);
}



function fadeInelse()
{
document.all.bild1.style.opacity=oc/100;
if(oc!=100) setTimeout('oc++;fadeInelse()',10);
else setTimeout("fadeOutelse()",3000);
}

function fadeOutelse()
{
document.all.bild1.style.opacity=oc/100;
if(oc!=0) setTimeout('oc--;fadeOutelse()',10);
else setTimeout("changepicelse()",10);
}


function changepicelse()
{
document.all.bild1.src = anzahl[pos];
pos= pos + 1;
if(pos == 12) pos = 1;
window.setTimeout("fadeInelse()", 10);
}


function checkbrowser()
{




if(start == 1)
{
var str = document.all.bild1.src;
str = str.replace(/012_Animation.jpg/g , "");
anzahl[1] = str + "012_Animation.jpg";
anzahl[2] = str + "013_Animation.jpg";
anzahl[3] = str + "014_Animation.jpg";
anzahl[4] = str + "015_Animation.jpg";
anzahl[5] = str + "016_Animation.jpg";
anzahl[6] = str + "017_Animation.jpg";
anzahl[7] = str + "018_Animation.jpg";
anzahl[8] = str + "019_Animation.jpg";
anzahl[9] = str + "020_Animation.jpg";
anzahl[10] = str + "021_Animation.jpg";
anzahl[11] = str + "022_Animation.jpg";

start = 0;
}




if (navigator.appName == "Microsoft Internet Explorer") fadeIn();
else fadeInelse();


}


