$(function(){
		$('.scroll').show();
		var ul = $('#strip ul');
		ul.css('overflow', 'hidden').width(10000);
		
		var sum = 0;
		var l = 0;
		var scrolls = [];
		var count = Math.ceil($('#strip ul li').css('position', 'absolute').each(function (i){
			$(this).css('left', sum+'px');
			//if (i%4==0)
			//{
					scrolls.push(sum);
			//}
			sum+=$(this).outerWidth(true);
			$(this).width($(this).outerWidth(true));
			if (i>3) {
				//$(this).hide();
			}
		}).length);
		ul.width(sum);
		
		
		$('#scroll-right').click(function() {
			if (l<count-4)
			{
				l++;
				ul.animate({left: (-1)*scrolls[l]+'px'}, 500);
			}
		});
		
		$('#scroll-left').click(function() {
			if (l>0)
			{
				l--;
				ul.animate({left: (-1)*scrolls[l]+'px'}, 500);
			}
		});
		
		$('#products .gal').each(function() {
			$(this.getElementsByTagName('a')).lightBox();
		});
		
		$.localScroll.hash({
			target: 'body', // Could be a selector or a jQuery object too.
			queue:true,
			duration:1500
		});
		
		$.localScroll({
			target: 'body', // could be a selector or a jQuery object too.
			queue:true,
			duration:1000,
			hash:true,
			onBefore:function( e, anchor, $target ){
				// The 'this' is the settings object, can be modified
			},
			onAfter:function( anchor, settings ){
				// The 'this' contains the scrolled element (#content)
			}
		});

	});
