
/* show first image */
window.setTimeout("s.first();",100);


var fx = new Fx.Tween($('innercon'), {duration: 1000, wait: false});
fx.options.transition = Fx.Transitions['Expo']['easeInOut'];

function getPrintContent()
{
   var imgurl = $('leftarea').style.backgroundImage.replace("url(","").replace(")","");
   return "<img style=\"margin-top:20px\" src=\"" + imgurl + "\">"; 
}

window.setTimeout("setButtons()",500);


// man sollte auch per pfeiltasten die bilder switchen können
document.addEvent('keydown', function(e)
{
var ev = new Event(e);

if(ev.key == "right" || ev.key == "up")
    s.next();
else if(ev.key == "left" || ev.key == "down")
    s.previous();    

});
