function initFront() {
	$$('a.slidescroll.right').each(function(w) {
		w.onclick = function () {
			var scroll_length = 66;
			var total_width = $('scroll').style.width;
			var stop_scrolling_width = parseInt(total_width) - (scroll_length * 3);
			curPlace = parseInt($('scroll').style.marginLeft);
			if(!curPlace) {
				$('scroll').morph('margin-left:-'+scroll_length+'px;', {duration: 0.2});	
			} else {
				if (curPlace > (stop_scrolling_width * -1) && curPlace % scroll_length == 0) {
					nextPlace = curPlace - scroll_length;
					$('scroll').morph('margin-left:' + nextPlace  + 'px;', {duration: 0.2});
				}
			}
			return(false);
		}
	});
	$$('a.slidescroll.left').each(function(w) {
		w.onclick = function () {
			var scroll_length = 66;
			curPlace = parseInt($('scroll').style.marginLeft);
			if(curPlace) {
				if(	curPlace < 0 && curPlace%scroll_length == 0) {
					nextPlace = curPlace + scroll_length;
					$('scroll').morph('margin-left:' + nextPlace  + 'px;', {duration: 0.2});
				}
			}
			return(false);
		}
	});
}
document.observe('dom:loaded', initFront);
