//Specify the slider's width (in pixels)
var sliderwidth="760px"

//Specify the slider's height
var sliderheight="100px"

//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=1	

//configure background color:
slidebgcolor="grey"

//Specify the slider's images
var leftrightslide=new Array()

var finalslide=''
leftrightslide[0]='<a href="http://www.usp.com.au/fpss/campaign-dodi-muhyadin-tukal.html" target="_top"><img src="img-prisoners/slide-dodi.jpg" width="108" height="94" alt="Dodi Muhyadin Tukal" border="0"></a>'
leftrightslide[1]='<a href="http://www.usp.com.au/fpss/campaign-kyaw-kyaw-khine.html" target="_top"><img src="img-prisoners/slide-kyaw.jpg" width="108" height="94" alt="Kyaw Kyaw Khine" border="0"></a>'
leftrightslide[2]='<a href="http://www.usp.com.au/fpss/campaign-mon.html" target="_top"><img src="img-prisoners/slide-mon.jpg" width="108" height="94" height="76" alt="Mon John-korn Jarearatikorn" border="0"></a>'
leftrightslide[3]='<a href="http://www.usp.com.au/fpss/case-randy_james_sachs.html" target="_top"><img src="img-prisoners/slide-rsachs.jpg" width="108" height="94"alt="Randy Sachs" border="0"></a>'
leftrightslide[4]='<a href="http://www.usp.com.au/fpss/campaign-roybennett.html" target="_top"><img src="img-prisoners/slide-roy.jpg" width="108" height="94"alt="Roy Bennett" border="0"></a>'
leftrightslide[5]='<a href="http://www.usp.com.au/fpss/case-chantal.html" target="_top"><img src="img-prisoners/slide-chantal.jpg" width="108" height="94"alt="Chantal McCorkle" border="0"></a>'
leftrightslide[6]='<a href="http://www.usp.com.au/fpss/case-mitchell_ian_blake.html" target="_top"><img src="img-prisoners/slide-mblake.jpg" width="108" height="94"alt="Mitchell Blake" border="0"></a>'
// leftrightslide[7]='<a href="http://www.usp.com.au/fpss/case-nils_taft.html" target="_top"><img src="img-prisoners/slide-ntaft.jpg" width="108" height="94"alt="Nils Taft" border="0"></a>'
leftrightslide[7]='<a href="http://www.usp.com.au/fpss/campaign-deborah_kerr.html" target="_top"><img src="img-prisoners/slide-debkerr.jpg" width="108" height="94"alt="Deborah Kerr" border="0"></a>'
leftrightslide[8]='<a href="http://www.usp.com.au/fpss/case-alan-hodgson.html" target="_top"><img src="img-prisoners/slide-ahodgson.jpg" width="108" height="94"alt="Alan Hodgson" border="0"></a>'
leftrightslide[9]='<a href="http://schapelle.foreignprisoners.com" target="_top"><img src="img-prisoners/slide-scorby.jpg" width="108" height="94" alt="Schapelle Corby" border="0"></a>'
leftrightslide[10]='<a href="http://www.usp.com.au/fpss/case-ali-arahbakhsh.html" target="_top"><img src="img-prisoners/slide-afarah.jpg" width="108" height="94" height="76" alt="Ali Farahbakhsh" border="0"></a>'
leftrightslide[11]='<a href="http://www.usp.com.au/fpss/case-john_watson.html" target="_top"><img src="img-prisoners/slide-jwatson.jpg" width="108" height="94"alt="John Watson" border="0"></a>'
leftrightslide[12]='<a href="http://www.usp.com.au/fpss/case-gordon_vuong.html" target="_top"><img src="img-prisoners/slide-gvuong.jpg" width="108" height="94"alt="Gordon Vuong" border="0"></a>'
leftrightslide[13]='<a href="http://www.usp.com.au/fpss/campaign-sibel.html" target="_top"><img src="img-prisoners/slide-sibel.jpg" width="108" height="94"alt="Sibel Yalvac" border="0"></a>'
leftrightslide[14]='<a href="http://www.usp.com.au/fpss/case-nils_taft.html" target="_top"><img src="img-prisoners/slide-ntaft.jpg" width="108" height="94"alt="Nils Taft" border="0"></a>'
leftrightslide[15]='<a href="http://www.usp.com.au/fpss/case-alan-hodgson.html" target="_top"><img src="img-prisoners/slide-ahodgson.jpg" width="108" height="94"alt="Alan Hodgson" border="0"></a>'
leftrightslide[16]='<a href="http://www.usp.com.au/fpss/campaign-deborah_kerr.html" target="_top"><img src="img-prisoners/slide-debkerr.jpg" width="108" height="94"alt="Deborah Kerr" border="0"></a>'
leftrightslide[17]='<a href="http://www.usp.com.au/fpss/case-kelly_rae_trueman.html" target="_top"><img src="img-prisoners/slide-kelly.jpg" width="108" height="94" alt="Kelly Truman" border="0"></a>'
leftrightslide[18]='<a href="http://www.usp.com.au/fpss/missingpersons/ryan-chambers.html" target="_top"><img src="img-prisoners/slide-ryan.jpg" width="108" height="94" alt="Ryan Chambers" border="0"></a>'
leftrightslide[19]='<a href="http://www.usp.com.au/fpss/case-brian-meisenberg.html" target="_top"><img src="img-prisoners/slide-brianm.jpg" width="108" height="94"alt="Brian Meisenberg" border="0"></a>'
// leftrightslide[9]='<img src="media/thumbs/10.jpg" border=0>'
// leftrightslide[10]='<img src="media/thumbs/11.jpg" border=0>'
// leftrightslide[11]='<img src="media/thumbs/12.jpg" border=0>'
// leftrightslide[12]='<img src="media/thumbs/13.jpg" border=0>'
// leftrightslide[13]='<img src="media/thumbs/14.jpg" border=0>'
// leftrightslide[14]='<img src="media/thumbs/15.jpg" border=0>'
// leftrightslide[15]='<img src="media/thumbs/16.jpg" border=0>'
// leftrightslide[16]='<img src="media/thumbs/17.jpg" border=0>'
// leftrightslide[17]='<img src="media/thumbs/18.jpg" border=0>'
// leftrightslide[18]='<img src="media/thumbs/19.jpg" border=0>'
// leftrightslide[19]='<img src="media/thumbs/20.jpg" border=0>'
// leftrightslide[20]='<img src="media/thumbs/21.jpg" border=0>'
 
// leftrightslide.sort( randOrd ); // use random function to sort array

//Specify gap between each image (use HTML):
var imagegap="<img src=imga/space.gif width=2px height=0px>" 

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0


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+'"  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  onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}

function randOrd(){
return (Math.round(Math.random())-0.5); } 

