var c=0;
var t=0;
var pos=0;
var act;
var ncx=0;

function posTG(act){
	var cx=0;
	cx=-(act*270)+270;
	document.getElementById('posTG').style.left=c+"px";
	
	if(ncx>cx){
		t=setTimeout("posTG(act)",10);
		c=c-45;
		if(c<cx){stopCount();}
		//alert(ncx);
	}else if(ncx<cx){
		t=setTimeout("posTG(act)",10);	
		c=c+45;
		if(c>cx){ stopCount();}
		ncx=cx;
	}
	ncx=c;
}//*467811199
function stopCount(){clearTimeout(t);}
