// JavaScript Document
start_slideshow(1,5,6000);CurrentFrame=1;JumpToFrame=1;function start_slideshow(start_frame,end_frame,delay){id=setTimeout(switch_slides(start_frame,end_frame,delay),delay);}
function jump_slideshow(start_frame,end_frame,delay,toframe){JumpToFrame=toframe;clearTimeout(id);id=setTimeout(jump_slides(start_frame,end_frame,delay),1);}
function switch_slides(start_frame,end_frame,delay){return(function(){Effect.Fade('banner'+CurrentFrame,{duration:1.0});$('locdt'+CurrentFrame).hide();if(CurrentFrame==end_frame){CurrentFrame=start_frame;}else{CurrentFrame=CurrentFrame+1;}
Effect.Appear('banner'+CurrentFrame,{duration:1.0});$('locdt'+CurrentFrame).show();if(delay==1000){delay=6000;}
clearTimeout(id);id=setTimeout(switch_slides(start_frame,end_frame,delay),delay);})}
function jump_slides(start_frame,end_frame,delay){return(function(){Effect.Fade('banner'+CurrentFrame,{duration:1.0});$('locdt'+CurrentFrame).hide();$('locdt'+JumpToFrame).show();Effect.Appear('banner'+JumpToFrame,{duration:1.0});if(delay==1000){delay=6000;}
CurrentFrame=JumpToFrame;clearTimeout(id);id=setTimeout(switch_slides(start_frame,end_frame,delay),delay);})}
function stop_slideshow(){clearTimeout(id);}
