var m_celda;
var m_color;
function m_on(m_celda, m_color){
document.getElementById(m_celda).className='menu_ver';
}
function m_off(m_celda){
document.getElementById(m_celda).className='menu';
}
function img_over(n_img, img_on){
document.images[n_img].src=img_on;
}
function img_out(n_img, img_off){
document.images[n_img].src=img_off;
}


function carita_on(){
document.getElementById('carita').style.display="block";
}
function carita_off(){
document.getElementById('carita').style.display="none";
}


var f_f=0;
var tiempo_f=1000;
//id_n='0';
function fade_f(){

//document.title = 'trans_'+if_f;
f_f++;
tiempo_f=tiempo_f-50;
	if(f_f<='11'){
//alert('hola fade if '+f_f);
document.title = 'trans_'+if_f;
document.getElementById('f_1').className='trans_'+f_f;

setTimeout("fade_f()",tiempo_f) 
	}
}
function fade_retraso_f(){
//cuadro();
//alert('hola');
setTimeout("fade_f()",500) 
}


var xx;
var xtop;
var i;
xx =new Number("100");
xtop= new Number("0");
function mover(){
document.getElementById('este' + i).style.backgroundPosition = '-' + xx + 'px -90px';
	if(xx<=800 && xtop!=1){
xx += parseInt(6);
//alert('ida  xx' + xx);
		if(xx>=800){
xtop += parseInt(1);
//alert('ida ' + xtop);
		}
setTimeout("mover()",100);
	}else if(xtop==1){
xx -= parseInt(6);
//alert('vuelta ' + xtop + 'xx ' + xx);
		if(xx==100){
xtop -= parseInt(1);
		}
setTimeout("mover()",100);
	}
}
setTimeout("mover()",600);

