<!--

/* Infinite scroll script by Paul Anderson, copyright 2001 CNET Builder.com.
   Based on navigation script from www.foxmovies.com. May be freely used with
   attribution. Not for resale, all rights reserved. */

/* This script assumes it's in a frameset and will scroll another frame
   named swtFrame. You can make control links with the following hrefs:
     stop/go: href="javascript:infStopGo()"
     back:    href="javascript:infScroll(-jumpWidth)"
     next:    href="javascript:infScroll(jumpWidth)"
   Set menuWidth to the pixel width of the entire scrolling page,
   jumpWidth to the distance the back/next controls should skip, and
   scrollPage to the scrolling speed (lower is faster.) */

var menuWidth=2116;
var jumpWidth=208;
var scrollPace=40;

var xLoc=0;
var xStep=1;
var jSpeed=8;
var xSteps;
var inf_ID=-1;
var inf_frame=parent.frames.swtFrame;
var inf_doc=inf_frame.document;

function infScroll(xJump) {
clearTimeout(inf_ID);
if (xJump) {
	xStep=xJump/jSpeed;
	xSteps=jSpeed;
	scrollPace/=2;
	}
xLoc+=xStep;
frameW=inf_frame.innerWidth?inf_frame.innerWidth:inf_doc.body.offsetWidth;
frameW+=document.layers?4:0
if (document.layers) { 
	docW=inf_doc.width; 
} else if (inf_doc.body.scrollWidth && navigator.userAgent.indexOf("Mac")==-1) {
	docW=inf_doc.body.scrollWidth;
} else { 
	docW=menuWidth; 
}
if (xLoc >= (docW-frameW)) {
	xLoc-=(docW/2);
	}
else if (xLoc < 0) {
	xLoc+=(docW/2);
	}
inf_frame.scrollTo(xLoc,0);
if (xSteps==1) {
	xStep=1;
	scrollPace*=2;
	}
if (xSteps > 0) xSteps--;
inf_ID=setTimeout("infScroll()",scrollPace);
}

function infStopGo() {
if (inf_ID<=0) {
	if (document.all && inf_ID!=0) parent.document.all.swtFrame.scrolling="no";
	infScroll();
	} else {
	clearTimeout(inf_ID);
	inf_ID=0;
	}
}

window.onload=infStopGo;

//-->
