﻿/*Scrolling Methods*/
//function ScrollPartners() { }

var scrollStep = 3;
var timerLeft = "";
var timerRight = "";
var timerTop = "";
var timerBottom = "";

function toLeft(id) {
	document.getElementById(id).scrollLeft = 0;
}
function scrollDivLeft(id) {
  clearTimeout(timerLeft);
	document.getElementById(id).scrollLeft += scrollStep;
	timerLeft = setTimeout("scrollDivLeft('" + id + "')", 10);
}

function toRight(id) {
	document.getElementById(id).scrollLeft = document.getElementById(id).scrollWidth;
}
function scrollDivRight(id) {
	clearTimeout(timerRight);
	document.getElementById(id).scrollLeft -= scrollStep;
	timerRight = setTimeout("scrollDivRight('" + id + "')", 10);
}

function toTop(id) {
	document.getElementById(id).scrollTop = 0;
}
function scrollDivTop(id) {
  clearTimeout(timerTop);
	document.getElementById(id).scrollTop -= scrollStep;
	timerTop = setTimeout("scrollDivTop('" + id + "')", 10);
}

function toBottom(id) {
	document.getElementById(id).scrollBottom = 0;
}
function scrollDivBottom(id) {
  clearTimeout(timerBottom);
  document.getElementById(id).scrollTop += scrollStep;
	timerBottom = setTimeout("scrollDivBottom('" + id + "')", 10);
}

function stopScrollDiv() {
	clearTimeout(timerRight);
	clearTimeout(timerLeft);
	clearTimeout(timerTop);
	clearTimeout(timerBottom);
}

