

function accSIT(t,v,el) {
	var icb=el.parentNode.parentNode;
	var box=document.getElementById(icb.id.replace('ic_','it_'));
	box.innerHTML=t;
	if (v) box.innerHTML+=" : "+v;
}
function accCIT(el) {
	var icb=el.parentNode.parentNode;
	var box=document.getElementById(icb.id.replace('ic_','it_'));
	box.innerHTML='';
}
var moving=false;
var moveobject=null;
var speed=2;
var direction=1;
var moveinterval=null
function goUpGal(id) {
	moving=true;
	moveobject=document.getElementById(id);
	direction=1;
	moveinterval=setInterval(goMove,5);
}
function goDownGal(id) {
	moving=true;
	moveobject=document.getElementById(id);
	direction=-1;
	moveinterval=setInterval(goMove,5);
}
function stopMove() {
	moving=false;
	moveobject=null;
	clearInterval(moveinterval);
}
function goMove() {
	if (moving && (moveobject.offsetHeight>218)) {
		var xpos=moveobject.offsetTop+direction*speed;
		if (xpos>0)  xpos=0;
		else if (xpos<(180-moveobject.offsetHeight)) xpos=180-moveobject.offsetHeight;
		moveobject.style.top=xpos+"px";
	}
}

