<!--w-h-b-->
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();

function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

//centrar ventana
function centrar()
{
if(window.document.all)
	{
		izq = (screen.availWidth) ? (screen.availWidth-520)/2 : 0;
		alt = (screen.availHeight) ? (screen.availHeight-616)/2 : 0;
	}else{
		izq = (screen.width) ? (screen.width-520)/2 : 0;
		alt = (screen.height) ? (screen.height-616)/2 : 0;
	}
	
//iz=(screen.width-document.body.clientWidth) / 2;
//de=(screen.height-document.body.clientHeight) / 2;
moveTo(izq,alt);
}
//Abrir ventana
function abrirventana(url,width, height)
{
	if(document.all)
	{
		izq = (screen.availWidth) ? (screen.availWidth-width)/2 : 0;
		alt = (screen.availHeight) ? (screen.availHeight-height)/2 : 0;
	}else{
		izq = (screen.width) ? (screen.width-width)/2 : 0;
		alt = (screen.height) ? (screen.height-height)/2 : 0;
	}

	ventana = window.open(url, '', "toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=yes,resizable=0,left=" + izq + ",top=" + alt + ",width=" + width + ",height=" + height);
	ventana.focus();
}
