///////configure the below four variables to change the style of the slider///////
//set the scrollerwidth and scrollerheight to the width/height of the LARGEST image in your slideshow!
var scrollerwidth='200px'
var scrollerheight='160px'
var scrollerbgcolor='white'
//3000 miliseconds=3 seconds
var pausebetweenimages=6000


//configure the below variable to change the images used in the slideshow. If you wish the images to be clickable, simply wrap the images with the appropriate <a> tag
var slideimages=new Array()
slideimages[0]=
   '<span class=slide><a href="../html/continuous_ink.html" title="Click to view info on Continuous Ink Systems" target="_blank">Learn about our <br>continuous ink systems!<br><img src="../images/continous_ink.jpg" width="157" height="113" border="0"></a></span>'
slideimages[1]=
   '<span class=slide><a href="../html/sales_paper.html" title="Click to view our Sales Paper" target="_blank">EPSON&trade; Cartridges <br> starting at $4.99!<br><img src="../images/ink.jpg" width="84" height="84" border="0"></a></span>'
slideimages[2]=
'<span class=slide><a href="../html/sales_paper.html" title="Click to view our Sales Paper" target="_blank">*USB Cables*<br> Unbelievable Prices!<br><img src="../images/USB_2.0.jpg" width="84" height="84" border="0"></a></span>'
slideimages[3]=
   '<span class=slide><img src="../images/kon.jpg" width="107" height="74" border="0"><br>Konica Minolta&trade;<br> Service Center</span>'
slideimages[4]=
   '<span class=slide><a href="../html/sales_paper.html" title="Click to view our Sales Paper" target="_blank">*FEATURED PRODUCT*<br><img src="../images/featured_product.jpg" width="104" height="70" border="0"><br>LaserJet 4L/ 4ML/ 4MP/ 4P-(PX) Compatible</a></span>'
slideimages[5]=
   '<span class=slide><img src="../images/hp.jpg" width="51" height="57" border="0"><br>We are your <br> local HP&trade; Experts!</span>'
//extend this list

///////Do not edit pass this line///////////////////////
     
var ie=document.all
var dom=document.getElementById

if (slideimages.length>1)
i=2
else
i=0

function move1(whichlayer)
{
   tlayer=eval(whichlayer)
   if (tlayer.left>0&&tlayer.left<=5)
   {
      tlayer.left=0
      setTimeout("move1(tlayer)",pausebetweenimages)
      setTimeout("move2(document.main.document.second)",pausebetweenimages)
      return
   }
   if (tlayer.left>=tlayer.document.width*-1)
   {
      tlayer.left-=5
      setTimeout("move1(tlayer)",50)
   }
   else
   {
      tlayer.left=parseInt(scrollerwidth)+5
      tlayer.document.write(slideimages[i])
      tlayer.document.close()
      if (i==slideimages.length-1)
         i=0
      else
         i++
   }
}

function move2(whichlayer)
{
   tlayer2=eval(whichlayer)
   if (tlayer2.left>0&&tlayer2.left<=5)
   {
      tlayer2.left=0
      setTimeout("move2(tlayer2)",pausebetweenimages)
      setTimeout("move1(document.main.document.first)",pausebetweenimages)
      return
   }
   if (tlayer2.left>=tlayer2.document.width*-1)
   {
      tlayer2.left-=5
      setTimeout("move2(tlayer2)",50)
   }
   else
   {
      tlayer2.left=parseInt(scrollerwidth)+5
      tlayer2.document.write(slideimages[i])
      tlayer2.document.close()
      if (i==slideimages.length-1)
         i=0
      else
         i++
   }
}

function move3(whichdiv)
{
   tdiv=eval(whichdiv)
   if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5)
   {
      tdiv.style.left=0+"px"
      setTimeout("move3(tdiv)",pausebetweenimages)
      setTimeout("move4(scrollerdiv2)",pausebetweenimages)
      return
   }
   if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1)
   {
      tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
      setTimeout("move3(tdiv)",50)
   }
   else
   {
      tdiv.style.left=scrollerwidth
      tdiv.innerHTML=slideimages[i]
      if (i==slideimages.length-1)
         i=0
      else
         i++
   }
}

function move4(whichdiv)
{
   tdiv2=eval(whichdiv)
   if (parseInt(tdiv2.style.left)>0&&parseInt(tdiv2.style.left)<=5)
   {
      tdiv2.style.left=0+"px"
      setTimeout("move4(tdiv2)",pausebetweenimages)
      setTimeout("move3(scrollerdiv1)",pausebetweenimages)
      return
   }
   if (parseInt(tdiv2.style.left)>=tdiv2.offsetWidth*-1)
   {
      tdiv2.style.left=parseInt(tdiv2.style.left)-5+"px"
      setTimeout("move4(scrollerdiv2)",50)
   }
   else
   {
      tdiv2.style.left=scrollerwidth
      tdiv2.innerHTML=slideimages[i]
      if (i==slideimages.length-1)
      i=0
      else
      i++
   }
}

function move5(whichdiv)
{
   tdiv=eval(whichdiv)
   if (parseInt(tdiv.style.left)>0&&parseInt(tdiv.style.left)<=5)
   {
      tdiv.style.left=0+"px"
      setTimeout("move3(tdiv)",pausebetweenimages)
      setTimeout("move4(scrollerdiv2)",pausebetweenimages)
      return
   }
   if (parseInt(tdiv.style.left)>=tdiv.offsetWidth*-1)
   {
      tdiv.style.left=parseInt(tdiv.style.left)-5+"px"
      setTimeout("move3(tdiv)",50)
   }
   else
   {
      tdiv.style.left=scrollerwidth
      tdiv.innerHTML=slideimages[i]
      if (i==slideimages.length-1)
         i=0
      else
         i++
   }
}

function startscroll()
{
   if (ie||dom)
   {
      scrollerdiv1=ie? first2 : document.getElementById("first2")
      scrollerdiv2=ie? second2 : document.getElementById("second2")
      move3(scrollerdiv1)
      scrollerdiv2.style.left=scrollerwidth
   }
   else if (document.layers)
   {
      document.main.visibility='show' 
      move1(document.main.document.first)
      document.main.document.second.left=parseInt(scrollerwidth)+5
      document.main.document.second.visibility='show'
   }
}

window.onload=startscroll

document.writeln('<ilayer id="main" width=&{scrollerwidth}; height=&{scrollerheight}; bgColor=&{scrollerbgcolor}; visibility=hide>')
document.writeln('<layer id="first" left=1 top=0 width=&{scrollerwidth}; >')

if (document.layers)
   document.write(slideimages[0])

document.writeln('</layer>')
document.writeln('<layer id="second" left=0 top=0 width=&{scrollerwidth}; visibility=hide>')

if (document.layers)
   
   document.write(slideimages[1])
document.writeln('</layer>')
document.writeln('</ilayer>')


if (ie||dom)
{
   document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+'">')
   document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
   document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:1px;top:0px;">')
   document.write(slideimages[0])
   document.writeln('</div>')
   document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px">')
   document.write(slideimages[1])
   document.writeln('</div>')
   document.writeln('</div>')
   document.writeln('</div>')
}









