//Specify the slider's width (in pixels)
var sliderwidth="733px"
//Specify the slider's height
var sliderheight="80px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2;
//configure background color:
slidebgcolor="white"


//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="randomimage4.html" target="mainframe"><img src="coco_khan/thumbs_gallery/t_ga_ck_004.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[1]='<a href="oilyimage4.html" target="mainframe"><img src="oily_chi/thumbs_ga_oc/t_ga_oc_004.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[2]='<a href="ericimage8.html" target="mainframe"><img src="eric_heroux/thumbs_ga_eh/t_ga_eh_008.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[3]='<a href="kingimage1.html" target="mainframe"><img src="king_khan_gallery/ga_thumbs/t_ga_kk_001.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[4]='<a href="rupertimage8.html" target="mainframe"><img src="rupert_bottenberg/ga_thumbs/t_ga_rb_008.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[5]='<a href="oilyimage11.html" target="mainframe"><img src="oily_chi/oily_gallery/gallery_thumbs/t_ga_oc_011.jpg" border=0 height=75 width=75></a>'
leftrightslide[6]='<a href="cocoimage5.html" target="mainframe"><img src="coco_khan/thumbs_gallery/t_ga_ck_005.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[7]='<a href="kingimage10.html" target="mainframe"><img src="king_khan_gallery/ga_thumbs/t_ga_kk_010.jpg" border=0 height=75 width=75></a>'
leftrightslide[8]='<a href="randomimage2.html" target="mainframe"><img src="eric_heroux/thumbs_ga_eh/t_ga_eh_001.jpg" border=0 height=75 width=75></a> &nbsp;'
leftrightslide[9]='<a href="rupertimage5.html" target="mainframe"><img src="rupert_bottenberg/ga_thumbs/t_ga_rb_005.jpg" border=0 height=75 width=75></a>'

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

var copyspeed=slidespeed
leftrightslide='<nobr>'+leftrightslide.join(" ")+'</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+20+"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+20
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+30+"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+30+"px"

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

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


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="2" cellpadding="2"><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>')
}
}

/*
function MM_reloadPage(init) 
{  //reloads the window if Netscape is resized
  if (init==true) with (navigator) 
   {
     if ((appName=="Netscape")&&(parseInt(appVersion)==4)) 
	 {
      document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
	 }
   }
  else 
  if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
*/
