function invertir(capa)
{

	 document.all[capa].style.filter = "Flipv()";
	// document.all[capa].style.filter = "glow(color=#F9040F)alpha(opacity=80)";

}

function byn(capa)
{

	document.all[capa].style.filter = "blur(Add=true, Direction=0, Strength= 20)";

}
function revertir(capa)
{
	
	document.all[capa].style.filter = " ";

}

function parar() {
	// document.write('mov: ', mov+' inicio: ', inicio+' tope: ',tope);
	para=0;	
}

function vacio() {
	vacio=0;
}

function moverarr(capa,tope) {
	if (mov > tope){ 	
		mov-=1;
//		document.write('mov', mov);
		document.getElementById(capa).style.top=+mov;
		if (para==1){
			setTimeout("moverarr('"+capa+"','"+tope+"')",1);
		}
	}				
	
}
function moverabj(capa,inicio){
	
	if (mov < inicio){ 	
		mov+=1;
		document.getElementById(capa).style.top=+mov;
		if (para==1){
			setTimeout("moverabj('"+capa+"','"+inicio+"')",1);
		}
	}

}

function Permut (flag,img) {
   if (document.images) {
        if (document.images[img].permloaded) {
            if (flag==1) document.images[img].src = document.images[img].perm.src
            else document.images[img].src = document.images[img].perm.oldsrc
        }
   }
}
function preloadPermut (img,adresse) {
   if (document.images) {
        img.onload = null;
        img.perm = new Image ();
        img.perm.oldsrc = img.src;
        img.perm.src = adresse;
        img.permloaded = true;
   }
}

function empezar() {
	para=1;	
}



