function slide(name, steps, maxct){
	obj = $(name);

	if (obj!=null) {
		val = parseInt(obj.style.marginLeft) + 0;
		if (isNaN(val)) val = 0;

		pos = (-1*val) / step_width + steps;
		pos = pos.round();

		while (pos<0) pos += maxct;
		while(pos>=maxct) pos -= maxct;
		
		
		val = -1 * pos * step_width;
		
		new Effect.Morph(name,{
		  style:'margin-left:'+(val)+'px',
		  duration:0.6
		});
	} 
}

function slideTo(name, pos, maxct){
	obj = $(name);

	if (obj!=null) {
		val = parseInt(obj.style.marginLeft) + 0;
		if (isNaN(val)) val = 0;

		while (pos<0) pos += maxct;
		while(pos>=maxct) pos -= maxct;
		
		
		val = -1 * pos * step_width;
		
		new Effect.Morph(name,{
		  style:'margin-left:'+(val)+'px',
		  duration:0.6
		});
	} 
}
