// JScript File



/***********************************************
* 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 = "150px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed = 1
//configure background color:
slidebgcolor = "White"

//Specify the slider's images
var leftrightslide = new Array()
var finalslide = ''


leftrightslide[0] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=11"><img src="slideshow/418a.jpg" border=0 alt="oil paintings and watercolour paintings" width="154px" height="150px"></a>'
leftrightslide[1] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=43"><img src="slideshow/The-Fishermen-Pike.jpg" border=0 alt="oil paintings and watercolour paintings" width="316px" height="150px"></a>'
leftrightslide[2] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=45"><img src="slideshow/bluebell_time.jpg" border=0 alt="oil paintings and watercolour paintings" width="100px" height="150px"></a>'
leftrightslide[3] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=36"><img src="slideshow/Evening-Light.jpg" border=0 alt="oil paintings and watercolour paintings" width="319px" height="150px"></a>'
leftrightslide[4] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=57"><img src="slideshow/Oak_leaves_and_acorns.jpg" border=0 alt="oil paintings and watercolour paintings" width="167px" height="150px"></a>'
leftrightslide[5] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=61"><img src="slideshow/December_afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="151px" height="150px"></a>'
leftrightslide[6] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=4"><img src="slideshow/Evening-at-Shillingstone.jpg" border=0 alt="oil paintings and watercolour paintings" width="200px" height="150px"></a>'
leftrightslide[7] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=34"><img src="slideshow/May-Morning.jpg" border=0 alt="oil paintings and watercolour paintings" width="123px" height="150px"></a>'
leftrightslide[8] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=55"><img src="slideshow/The_noble_elm.jpg" border=0 alt="oil paintings and watercolour paintings" width="119px" height="150px"></a>'
leftrightslide[9] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=5"><img src="slideshow/Hambledon-Hill-October.jpg" border=0 alt="oil paintings and watercolour paintings" width="388px" height="150px"></a>'
leftrightslide[10] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=38"><img src="slideshow/Jack.jpg" border=0 alt="oil paintings and watercolour paintings" width="298px" height="150px"></a>'
leftrightslide[11] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=6"><img src="slideshow/November-Afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="122px" height="150px"></a>'
leftrightslide[12] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=53"><img src="slideshow/Microcosmos12.jpg" border=0 alt="oil paintings and watercolour paintings" width="101px" height="150px"></a>'
leftrightslide[13] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=56"><img src="slideshow/Nocturne.jpg" border=0 alt="oil paintings and watercolour paintings" width="192px" height="150px"></a>'
leftrightslide[14] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=28"><img src="slideshow/Old-Pillarbox.jpg" border=0 alt="oil paintings and watercolour paintings" width="100px" height="150px"></a>'
leftrightslide[15] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=58"><img src="slideshow/The_noble_elm_remembered.jpg" border=0 alt="oil paintings and watercolour paintings" width="117px" height="150px"></a>'
leftrightslide[16] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=30"><img src="slideshow/Dawn-Shower.jpg" border=0 alt="oil paintings and watercolour paintings" width="123px" height="150px"></a>'
leftrightslide[17] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=8"><img src="slideshow/Still-Waters.jpg" border=0 alt="oil paintings and watercolour paintings" width="218px" height="150px"></a>'
leftrightslide[18] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=42"><img src="slideshow/The-Fishermen-Otter.jpg" border=0 alt="oil paintings and watercolour paintings" width="96px" height="150px"></a>'
leftrightslide[19] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=59"><img src="slideshow/Stanza.jpg" border=0 alt="oil paintings and watercolour paintings" width="152px" height="150px"></a>'
leftrightslide[20] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=54"><img src="slideshow/Two_sleeping_trees.jpg" border=0 alt="oil paintings and watercolour paintings" width="101px" height="150px"></a>'
leftrightslide[21] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=60"><img src="slideshow/Winter_afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="153px" height="150px"></a>'
leftrightslide[22] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=40"><img src="slideshow/Spring.jpg" border=0 alt="oil paintings and watercolour paintings" width="181px" height="150px"></a>'
leftrightslide[23] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=52"><img src="slideshow/Autumn_evening.jpg" border=0 alt="oil paintings and watercolour paintings" width="107px" height="150px"></a>'
leftrightslide[24] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=37"><img src="slideshow/Dawn.jpg" border=0 alt="oil paintings and watercolour paintings" width="221px" height="150px"></a>'
leftrightslide[25] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=26"><img src="slideshow/River-Hook.jpg" border=0 alt="oil paintings and watercolour paintings" width="221px" height="150px"></a>'
leftrightslide[26] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=35"><img src="slideshow/Shower.jpg" border=0 alt="oil paintings and watercolour paintings" width="224px" height="150px"></a>'
leftrightslide[27] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=7"><img src="slideshow/Shepherds-Hut.jpg" border=0 alt="oil paintings and watercolour paintings" width="220px" height="150px"></a>'
leftrightslide[28] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=2"><img src="slideshow/Microcosmos1.jpg" border=0 alt="oil paintings and watercolour paintings" width="150px" height="150px"></a>'
leftrightslide[29] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=18"><img src="slideshow/higher_bockhampton.jpg" border=0 alt="oil paintings and watercolour paintings" width="178px" height="150px"></a>'
leftrightslide[30] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=23"><img src="slideshow/light_and_water.jpg" border=0 alt="oil paintings and watercolour paintings" width="124px" height="150px"></a>'
leftrightslide[31] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=75"><img src="slideshow/lower_bockhampton.jpg" border=0 alt="oil paintings and watercolour paintings" width="180px" height="150px"></a>'
leftrightslide[32] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=74"><img src="slideshow/march_sunlight.jpg" border=0 alt="oil paintings and watercolour paintings" width="183px" height="150px"></a>'
leftrightslide[33] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=73"><img src="slideshow/nasturtians.jpg" border=0 alt="oil paintings and watercolour paintings" width="185px" height="150px"></a>'
leftrightslide[34] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=20"><img src="slideshow/chaffinch_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="195px" height="150px"></a>'
leftrightslide[35] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=49"><img src="slideshow/evening_dorset_stour_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="214px" height="150px"></a>'
leftrightslide[36] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=84"><img src="slideshow/harvest_time_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="214px" height="150px"></a>'
leftrightslide[37] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=79"><img src="slideshow/night_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="206px" height="150px"></a>'
leftrightslide[38] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=80"><img src="slideshow/november_oak_leaf_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="190px" height="150px"></a>'
leftrightslide[39] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=82"><img src="slideshow/oaks_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="150px" height="150px"></a>'
leftrightslide[40] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=81"><img src="slideshow/october_oak_leaf_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="149px" height="150px"></a>'
leftrightslide[41] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=83"><img src="slideshow/study_cut_mill_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="415px" height="150px"></a>'


leftrightslide[42] = '<a href="http://www.clive-edwards.com/Feature.aspx"><img src="slideshow/After_The_Storm.jpg" border=0 alt="oil paintings and watercolour paintings" width="224px" height="150px"></a>'
leftrightslide[43] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=1"><img src="slideshow/Autumn_mist.jpg" border=0 alt="oil paintings and watercolour paintings" width="233px" height="150px"></a>'
leftrightslide[44] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=44"><img src="slideshow/Winter_woods.jpg" border=0 alt="oil paintings and watercolour paintings" width="224px" height="150px"></a>'
leftrightslide[45] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=9"><img src="slideshow/The-Stour-in-November.jpg" border=0 alt="oil paintings and watercolour paintings" width="203px" height="150px"></a>'
leftrightslide[46] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=46"><img src="slideshow/blossom_time.jpg" border=0 alt="oil paintings and watercolour paintings" width="222px" height="150px"></a>'
leftrightslide[47] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=2"><img src="slideshow/Autumn_light.jpg" border=0 alt="oil paintings and watercolour paintings" width="228px" height="150px"></a>'



var justinArray = new Array()


justinArray[0] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=11"><img src="slideshow/418a.jpg" border=0 alt="oil paintings and watercolour paintings" width="154px" height="150px"></a>'
justinArray[1] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=43"><img src="slideshow/The-Fishermen-Pike.jpg" border=0 alt="oil paintings and watercolour paintings" width="316px" height="150px"></a>'
justinArray[2] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=45"><img src="slideshow/bluebell_time.jpg" border=0 alt="oil paintings and watercolour paintings" width="100px" height="150px"></a>'
justinArray[3] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=36"><img src="slideshow/Evening-Light.jpg" border=0 alt="oil paintings and watercolour paintings" width="319px" height="150px"></a>'
justinArray[4] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=57"><img src="slideshow/Oak_leaves_and_acorns.jpg" border=0 alt="oil paintings and watercolour paintings" width="167px" height="150px"></a>'
justinArray[5] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=61"><img src="slideshow/December_afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="151px" height="150px"></a>'
justinArray[6] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=4"><img src="slideshow/Evening-at-Shillingstone.jpg" border=0 alt="oil paintings and watercolour paintings" width="200px" height="150px"></a>'
justinArray[7] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=34"><img src="slideshow/May-Morning.jpg" border=0 alt="oil paintings and watercolour paintings" width="123px" height="150px"></a>'
justinArray[8] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=55"><img src="slideshow/The_noble_elm.jpg" border=0 alt="oil paintings and watercolour paintings" width="119px" height="150px"></a>'
justinArray[9] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=5"><img src="slideshow/Hambledon-Hill-October.jpg" border=0 alt="oil paintings and watercolour paintings" width="388px" height="150px"></a>'
justinArray[10] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=38"><img src="slideshow/Jack.jpg" border=0 alt="oil paintings and watercolour paintings" width="298px" height="150px"></a>'
justinArray[11] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=6"><img src="slideshow/November-Afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="122px" height="150px"></a>'
justinArray[12] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=53"><img src="slideshow/Microcosmos12.jpg" border=0 alt="oil paintings and watercolour paintings" width="101px" height="150px"></a>'
justinArray[13] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=56"><img src="slideshow/Nocturne.jpg" border=0 alt="oil paintings and watercolour paintings" width="192px" height="150px"></a>'
justinArray[14] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=28"><img src="slideshow/Old-Pillarbox.jpg" border=0 alt="oil paintings and watercolour paintings" width="100px" height="150px"></a>'
justinArray[15] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=58"><img src="slideshow/The_noble_elm_remembered.jpg" border=0 alt="oil paintings and watercolour paintings" width="117px" height="150px"></a>'
justinArray[16] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=30"><img src="slideshow/Dawn-Shower.jpg" border=0 alt="oil paintings and watercolour paintings" width="123px" height="150px"></a>'
justinArray[17] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=8"><img src="slideshow/Still-Waters.jpg" border=0 alt="oil paintings and watercolour paintings" width="218px" height="150px"></a>'
justinArray[18] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=42"><img src="slideshow/The-Fishermen-Otter.jpg" border=0 alt="oil paintings and watercolour paintings" width="96px" height="150px"></a>'
justinArray[19] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=59"><img src="slideshow/Stanza.jpg" border=0 alt="oil paintings and watercolour paintings" width="152px" height="150px"></a>'
justinArray[20] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=54"><img src="slideshow/Two_sleeping_trees.jpg" border=0 alt="oil paintings and watercolour paintings" width="101px" height="150px"></a>'
justinArray[21] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=60"><img src="slideshow/Winter_afternoon.jpg" border=0 alt="oil paintings and watercolour paintings" width="153px" height="150px"></a>'
justinArray[22] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=40"><img src="slideshow/Spring.jpg" border=0 alt="oil paintings and watercolour paintings" width="181px" height="150px"></a>'
justinArray[23] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=52"><img src="slideshow/Autumn_evening.jpg" border=0 alt="oil paintings and watercolour paintings" width="107px" height="150px"></a>'
justinArray[24] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=37"><img src="slideshow/Dawn.jpg" border=0 alt="oil paintings and watercolour paintings" width="221px" height="150px"></a>'
justinArray[25] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=26"><img src="slideshow/River-Hook.jpg" border=0 alt="oil paintings and watercolour paintings" width="221px" height="150px"></a>'
justinArray[26] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=35"><img src="slideshow/Shower.jpg" border=0 alt="oil paintings and watercolour paintings" width="224px" height="150px"></a>'
justinArray[27] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=7"><img src="slideshow/Shepherds-Hut.jpg" border=0 alt="oil paintings and watercolour paintings" width="220px" height="150px"></a>'
justinArray[28] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=32"><img src="slideshow/Microcosmos1.jpg" border=0 alt="oil paintings and watercolour paintings" width="150px" height="150px"></a>'
justinArray[29] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=18"><img src="slideshow/higher_bockhampton.jpg" border=0 alt="oil paintings and watercolour paintings" width="178px" height="150px"></a>'
justinArray[30] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=23"><img src="slideshow/light_and_water.jpg" border=0 alt="oil paintings and watercolour paintings" width="124px" height="150px"></a>'
justinArray[31] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=75"><img src="slideshow/lower_bockhampton.jpg" border=0 alt="oil paintings and watercolour paintings" width="180px" height="150px"></a>'
justinArray[32] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=74"><img src="slideshow/march_sunlight.jpg" border=0 alt="oil paintings and watercolour paintings" width="183px" height="150px"></a>'
justinArray[33] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=73"><img src="slideshow/nasturtians.jpg" border=0 alt="oil paintings and watercolour paintings" width="185px" height="150px"></a>'
justinArray[34] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=20"><img src="slideshow/chaffinch_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="195px" height="150px"></a>'
justinArray[35] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=49"><img src="slideshow/evening_dorset_stour_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="214px" height="150px"></a>'
justinArray[36] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=84"><img src="slideshow/harvest_time_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="214px" height="150px"></a>'
justinArray[37] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=79"><img src="slideshow/night_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="206px" height="150px"></a>'

justinArray[38] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=80"><img src="slideshow/november_oak_leaf_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="190px" height="150px"></a>'
justinArray[39] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=82"><img src="slideshow/oaks_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="150px" height="150px"></a>'
justinArray[40] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=81"><img src="slideshow/october_oak_leaf_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="149px" height="150px"></a>'
justinArray[41] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=83"><img src="slideshow/study_cut_mill_slide.jpg" border=0 alt="oil paintings and watercolour paintings" width="415px" height="150px"></a>'
justinArray[42] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=70"><img src="slideshow/winter.jpg" border=0 alt="oil paintings and watercolour paintings" width="183px" height="150px"></a>'
justinArray[43] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=62"><img src="slideshow/morning-mist.jpg" border=0 alt="oil paintings and watercolour paintings" width="153px" height="150px"></a>'
justinArray[44] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=63"><img src="slideshow/hardys-house.jpg" border=0 alt="oil paintings and watercolour paintings" width="223px" height="150px"></a>'
justinArray[45] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=65"><img src="slideshow/oil-sketch-evning.jpg" border=0 alt="oil paintings and watercolour paintings" width="202px" height="150px"></a>'
justinArray[46] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=66"><img src="slideshow/oil-sketch-hay.jpg" border=0 alt="oil paintings and watercolour paintings" width="199px" height="150px"></a>'
justinArray[47] = '<a href="http://www.clive-edwards.com/Product.aspx?ProductID=67"><img src="slideshow/oil-sketch-poppies.jpg" border=0 alt="oil paintings and watercolour paintings" width="110px" height="150px"></a>'

var justin1 = Math.floor(Math.random() * 38)
var justin2 = Math.floor(Math.random() * 38)
var justin3 = Math.floor(Math.random() * 38)
var justin4 = Math.floor(Math.random() * 38)
var justin5 = Math.floor(Math.random() * 38)
var justin6 = Math.floor(Math.random() * 38)
var justin7 = Math.floor(Math.random() * 38)
var justin8 = Math.floor(Math.random() * 38)
var justin9 = Math.floor(Math.random() * 38)
var justin10 = Math.floor(Math.random() * 38)
if ((justin2 == justin1) || (justin2 == justin3) || (justin2 == justin4) || (justin2 == justin5) || (justin2 == justin6) || (justin2 == justin7) || (justin2 == justin8) || (justin2 == justin9) || (justin2 == justin10))
    var justin2 = 38
if ((justin1 == justin2) || (justin1 == justin3) || (justin1 == justin4) || (justin1 == justin5) || (justin1 == justin6) || (justin1 == justin7) || (justin1 == justin8) || (justin1 == justin9) || (justin1 == justin10))
    var justin1 = 39
if ((justin3 == justin1) || (justin3 == justin2) || (justin3 == justin4) || (justin3 == justin5) || (justin3 == justin6) || (justin3 == justin7) || (justin3 == justin8) || (justin3 == justin9) || (justin3 == justin10))
    var justin3 = 40
if ((justin4 == justin1) || (justin4 == justin3) || (justin4 == justin2) || (justin4 == justin5) || (justin4 == justin6) || (justin4 == justin7) || (justin4 == justin8) || (justin4 == justin9) || (justin4 == justin10))
    var justin4 = 41
if ((justin5 == justin1) || (justin5 == justin3) || (justin5 == justin4) || (justin5 == justin2) || (justin5 == justin6) || (justin5 == justin7) || (justin5 == justin8) || (justin5 == justin9) || (justin5 == justin10))
    var justin5 = 42
if ((justin6 == justin1) || (justin6 == justin3) || (justin6 == justin4) || (justin6 == justin5) || (justin6 == justin2) || (justin6 == justin7) || (justin6 == justin8) || (justin6 == justin9) || (justin6 == justin10))
    var justin6 = 43
if ((justin7 == justin1) || (justin7 == justin3) || (justin7 == justin4) || (justin7 == justin5) || (justin7 == justin2) || (justin7 == justin6) || (justin7 == justin8) || (justin7 == justin9) || (justin7 == justin10))
    var justin7 = 44
if ((justin8 == justin1) || (justin8 == justin3) || (justin8 == justin4) || (justin8 == justin5) || (justin8 == justin2) || (justin8 == justin7) || (justin8 == justin6) || (justin8 == justin9) || (justin8 == justin10))
    var justin8 = 45
if ((justin9 == justin1) || (justin9 == justin3) || (justin9 == justin4) || (justin9 == justin5) || (justin9 == justin2) || (justin9 == justin7) || (justin9 == justin8) || (justin9 == justin6) || (justin9 == justin10))
    var justin9 = 46
if ((justin10 == justin1) || (justin10 == justin3) || (justin10 == justin4) || (justin10 == justin5) || (justin10 == justin2) || (justin10 == justin6) || (justin10 == justin8) || (justin10 == justin9) || (justin10 == justin7))
    var justin10 = 47
//var justin10=Math.floor(Math.random()*47)

leftrightslide.length = 10
leftrightslide[0] = justinArray[justin1]
leftrightslide[1] = justinArray[justin2]
leftrightslide[2] = justinArray[justin3]
leftrightslide[3] = justinArray[justin4]
leftrightslide[4] = justinArray[justin5]
leftrightslide[5] = justinArray[justin6]
leftrightslide[6] = justinArray[justin7]
leftrightslide[7] = justinArray[justin8]
leftrightslide[8] = justinArray[justin9]
leftrightslide[9] = justinArray[justin10]



//Specify gap between each image (use HTML):
var imagegap = ""

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap = 0


////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>')
    }
}
