jQuery.fn.imageScroller = function(){
	var _btnNext = $("#scrollLeft");
	var _btnPrev = $("#scrollRight");
	var _imgFrame = $("#imageSlider");
	var _width = 170;
	var _currentLeft = 0;
	var _count = 0;
	
	$("#scrollLeft").click( function() {
		if (_currentLeft <= -_width) {
			_currentLeft = Number(_currentLeft + _width); 
			$(".imageScroller").animate( {marginLeft:_currentLeft}, 'slow')} 
		} 
	);
	$("#scrollRight").click( function() {
		_count=0;
		$("#imageSlider").find("a:visible").each(function() {_count=_count+1;});
		if (850 <= ((_count*_width)+_currentLeft)) {
			_currentLeft = Number(_currentLeft - _width); 
			$(".imageScroller").animate( {marginLeft:_currentLeft}, 'slow')} 
		}
	);
};

