LSD.events.add(window, 'load', function() {
	var center = LSD.dom.get('class', 'center', 'div')[0];
	var products = LSD.dom.get('tag', 'a', center || false);
		if (products) {
			for (var i = 0 ; i < products.length ; i++) {
				var height = Math.max(LSD.element.height(products[i]), height);
				products[i].style.height = height+'px';
			}
center.style.overflow = 'hidden';
			var container = LSD.dom.get('tag', 'div', center)[0];
			if (container) {
container.style.width = (Math.ceil(products.length/3)*207)+'px';
container.right = (Math.ceil(products.length/3)*207);
container.left = 0;
				container.style.height = height*3+'px';
				container.style.overflow = 'hidden';
			}
			var right = LSD.dom.get('tag', 'div', LSD.dom.get('class', 'right', 'div')[0] || false)[0];
			if (right) {
				right.style.height = height*3+'px';
				right.style.overflow = 'hidden';
			}
			
			var right_arrow = LSD.dom.create('img');
			right_arrow.style.cssText = 'width: 23px; height: 18px; float: right;';
			right_arrow.alt = '>';
			right_arrow.src = 'images/scroll_right_off.gif';
			LSD.events.add(right_arrow, 'mouseover', function() {
				this.src = this.src.replace('off', 'on');
				timer = setInterval(function() { if ((container.right + container.left) > 413) { container.style.left = (container.left--)+'px'; } else { clearInterval(timer); } }, 20);
			});
			LSD.events.add(right_arrow, 'mouseout', function() {
				this.src = this.src.replace('on', 'off');
				clearInterval(timer);
			});
			LSD.dom.insert_last(right_arrow, center);
			
			var left_arrow = LSD.dom.create('img');
			left_arrow.style.cssText = 'width: 23px; height: 18px; float: right;';
			left_arrow.alt = '<';
			left_arrow.src = 'images/scroll_left_off.gif';
			LSD.events.add(left_arrow, 'mouseover', function() {
				this.src = this.src.replace('off', 'on');
				timer = setInterval(function() { if (container.left < 0) { container.style.left = (container.left++)+'px'; } else { clearInterval(timer); } }, 20);
			});
			LSD.events.add(left_arrow, 'mouseout', function() {
				this.src = this.src.replace('on', 'off');
				clearInterval(timer);
			});
			LSD.dom.insert_last(left_arrow, center);
		}
	
});
