var f = 0;
var x = 0;
var y = 0;
var yh = 0;
var p = 0;
var i2;
var i5;
var t;
var k=0;
var kk=0;
mactest=(navigator.userAgent.indexOf("Mac")!=-1) //My browser sniffers
Netscape=(navigator.appName.indexOf("Netscape") != -1)
msafari=(navigator.userAgent.indexOf("Safari")!= -1)
wsafari=0; if(!mactest&&msafari){wsafari=1;msafari=0}
is_opera = 0; if(window.opera){is_opera=1}
is_ie_mac = 0; is_ie=0;if(document.all){is_ie=1}
if(is_ie&&mactest){is_ie_mac=1}

if(mactest&&!msafari&&!is_ie_mac){k=1}

function startmouse() { if(Netscape) {document.captureEvents(Event.MOUSEMOVE);}
  document.onmousemove=getCoords;
} 

function getCoords(e){
	if (!e) var e = window.event;
	if (e.pageX){
		x = e.pageX;
		y = e.pageY;
	}
	else if (e.clientX){
		x = e.clientX + document.body.scrollLeft;
		y = e.clientY + document.body.scrollTop;
	}
   if (k) {kk=yh*1.08} else {kk=yh}
   if(p>0&&f>0){
      if((x<(240+(p-1)*66))||(x>(306+(p-1)*66))||y<150||y>kk){
         stringum();
        box(i2,-200,444);
        p=0;f=0;
  }
 }
  else if(x>240&&x<702&&y>152&&y<179&&f==0){
		f=1;p=parseInt((x-174)/66);
      stringum();
		box(i2,i5,182);
 }
}

function stringum(){i2='id' + ( 801 + (p*10)).toString();i5=220+(p-1)*66;}

function backgrnd( t, r ) {w='#3399ff';if(!r)w='#0000aa';document.getElementById(t).style.backgroundColor = w;}

function box( q, s, u ) {var e=document.getElementById(q);e.style.left=s+'px';e.style.top=u+'px';}

 if(!document.getElementById)
   alert( "This page will not function properly in your browser.\n\nYour browser is very old.  Please upgrade your browser to IE5.5 or later or Netscape 7 or later. There are links to both at the bottom of the page." );

var speed = 1500;

var Pic = new Array();
Pic[0] = 'header1s.jpg';
Pic[1] = 'header3s.jpg';
Pic[2] = 'header9s.jpg';
Pic[3] = 'header5s.jpg';
Pic[4] = 'header6s.jpg';
Pic[5] = 'header7s.jpg';
Pic[6] = 'header2s.jpg';
Pic[10] = 'bikerider.jpg';
Pic[7] = 'header8s.jpg';
Pic[8] = 'header4s.jpg';
Pic[9] = 'header10s.jpg';

var j = -1;
var v = 11;
var ka = 0;
var tt;

var images = new Array();
images[0] = "rt/Rotator_1.jpg";          
images[1] = "rt/Rotator_2.jpg";          
images[2] = "rt/Rotator_3.jpg";          
images[3] = "rt/Rotator_4.jpg";          
images[4] = "rt/Rotator_5.jpg";          
images[5] = "rt/Rotator_6.jpg";          
images[6] = "rt/Rotator_7.jpg";          
images[7] = "rt/Rotator_8.jpg";          
images[8] = "rt/Rotator_9.jpg";          
images[9] = "rt/Rotator_10.jpg";          
images[10] = "rt/Rotator_11.jpg";          
images[11] = "rt/Rotator_12.jpg";
images[12] = "rt/Rotator_13.jpg";          
images[13] = "rt/Rotator_14.jpg";          
images[14] = "rt/Rotator_15.jpg";          

var adlinks = new Array();
adlinks[0] = 'Wind-Jackets.html';
adlinks[1] = 'Womens-Touring-Shorts.html';
adlinks[2] = 'Mens-Bike-Jerseys.html';
adlinks[3] = 'Waterproof-Helmet-Covers.html';
adlinks[4] = 'Legbands.html';
adlinks[5] = 'Lycra-Shorts-Unisex.html';
adlinks[6] = 'Rain-Capes.html';
adlinks[7] = 'Mens-Bike-Jerseys.html';
adlinks[8] = 'Waterproof-Rain-Pants.html';
adlinks[9] = 'Womens-Touring-Shorts.html';
adlinks[10] = 'Custom-Wind-Jackets.html';
adlinks[11] = 'Mens-Bike-Jerseys.html';
adlinks[12] = 'Wind-Jackets.html';
adlinks[13] = 'Mens-Bike-Jerseys.html';
adlinks[14] = 'Lycra-Shorts-Unisex.html';

function runSlideShow() {
   j++;
   if (j == v){ka=1;speed=2555;}
   if (j == 26 && ka == 1){j=11;clearTimeout(tt);}
   if (j<11){document.SlideShow.src = Pic[j];}else{document.SlideShow2.src = images[j-11];window.status=images[j-11];}
   tt = setTimeout("runSlideShow()", speed);
}

function newLocation() {
   document.location.href = adlinks[(j-11)*(ka==1)];
}

