/************************************************************************/
/* Javascript Functions                                                 */
/* ==================================================================== */
/* Copyright (c) 2003 by the_bard                                       */
/*                                                                      */
/* the_bardus@hotmail.com                                               */
/* http://thebard.homedns.org/                                          */
/*                                                                      */
/************************************************************************/

/////////////////////////////////////////////////////
// Cambio de Opacidad en Imágenes                  //
/////////////////////////////////////////////////////
function fade_in(what, isimg) {
	if (_browser("opera")) return true;
	if (typeof(what)=="string") what = document.getElementById(what);
	theobject = what;
	highlight = setInterval("fade_highlight(theobject)", 40);
	if(isimg == 0) what.style.MozOpacity = "40%";
}

function fade_out(what) {
	if (_browser("opera")) return true;
	if (typeof(what)=="string") what = document.getElementById(what);
	clearInterval(highlight);
	what.style.MozOpacity = "100%";
	what.filters.alpha.opacity = 100;
}

function fade_highlight(target) {
	(target.filters.alpha.opacity > 40) ? target.filters.alpha.opacity -= 10 : clearInterval(highlight);
}
// /*	/////////////////////////////////////	*/ //