
//slider's width
var swidth=200;

//slider's height
var sheight=380;

//slider's speed
var sspeed=3;
var restart=sspeed;
var rspeed=sspeed;

//slider's background 
var scolor="#ffffcc";

//slider's border
var sborder="2"; 

var imagef='';

//images-1: change to your own set of Images
//Preload recommended (no downloading check), otherwise may skip this
//For images within same dir, just set them like "yourimagename.ext" :

allpics=["http://dynamic-gym.com/images/banner/banner001.jpg" ,"http://dynamic-gym.com/images/banner/banner002.jpg","http://dynamic-gym.com/images/banner/banner003.jpg","http://dynamic-gym.com/images/banner/banner004.jpg","http://dynamic-gym.com/images/banner/banner005.jpg","http://dynamic-gym.com/images/banner/banner006.jpg","http://dynamic-gym.com/images/dynamic-gym_logo.png"];
var preloadpics = new Array();
for(qq=0;qq<allpics.length;qq++){
preloadpics[qq]=new Image();
preloadpics[qq].src=allpics[qq];}

var leftimage=new Array();
//images-2: change to your own set of Hyperlinks and Images parameters
//remove <a ... > & </a> portions where no Hyperlink used
//if no preloading, replace '+ ... +' with the actual Images path "..."
leftimage[0]='<img src='+preloadpics[0].src+' alt="pic1" height=150 width=200><h4 style="text-align: center; font-size: 1.1em">Teodora Ungureanu-Cepoi and Sorin Cepoi are the Dynamic Gymnastics Founders and Directors</h4>';
leftimage[1]='<img src='+preloadpics[1].src+' alt="pic2" height=150 width=200><h4 style="text-align: center; font-size: 1.1em">Girls having Fun at Practice</h4>';
leftimage[2]='<img src='+preloadpics[2].src+' height=150 width=200 alt="pic3"><h4 style="text-align: center; font-size: 1.1em">Teodora, Bela Karolyi and Sorin</h4>';
leftimage[3]='<img src='+preloadpics[3].src+' height=150 width=200 alt="pic4"><h4 style="text-align: center; font-size: 1.1em">2009 Visa Championship in Dallas, Texas</h4>';
leftimage[4]='<img src='+preloadpics[4].src+' height=150 width=200 alt="pic5"><h4 style="text-align: center; font-size: 1.1em">Dynamic Gymnastics Team Picture</h4>';
leftimage[5]='<img src='+preloadpics[5].src+' height=150 width=200 alt="pic6"><h4 style="text-align: center; font-size: 1.1em">Teodora, Sabrina and Nastia</h4>';
leftimage[6] = '<img src=' + preloadpics[6].src + ' height=150 width=200 alt="pic6"><h4 style="text-align: center; font-size: 1.1em">Home of the Olympians</h4>';
leftimage[7] = '<img src=' + preloadpics[0].src + ' alt="pic1" height=150 width=200><h4 style="text-align: center; font-size: 1.1em">Teodora Ungureanu-Cepoi and Sorin Cepoi are the Dynamic Gymnastics Founders and Directors</h4>';
leftimage[8] = '<img src=' + preloadpics[1].src + ' alt="pic2" height=150 width=200><h4 style="text-align: center; font-size: 1.1em">Girls having Fun at Practice</h4>';

//leftimage[...]=' ... ';
//-- end Parameters and Images -->

// ALGORITM begins
for(mi=leftimage.length-1;mi>=0;mi--)
imagef=imagef+leftimage[mi]+'<br>';

function goup(){if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}}

function start(){if(document.getElementById){tdiv6=document.getElementById('slider');tdiv6.innerHTML=imagef;thel=tdiv6.offsetHeight;tdiv6.style.top=-thel+"px";slidens6();}
else if(document.all){tdivie=slider;tdivie.innerHTML=imagef;thel=tdivie.offsetHeight;tdivie.style.pixelTop=-thel+"px";slideie();}else if(document.layers){tdivns4=document.slider1.document.slider2;tdivns4.document.write(imagef);tdivns4.document.close();thel=tdivns4.document.height;tdivns4.top=-thel;slidens4();}}
function slidens4(){if(tdivns4.top<=sheight){tdivns4.top+=sspeed;setTimeout("slidens4()",100);}else{tdivns4.top=-thel;slidens4();}}
function slideie(){if(tdivie.style.pixelTop<=sheight){tdivie.style.pixelTop+=sspeed+"px";setTimeout("slideie()",100);}else{tdivie.style.pixelTop=-thel+"px";slideie();}}
function slidens6() { if (parseInt(tdiv6.style.top) <= 0) { tdiv6.style.top = parseInt(tdiv6.style.top) + sspeed + "px"; setTimeout("slidens6()", 100); } else { tdiv6.style.top =+ sheight-thel  +60 + "px"; slidens6(); } }