/*	var overTimer = null;
	var npixels = 25;
	var speedrate = 75;
	
	$(document).ready( function() {
		if( $('.iContainer').width() > $('.items').width() ) {
			$('div.arr_r').hover(
				function() {
					overTimer = setInterval( 'scrollItRight()', speedrate );
				},
				function() {
					clearInterval( overTimer );
					overTimer = null;
				}
			);
			$('div.arr_l').hover( 
				function() {
					overTimer = setInterval( 'scrollItLeft()', speedrate );
				},
				function() {
					clearInterval( overTimer );
					overTimer = null;
				}
			);
		}
	});
	
	function scrollItRight() {
		if( $('.items').scrollLeft() <= 0 )
			return;
		$('.items').scrollLeft( $('.items').scrollLeft() - npixels );
	}
	
	function scrollItLeft() {
		if( $('.items').scrollLeft() >= $('.iContainer').width() )
			return;
		$('.items').scrollLeft( $('.items').scrollLeft() + npixels );
	}*/

	var overTimer = null;
	var npixels = 5;
	var speedrate = 50;
	
	$(document).ready( function() {
			/*$('.navigation').show();*/
		var divWidth = 0;
		$('#photos > div > img').each( function( i ) {
			divWidth += 50;
		});
		$('#photos > div').width( divWidth );
		
			$('div.arr_r').hover(
				function() {
					if( BrowserDetect.browser == 'Chrome' )
						overTimer = setInterval( 'scrollItLeft()', speedrate );
					else if ( BrowserDetect.browser == 'Firefox' )
						overTimer = setInterval( 'scrollItRight()', speedrate );
					else overTimer = setInterval( 'scrollItRight()', speedrate );
				},
				function() {
					clearInterval( overTimer );
					overTimer = null;
				}
			);
			$('div.arr_l').hover( 
				function() {
					if( BrowserDetect.browser == 'Chrome' )
						overTimer = setInterval( 'scrollItRight()', speedrate );
					else if ( BrowserDetect.browser == 'Firefox' )
						overTimer = setInterval( 'scrollItLeft()', speedrate );
					else overTimer = setInterval( 'scrollItLeft()', speedrate );
				},
				function() {
					clearInterval( overTimer );
					overTimer = null;
				}
			);
	});
	
	function scrollItRight() {
		if( BrowserDetect.browser == 'Firefox' ) {
			if( $('#photos').scrollLeft() >= 0 )
				return;
			$('#photos').scrollLeft( $('#photos').scrollLeft() + npixels );
		} else {
			if( $('#photos').scrollLeft() <= 0 )
				return;
			$('#photos').scrollLeft( $('#photos').scrollLeft() - npixels );
		}
	}
	
	function scrollItLeft() {
		if( BrowserDetect.browser == 'Firefox' ) {
			if( $('#photos').scrollLeft() <= ($('#photos > div').width()*-1) )
				return;
			$('#photos').scrollLeft( $('#photos').scrollLeft() - npixels );
		} else {
			if( $('#photos').scrollLeft() >= $('#photos > div').width() )
				return;
			$('#photos').scrollLeft( $('#photos').scrollLeft() + npixels );
		}
	}
