
// JavaScript Document
var variableslide=new Array()

//variableslide[x]=["pfad zum bild", "OPTIONAL link zum bild", "OPTIONAL text description (unterstützt HTML tags)"]
variableslide[0]=['slideshow_graef/slide_graef11.jpg', onClick="javascript:fenster('popups/popup_graef11.html')", 'Juni 2002, Wien<br>Meine letzten glücklichen Tage im Wasser']
variableslide[1]=['slideshow_graef/slide_graef14.jpg', onClick="javascript:fenster('popups/popup_graef14.html')", 'X-mas 1997, Wien<br>Mit Herrchen vorm Christbaum']
variableslide[2]=['slideshow_graef/slide_graef23.jpg', onClick="javascript:fenster('popups/popup_graef23.html')", 'Herbst 1997, Pogusch<br>Ich bin Maskottchen beim Betriebsausflug']
variableslide[3]=['slideshow_graef/slide_graef20.jpg', onClick="javascript:fenster('popups/popup_graef20.html')", 'Frühjahr 2002, Wien<br>Für mein Lieblinsfauteuil mach ich mich ganz klein']
variableslide[4]=['slideshow_graef/slide_graef21.jpg', onClick="javascript:fenster('popups/popup_graef21.html')", 'Juli 2002, Wien<br>Ich bin schon sehr krank ...']
//konfiguration für grösse und background der show
var slidewidth='150px' //max breite eines bildes
var slideheight='350px' //max hoehe eines bildes plus platz für textdescription
var slidebgcolor='none' //bgd color
var slidefontsize='85%' // fontsize für textdescription

//konfiguration für zeitabstand beim bilderwechsel
var slidedelay=3000

////nach dieser linie nicht mehr editieren!////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="1" bordercolor="#806a4b" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'; font-size:'+slidefontsize+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider
