var isIExplore = (navigator.userAgent.indexOf('MSIE') != -1) ? 1 : 0;
var isMozilla = (navigator.userAgent.indexOf('Gecko') != -1) ? 1 : 0;

var numRoundsScrolled = 0;
var numRoundsScrollMax = 0;

function gsMatchRoundsScrollLeft() {
	objContainer = document.getElementById('round_container');
	if(!objContainer) return;

	if(numRoundsScrolled < 1) return;

	var oldLeft = parseInt(objContainer.style.marginLeft);
	if(!oldLeft) oldLeft = 0;
	var newLeft = (oldLeft + 23) + 'px';

	objContainer.style.marginLeft = newLeft;

	numRoundsScrolled--;
}

function gsMatchRoundsScrollRight() {
	objContainer = document.getElementById('round_container');
	if(!objContainer) return;

	if(numRoundsScrolled > (numRoundsScrollMax-16)) return;

	var oldLeft = parseInt(objContainer.style.marginLeft);
	if(!oldLeft) oldLeft = 0;
	var newLeft = (oldLeft - 23) + 'px';

	objContainer.style.marginLeft = newLeft;

	numRoundsScrolled++;
}

