function montre(id){
	with(document){
		if(getElementById)
			getElementById(id).style.display = 'block';
		else if(all)
			all[id].style.display = 'block';
		else
			layers[id].display = 'block';
	}
}
function cache(id){
	with(document){
		if(getElementById)
			getElementById(id).style.display = 'none';
		else if(all)
			all[id].style.display = 'none';
		else
			layers[id].display = 'none';
	}
}

var step = -1;
var pause = 0;
function stop(){
	pause = step;
	step = 0;
}
function weiter(){
	step = pause;
}

function marquee(x,typ,m){
    typ={
        'up':[-1,'top','offsetHeight'],
        'down':[1,'top','offsetHeight'],
        'left':[-1,'left','offsetWidth'],
        'right':[1,'left','offsetWidth']
    }[typ];
    ((m=this).mOut=document.getElementById(x)).onmouseover=function(){clearTimeout(m.t)};
    m.mOut.appendChild((m.mIn=m.mOut.childNodes)[0].cloneNode(1));
    m.mOut.onmouseout=function(){m.turlaj(m.i,parseInt(m.mIn[0].style[typ[1]]))};
    m.mOut=m.mIn[0][typ[2]];
    
    m.turlaj=function(i,j){
        if(!m.i)m.i=i;
        m.mIn[0].style[typ[1]]=(-2*i*(j+=i)<(i-1)*m.mOut?(j=(-i-1)/2*m.mOut+i):j)+'px';
        m.mIn[1].style[typ[1]]=j+m.mOut+'px';
        m.t=setTimeout(function(){m.turlaj(i,j)},10)
    }
    m.turlaj(typ[0],0)
}