//Neues Fenster1
function show1(url) {
        w = 660;
        h = 500;
        x = 50;
        y = 50;
        features = "width=" + w + ",height=" + h + ",scrollbars=yes,resizable=yes";
        msgWdw = open(url,"msg",features);
}

var photos=new Array()
var photoslink=new Array()
var which=0

//Bilder definieren: Sie koennen beliebig viele Bilder einsetzen. Die Bilder muessen die gleiche Groesse haben
photos[0]="/pics/1.jpg"
photos[1]="/pics/2.jpg"
photos[2]="/pics/3.jpg"
photos[3]="/pics/4.jpg"
photos[4]="/pics/5.jpg"
photos[5]="/pics/6.jpg"
photos[6]="/pics/7.jpg"
photos[7]="/pics/8.jpg"
photos[8]="/pics/9.jpg"
photos[9]="/pics/10.jpg"


//Sollen die Bilder verlinkt sein oder nicht ? (1=verlinkt , 0=ohne Links)
var linkoderkeinlink=1

//Legen Sie hier die URLs fest. (Aber nur wenn die Variable linkoderkeinlink gleich "1" ist)
photoslink[0]="javascript:show1('show/bild1.html')"
photoslink[1]="javascript:show1('show/bild2.html')"
photoslink[2]="javascript:show1('show/bild3.html')"
photoslink[3]="javascript:show1('show/bild4.html')"
photoslink[4]="javascript:show1('show/bild5.html')"
photoslink[5]="javascript:show1('show/bild6.html')"
photoslink[6]="javascript:show1('show/bild7.html')"
photoslink[7]="javascript:show1('show/bild8.html')"
photoslink[8]="javascript:show1('show/bild9.html')"
photoslink[9]="javascript:show1('show/bild10.html')"

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function effektberechnen(){
if (document.all){
photolauf.filters.revealTrans.Transition=Math.floor(Math.random()*2)
photolauf.filters.revealTrans.stop()
photolauf.filters.revealTrans.apply()
}
}
function effektzeigen(){
if (document.all)
photolauf.filters.revealTrans.play()
}
function wievielebilder(){
window.status="Bild "+(which+1)+" von "+photos.length
}
function zurueck(){
if (which>0){
which--
effektberechnen()
document.images.photolauf.src=photos[which]
effektzeigen()
wievielebilder()
}
}
function weiter(){
if (which<photos.length-1){
which++
effektberechnen()
document.images.photolauf.src=photos[which]
effektzeigen()
wievielebilder()
}
}
function transport(){
window.location=photoslink[which]
}
