<!-- Copyright (c) 2007 Sensorware, llc  All rights reserved -->

// Global Declarations

var objCurrentTimer;

// scroll left function
function scrollLeft1(){
	divScrollImageContainer.scrollLeft -=6;
}

// scroll right function
function scrollRight(){
	divScrollImageContainer.scrollLeft +=6;
}

// mouseover function
function mOver(src) {
	// change the cursor
	if (!src.contains(event.fromElement)){
			src.style.cursor = 'hand'; 
		}
	// mouseover scroll
	if (src.id != ""){
		errorTrace("overID: ", src.id);
		if (src.id == "divScrollRight"){
			objCurrentTimer = window.setInterval("scrollRight()", 50);
		}
		if (src.id == "divScrollLeft"){
			objCurrentTimer = window.setInterval("scrollLeft1()", 50);
		}
	}
}

//mouse out function
function mOut(src){
	if (!src.contains(event.toElement)){
		src.style.cursor = 'default';
	}
	// clear the timer so scrolling stops
	if (objCurrentTimer != null ){
		window.clearInterval(objCurrentTimer);
	}
}

// mouse click function
function mClick(src){
	if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
	}
}

