var photos=new Array()
var photoslink=new Array()
var photostag=new Array()
var which=0

//define images. You can have as many as you want:
photos[16]="/images/galerie/abfuellung.jpg"
photos[17]="/images/galerie/abfuellung2.jpg"
photos[5]="/images/galerie/begruenung2.jpg"
photos[12]="/images/galerie/birnenbluete.jpg"
photos[19]="/images/galerie/sektabfuellung.jpg"
photos[20]="/images/galerie/degorgierung.jpg"
photos[21]="/images/galerie/degorgierung2.jpg"
photos[9]="/images/galerie/fendtmulchen.jpg"
photos[4]="/images/galerie/jungfeld.jpg"
photos[2]="/images/galerie/jungfeld2.jpg"
photos[3]="/images/galerie/kompost.jpg"
photos[22]="/images/galerie/lkw.jpg"
photos[13]="/images/galerie/obstplantage.jpg"
photos[1]="/images/galerie/pflanzung.jpg"
photos[7]="/images/galerie/pheromone.jpg"
photos[6]="/images/galerie/pheromone2.jpg"
photos[8]="/images/galerie/pheromone3.jpg"
photos[0]="/images/galerie/rodung.jpg"
photos[10]="/images/galerie/scheiben.jpg"
photos[15]="/images/galerie/traubenwagen.jpg"
photos[14]="/images/galerie/vollernter.jpg"
photos[11]="/images/galerie/werkstatt.jpg"
photos[18]="/images/galerie/flaschenlager.jpg"

//define alt and title tag for above images:
photostag[16]="Unsere Abfüllanlage in Betrieb"
photostag[17]="Füllen, Korken und Kapseln der Flaschen"
photostag[5]="Artenreiche, blühende Begrünung"
photostag[12]="Unsere Birnen in der Vollblüte"
photostag[19]="Abfüllung unseres Winzersektes"
photostag[20]="Fertigstellen, Degorgierung unseres Sektes"
photostag[21]="Blick aufs Kältebad beim Degorgieren"
photostag[9]="Abmähen der Begrünung im Spätsommer"
photostag[4]="Winterraps im Frühjahr kurz vorm Abmulchen"
photostag[2]="Winterraps im Herbst nach der Aussaat"
photostag[3]="Förderung der Bodengesundheit mit Roggen und Kompost"
photostag[22]="Ihr Weingut unterwegs zu seinen Kunden"
photostag[13]="Unsere Apfelbäume in der Erntezeit"
photostag[1]="Lasergeführte Pflanzmaschine für Reben"
photostag[7]="Infotafel zum Pheromonverfahren"
photostag[6]="Aushängen der Pheromonampullen"
photostag[8]="Falle zur Kontrolle der Pheromonwirkung"
photostag[0]="Tiefe Bodenbearbeitung vor der Pflanzung"
photostag[10]="Bearbeitung des Unterstockbereichs mit dem Scheibenpflug"
photostag[15]="Befüllung des Traubenwagens"
photostag[14]="Unsere Erntemaschine im Einsatz"
photostag[11]="Unser Fuhrpark für die Weinberge"
photostag[18]="Das Vollgutlager für Flaschen"

//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""

//do NOT edit pass this line
var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}

function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Bild "+(which+1)+" von "+photos.length
}

function backward(){
if (which==0){
which=photos.length
}
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
document.images.photoslider.title=photostag[which]
document.images.photoslider.alt=photostag[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which==photos.length-1){
which=0-1
}
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
document.images.photoslider.title=photostag[which]
document.images.photoslider.alt=photostag[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}
