/*********************************************/ function changeBigPic(n) { showBigPic(picBigIndex += n); } /*********************************************/ function changeSmallPic(n) { showSmallPic(picSmallIndex += n); } /*********************************************/ function showSmallPic(n) { picBigIndex=picSmallIndex; if (n > (bildUrlSmall.length-1)) {picSmallIndex = 0} if (n < 0) {picSmallIndex = (bildUrlSmall.length-1)}; document.getElementById("picSmall").style.backgroundImage="url("+bildUrlSmall[picSmallIndex]+")"; document.getElementById("picSmall").setAttribute("onclick","showBigPic("+picBigIndex+");"); if(bildTitel[picSmallIndex]!="") { document.getElementById("picCaptionSmall").innerHTML=bildTitel[picSmallIndex]; } else { document.getElementById("picCaptionSmall").innerHTML=" "; } } /*********************************************/ function showBigPic(n) { $("#Loader").show("fast", function() { if (n > (bildUrlBig.length-1)) {picBigIndex = 0} if (n < 0) {picBigIndex = (bildUrlBig.length-1)}; document.getElementById('BildSrc').innerHTML= ""; document.getElementById('BigPic').style.display='block'; document.getElementById('AnzBilder').innerHTML="Bild "+(picBigIndex+1)+" von "+bildUrlBig.length; if(bildTitel[n]!="") { document.getElementById('BildTitel').innerHTML=bildTitel[picBigIndex]; } else { document.getElementById('BildTitel').innerHTML=""; } $("#Loader").fadeOut(100); }); }
 
 
 
 
 

TOP