
// 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_graef12.jpg', onClick="javascript:fenster('popups/popup_graef12.html')", 'Meine Ahnentafel']
variableslide[1]=['slideshow_graef/slide_graef2.jpg', onClick="javascript:fenster('popups/popup_graef2.html')", 'März 1993, Weimar<br>Ein selbstbewußtes Goldie-Mädel']
variableslide[2]=['slideshow_graef/slide_graef3.jpg', onClick="javascript:fenster('popups/popup_graef3.html')", 'Juni 1993, Weimar<br>5 Monate alt und sehr aufmerksam!']
variableslide[3]=['slideshow_graef/slide_graef4.jpg', onClick="javascript:fenster('popups/popup_graef4.html')", 'X-mas 1994, Berlin<br>Berlin is suuupa!']
variableslide[4]=['slideshow_graef/slide_graef5.jpg', onClick="javascript:fenster('popups/popup_graef5.html')", 'Juni 1994, Weimar<br>Die junge Gräfin auf ihrem Thron']
variableslide[5]=['slideshow_graef/slide_graef16.jpg', onClick="javascript:fenster('popups/popup_graef16.html')", 'Mai 1993, Weimar<br>Ich spiele für mein Leben gern ...']
variableslide[6]=['slideshow_graef/slide_graef17.jpg', onClick="javascript:fenster('popups/popup_graef17.html')",  'April 1993, Weimar<br>Ein skeptischer Blick ...']
//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
