
//Script submitted by vasile birsan
//http://members.home.net/v.birsan/
//slider's width
var swidth=160


//slider's height
var sheight=100

//slider's speed;
var sspeed=2


var imagef=''


//images: change to your own

var leftimage=new Array();
leftimage[0]='<img src="images/logos/nabas.gif" width=160 height=81 border=0>'
leftimage[1]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[2]='<img src="images/balloons/fathers-day/fathers1.jpg" width=98 height=98 border=0>'
leftimage[3]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[4]='<img src="images/balloons/fathers-day/fathers2.jpg" width=96 height=97 border=0>'
leftimage[5]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[6]='<img src="images/balloons/fathers-day/fathers3.jpg" width=96 height=97 border=0>'
leftimage[7]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[8]='<img src="images/balloons/fathers-day/fathers4.jpg" width=102 height=105 border=0>'
leftimage[9]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[10]='<img src="images/balloons/fathers-day/fathers5.jpg" width=100 height=100 border=0>'
leftimage[11]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[12]='<img src="images/balloons/fathers-day/fathers6.jpg" width=100 height=100 border=0>'
leftimage[13]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'
leftimage[14]='<img src="images/balloons/fathers-day/fathers7.jpg" width=100 height=100 border=0>'
leftimage[15]='<img src="images/scroller-spacer.gif" width=19 height=31 border=0>'


for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]


function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.width
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
setTimeout("sslide()",100)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=eval(whichdiv)
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
setTimeout("scroll6()",100)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}
//You might run into a position problem within the page, using either
//NS4.x or NS6.x. To correct this use the coordinates: 'left=value',
//'top=value' within ilayer/layer tags or 'position:relative/absolute;
//left:value;top:value;' within NS6's div tags.
//Those values can be either positive or negative!
//Make sure you've got the onload='...;' within body tag but without
//takeFocus(); there!

