<!-- Geschwindigkeit der Diashow einstellen (Millisekunden) -->
var slideShowSpeed = 6000;

<!-- Dauer der Ueberblendung (Sekunden) -->
var crossFadeDuration = 10;

var Pic = new Array();
Pic[0] = 'img/siegel1.gif';
Pic[1] = 'img/siegel2.gif';
Pic[2] = 'img/siegel3.gif';
Pic[3] = 'img/siegel4.gif';
Pic[4] = 'img/siegel5.gif';

var Logo = new Array();
Logo[0] = 'img/bank1.gif';
Logo[1] = 'img/bank2.gif';
Logo[2] = 'img/bank3.gif';
Logo[3] = 'img/bank4.gif';
Logo[4] = 'img/bank5.gif';
Logo[5] = 'img/bank6.gif';
Logo[6] = 'img/bank7.gif';
Logo[7] = 'img/bank8.gif';
Logo[8] = 'img/bank9.gif';
Logo[9] = 'img/bank10.gif';
Logo[10] = 'img/bank11.gif';
Logo[11] = 'img/bank12.gif';
Logo[12] = 'img/bank13.gif';
Logo[13] = 'img/bank14.gif';
Logo[14] = 'img/bank15.gif';
Logo[15] = 'img/bank16.gif';
Logo[16] = 'img/bank17.gif';
Logo[17] = 'img/bank18.gif';
Logo[18] = 'img/bank19.gif';
Logo[19] = 'img/bank20.gif';
Logo[20] = 'img/bank21.gif';

<!-- Unterhalb dieser Zeile nichts aendern -->
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
var l = Logo.length;
var preLoadL = new Array();
for (i = 0; i < l; i++) {
preLoadL[i] = new Image();
preLoadL[i].src = Logo[i];
}

function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}

function runSlideShow1() {
if (document.all) {
document.images.SlideShow1.style.filter="blendTrans(duration=2)";
document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow1.filters.blendTrans.Apply();
document.images.SlideShow2.style.filter="blendTrans(duration=2)";
document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow2.filters.blendTrans.Apply();
document.images.SlideShow3.style.filter="blendTrans(duration=2)";
document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow3.filters.blendTrans.Apply();
document.images.SlideShow4.style.filter="blendTrans(duration=2)";
document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow4.filters.blendTrans.Apply();
document.images.SlideShow5.style.filter="blendTrans(duration=2)";
document.images.SlideShow5.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow5.filters.blendTrans.Apply();
}
document.images.SlideShow1.src = preLoadL[j].src;
j = j + 1;
if (j > (l - 1)) j = 0;
document.images.SlideShow2.src = preLoadL[j].src;
j = j + 1;
if (j > (l - 1)) j = 0;
document.images.SlideShow3.src = preLoadL[j].src;
j = j + 1;
if (j > (l - 1)) j = 0;
document.images.SlideShow4.src = preLoadL[j].src;
j = j + 1;
if (j > (l - 1)) j = 0;
document.images.SlideShow5.src = preLoadL[j].src;
j = j + 1;
if (j > (l - 1)) j = 0;
if (document.all) {
document.images.SlideShow1.filters.blendTrans.Play();
document.images.SlideShow2.filters.blendTrans.Play();
document.images.SlideShow3.filters.blendTrans.Play();
document.images.SlideShow4.filters.blendTrans.Play();
document.images.SlideShow5.filters.blendTrans.Play();
}
t = setTimeout('runSlideShow1()', slideShowSpeed);
}

function bookFav() {
var el = document.getElementById('bookmark');	
if(el) {
//myURL = window.location.href; /* gets url of page to bookmark */
//myTitle = document.title; /* gets title of page */
myURL = 'http://www.baufinanzierungrechner.info';
myTitle = 'Baufinanzierungsrechner.info';
//alert(myURL);
//alert(myTitle);
el.onClick = addFav(myURL,myTitle); /* this event is supposed to open the bookmark dialog */
}
}
function addFav(aURL,aTitle) {
if (document.all) { /* is this MSIE? */
window.external.AddFavorite(aURL,aTitle); /* if yes then call bookmark for MSIE */
} else if (window.sidebar) {
window.sidebar.addPanel(aTitle,aURL,''); /* else call bookmark for NS and FF */
} else { 
alert('Bitte fügen Sie die Seite manuell hinzu!'); 
}
}
