function switchScheda() {
	var scheda=document.getElementById('pScheda');
	if(scheda.style.display=='none') scheda.style.display='block';
	else scheda.style.display='none';
	}

k_Navigator=function() {
	var currentImg=0;
	var container=false;
	var div_container=false;
	var Timer=false;
	var show="true";
	var imgs=Array();
	var tmpww=0;
	var destinationURL="";
	var offset=20;
	var mouseoffset=0;
	var pixelratio=1;

	this.setContainer=function(c) {
		div_container=document.getElementById(c);
		div_container.style.position="absolute";
		div_container.style.top="0";
		div_container.style.left="0";
		container=document.getElementById(c).parentNode;
		mouseoffset=kGetPosition(container).x;
		}

	this.init=function() {
		imgs=div_container.getElementsByTagName('li');
		var width=0;
		var sel=false;
		for(var i=0;imgs[i];i++) {
			width+=imgs[i].offsetWidth+20;
			var a=imgs[i].getElementsByTagName('A')[0];
			a.setAttribute("i",i);
			}
		tmpww+=imgs[i-1].offsetWidth/2;
		div_container.style.width=width+'px';
		if(width>container.offsetWidth) {
			div_container.onmouseover=this.moveStart;
			div_container.onmouseout=this.moveStop;
			pixelratio=(width-container.offsetWidth+offset*2)/(container.offsetWidth-offset*2);
			div_container.style.left=offset-tmpww+(tmpww*(width-(width-container.offsetWidth+offset*2))/width)+"px";
			}
		else {
			div_container.style.left=((container.offsetWidth-width)/2)+"px";
			}
		}
	
	this.moveStart=function() {
		Timer=setInterval(move,20);
		}
	this.moveStop=function() {
		clearInterval(Timer);
		}
	this.move=function() {
		var posNow=-((kWindow.mousePos.x-mouseoffset-offset)*pixelratio)+offset;
		div_container.style.left=parseInt(div_container.style.left)-((parseInt(div_container.style.left)-posNow)/10)+'px';
		/*if(posNow-parseInt(div_container.style.left)<10&&posNow-parseInt(div_container.style.left)>-10) {
			div_container.style.left=posNow;
			}*/
		}
	move=this.move;
	}
