function getobj(id){return document.getElementById(id)}


	var scrollsize = 125;	// widths sum of element + divider (classes .models .delim è .model)
	var polpi = Math.PI/2;
	var steps = 30;
	var step = polpi/steps;
	var ignited = false;

	function Scroll(obj, direction){
		var initialX = obj.scrollLeft;
		var angle = polpi;
		if (ignited) return;
		ignited = true;

		ScrollIt();
		function ScrollIt(){
			if (angle < 0) {
				obj.scrollLeft = initialX + scrollsize*direction;
				ignited = false;
				return;
			}

			angle -= step;
			var shiftx = Math.cos(angle)*scrollsize;
			obj.scrollLeft = Math.round(initialX + shiftx*direction);

			setTimeout(ScrollIt, 10);
		}
	}
	
	
function showImage(src, w, h)
{	
	document.getElementById("bigpic").src = src;
	document.getElementById("bigpic").width = w;
	document.getElementById("bigpic").height = h;
	
	return false;
	
	h2 = h;
	w2=w;
	if(h2>700) {h2 = 700; w2 = w + 16;}
	
	x = (screen.width-w2)/2;
	y = (screen.height-h2)/2;
	
	var win = window.open("", "", "top="+y+", left="+y+", scrollbars=on, status=no, titlebar=no, resizable=no, width="+w2+",height="+h2);
	win.document.open();
	win.document.write('<html><head></head><body style="margin:0px; padding:0px">');
	win.document.write('<DIV style="width:'+w2+'px; height: '+h2+'px; overflow: auto; "><a href="javascript:window.close()"><img src="'+src+'" width="' + w + '" height="' + h + '" border="0"></a>');
	win.document.write('</body>');
	win.document.close();
	return false;
}	

