var place = 0;
var pos = new Array(0, 0, 0, 1220, 2440, 3660, 4880, 6100, 7320);
var width = 0;
function scrollit(v) { 
var start = pos[place];
if (v > 1) {
if (navigator.appName=="Netscape") {
width = window.innerWidth;
} else {	
width = document.body.clientWidth;
}
c = 760;
x = Math.floor(width-c)/2;
if (c > width) {
c = width-8;
x = Math.floor((width-c)/2)-4;
}
if (!width) {
width = 810;
}
if (width < 810) {
width = width+34;
}
var stop = pos[v]-((width-750)/2)+x;
} else {
var stop = pos[v]+x;
}
if (start < stop) {
while (start <= stop) {
start = start+30;
frames['main'].scrollTo(Math.round(start),0);
}
frames['main'].scrollTo(Math.round(stop),0);
} else if (start >= stop) {
while (stop <= start) {
start = start-30;
frames['main'].scrollTo(Math.round(start),0);
}
frames['main'].scrollTo(Math.round(stop),0);
}
place = v;
}
