// JavaScript Document


/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="950px"
//Specify the slider's height
var sliderheight="37px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=3
//configure background color:
slidebgcolor="#FFFFFF"


//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a title="Sparrow Teasers" href="http://www.prestigefishing.com.au/store/index.php/cPath/7"><img src="images/products_scroll/lures-023.jpg" alt="Sparrow Teaser" border=1></a>'
leftrightslide[1]='<a title="Aluminium Crimps" href="http://www.prestigefishing.com.au/store/index.php/cPath/8"><img src="images/products_scroll/1.4mm_alumcrimps.gif" alt="Aluminium Crimps" border=1></a>' 
leftrightslide[2]='<a title="Sparrow Teasers" href="http://www.prestigefishing.com.au/store/index.php/cPath/7"><img src="images/products_scroll/lures-024.jpg" alt="Sparrow Teaser" border=1></a>'
leftrightslide[3]='<a title="Mirror Lures" href="http://www.prestigefishing.com.au/store/product_info.php/mirrored-teaser-52cm-p-60"><img src="images/products_scroll/mirror-lure.jpg" alt="Mirror Lures" border=1></a>'
leftrightslide[4]='<a title="Wind on leader" href="http://www.prestigefishing.com.au/store/index.php/windon-leaders-c-1"><img src="images/products_scroll/wind-on-leaders.jpg" alt="Wind on leaders" border=1></a>'
leftrightslide[5]='<a title="Bill Fisher Tackel" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/BillfisherTackle.png" alt="Bill Fisher Tackel" border=1></a>'
leftrightslide[6]='<a title="Anglers Bait World" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/ANGLERS-BAIT-WORLD.png" alt="Anglers Bait World" border=1></a>'
leftrightslide[7]='<a title="Wind-On Leaders" href="http://www.prestigefishing.com.au/store/index.php/cPath/1"><img src="images/products_scroll/4.gif" alt="Wind-On Leaders" border=1></a>'
leftrightslide[8]='<a title="Shark Traces" href="http://www.prestigefishing.com.au/store/index.php/cPath/3"><img src="images/products_scroll/23.gif" alt="Shark Traces" border=1></a>'
leftrightslide[9]='<a title="Luminous Sleeves and Tubes" href="http://www.prestigefishing.com.au/store/index.php/cPath/9"><img src="images/products_scroll/28.gif" alt="Luminous Sleeves and Tubes" border=1></a>'
leftrightslide[10]='<a title="Windo on leaders" href="http://www.prestigefishing.com.au/store/index.php/windon-leaders-c-1"><img src="images/products_scroll/wind-on-leader.jpg" alt="wind on leaders" border=1></a>'
leftrightslide[11]='<a title="Tuna Feathers" href="http://www.prestigefishing.com.au/store/index.php/lures-tuna-feathers-c-6_26"><img src="images/products_scroll/lures-005.jpg" alt="Tuna Feathers" border=1></a>'
leftrightslide[12]='<a title="Anglers Bait World" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/ANGLERS-BAIT-WORLD.png" alt="Anglers Bait World" border=1></a>'
leftrightslide[13]='<a title="swivles" href="http://www.prestigefishing.com.au/store/index.php/pfgame-snaps-hduty-game-swivel-c-10"><img src="images/products_scroll/swivels.jpg" alt="Swivels" border=1></a>'
leftrightslide[14]='<a title="Shark Traces" href="http://www.prestigefishing.com.au/store/index.php/cPath/3"><img src="images/products_scroll/rig_6.gif" alt="Shark Traces" border=1></a>'
leftrightslide[15]='<a title="Swivel Locks" href=""><img src="images/products_scroll/swivel-lock.jpg" alt="Swivles Lock" border=1></a>'
leftrightslide[16]='<a title="Jetheads" href="http://www.prestigefishing.com.au/store/index.php/cPath/6"><img src="images/products_scroll/lures-002.jpg" alt="Jetheads" border=1></a>'
leftrightslide[17]='<a title="Jet Heads" href="http://www.prestigefishing.com.au/store/index.php/lures-c-6"><img alt="Jet Heads" src="images/products_scroll/jet-heads.jpg" border=1></a>'
leftrightslide[18]='<a title="Wind on leaders with hook" href="http://www.prestigefishing.com.au/store/index.php/windon-leaders-c-1"><img src="images/products_scroll/wind-on-leader-with-hook.jpg" alt="Wind on leaders with hook" border=1></a>'
leftrightslide[19]='<a title="Bill Fisher Tackel" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/BillfisherTackle.png" alt="Bill Fisher Tackel" border=1></a>'
leftrightslide[20]='<a title="Bird Teaser" href="http://www.prestigefishing.com.au/store/index.php/teasers-c-7"><img src="images/products_scroll/bird-teaser.jpg" alt="Bird Teaser" border=1></a>'
leftrightslide[21]='<a title="Bird Teasers" href="http://www.prestigefishing.com.au/store/index.php/teasers-c-7><img src="images/products_scroll/bird-teasers.jpg" alt="Bird Teasers" border=1></a>'
leftrightslide[22]='<a title="Aussie Angler" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/aussie-angler.png" alt="Aussie Angler" border=1></a>'
leftrightslide[23]='<a title="Thimbles" href="http://www.prestigefishing.com.au/store/index.php/cPath/12"><img src="images/products_scroll/thimbles.gif" alt="Thimbles" border=1></a>'
leftrightslide[24]='<a title="Tuna Feathers" href="http://www.prestigefishing.com.au/store/index.php/lures-tuna-feathers-c-6_26"><img src="images/products_scroll/lures-006.jpg" alt="Tuna Feathers" border=1></a>'
leftrightslide[25]='<a title="swivel" href="http://www.prestigefishing.com.au/store/index.php/cPath/10"><img src="images/products_scroll/swivels.jpg" alt="Thimbles" border=1></a>'
leftrightslide[26]='<a title="Jetheads" href="http://www.prestigefishing.com.au/store/index.php/cPath/6"><img src="images/products_scroll/lures-003.jpg" alt="Jetheads" border=1></a>'
leftrightslide[27]='<a title="Tuna Feathers" href="http://www.prestigefishing.com.au/store/index.php/lures-tuna-feathers-c-6_26"><img src="images/products_scroll/lures-004.jpg" alt="Tuna Feathers" border=1></a>'
leftrightslide[28]='<a title="Bill Fisher Tackel" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/BillfisherTackle.png" alt="Bill Fisher Tackel" border=1></a>'
leftrightslide[29]='<a title="Shark tracer" href="http://www.prestigefishing.com.au/store/index.php/cPath/2"><img src="images/products_scroll/27.jpg" alt="Thimbles" border=1></a>'
leftrightslide[30]='<a title="Tuna Feathers" href="http://www.prestigefishing.com.au/store/index.php/lures-tuna-feathers-c-6_26"><img src="images/products_scroll/lures-007.jpg" alt="Tuna Feathers" border=1></a>'
leftrightslide[31]='<a title="lumo Sleeve" href="http://www.prestigefishing.com.au/store/index.php/cPath/9"><img src="images/products_scroll/90mm_lumosleeve.jpg" alt="Thimbles" border=1></a>'
leftrightslide[32]='<a title="Jetheads" href="http://www.prestigefishing.com.au/store/index.php/cPath/6"><img src="images/products_scroll/lures-001.jpg" alt="Jetheads" border=1></a>'
leftrightslide[33]='<a title="Tuna Feathers" href="http://www.prestigefishing.com.au/store/index.php/lures-tuna-feathers-c-6_26"><img src="images/products_scroll/lures-008.jpg" alt="Tuna Feathers" border=1></a>'
leftrightslide[34]='<a title="Mirrored Teaser" href="http://www.prestigefishing.com.au/store/product_info.php/mirrored-teaser-52cm-p-60"><img src="images/products_scroll/lures-009.jpg" alt="Mirrored Teaser" border=1></a>'
leftrightslide[35]='<a title="Float" href="http://www.prestigefishing.com.au/store/index.php/cPath/7"><img src="images/products_scroll/lures-011.jpg" alt="Float" border=1></a>'
leftrightslide[36]='<a title="Bullet heads" href="http://www.prestigefishing.com.au/store/index.php/cPath/6_30"><img src="images/products_scroll/lures-018.jpg" alt="Bullet heads" border=1></a>'
leftrightslide[37]='<a title="Jet heads" href="http://www.prestigefishing.com.au/store/index.php/lures-jethaeds-c-6_25"><img src="images/products_scroll/bullet-headers.jpg" alt="Jet heads" border=1></a>'
leftrightslide[38]='<a title="Sparrow Teasers" href="http://www.prestigefishing.com.au/store/index.php/cPath/7"><img src="images/products_scroll/lures-021.jpg" alt="Sparrow Teaser" border=1></a>'
leftrightslide[39]='<a title="Hand Crimpers" href="http://www.prestigefishing.com.au/store/index.php/cPath/5"><img src="images/products_scroll/hand_crimper.gif" alt="Hand Crimpers" border=1></a>'
leftrightslide[40]='<a title="Bill Fisher Tackel" href="http://www.prestigefishing.com.au/retail.php"><img src="images/products_scroll/BillfisherTackle.png" alt="Bill Fisher Tackel" border=1></a>'
leftrightslide[41]='<a title="Wind on Leaders with a hook" href="http://www.prestigefishing.com.au/store/index.php/windon-leaders-c-1"><img src="images/products_scroll/wind-on-leader-with-hook.jpg" alt="Wind on Leaders with a hook" border=1></a>'
leftrightslide[42]='<a title="Wind-On Shark Traces" href="http://www.prestigefishing.com.au/store/index.php/cPath/2"><img src="images/products_scroll/4.gif" alt="Wind-On Shark Traces" border=1></a>'
leftrightslide[43]='<a title="Fishing Rigs" href="http://www.prestigefishing.com.au/store/index.php/cPath/4"><img src="images/products_scroll/3.gif" alt=" Fishing Rigs" border=1></a>'
leftrightslide[44]='<a title="Kanseki Springs" href="http://www.prestigefishing.com.au/store/index.php/cPath/11"><img alt="Kanseki Springs" src="images/products_scroll/stainless_steel_springs.gif" border=1></a>'
leftrightslide[45]='<a title="Swivels" href="http://www.prestigefishing.com.au/store/index.php/cPath/10"><img src="images/products_scroll/swivel_solid_ring.gif" alt="Swivels" border=1></a>'
leftrightslide[46]='<a title="Lumotube" href="http://www.prestigefishing.com.au/store/index.php/cPath/9?osCsid=916ba0f439ff6ccc34734de8e2f73b5a"><img src="images/products_scroll/1.8_lumotube.jpg" alt="Lumotube" border=1></a>'


//Specify gap between each image (use HTML):
var imagegap="&nbsp;&nbsp;"

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=2

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}
