function Nav() {
	var agent  = navigator.userAgent.toLowerCase();
	this.major = parseInt(navigator.appVersion);
	this.minor = parseFloat(navigator.appVersion);
	this.ns    = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	this.ns2   = (this.ns && (this.major == 2));
	this.ns3   = (this.ns && (this.major == 3));
	this.ns4b  = (this.ns && (this.minor < 4.04));
	this.ns4   = (this.ns && (this.major >= 4));
	this.ie    = (agent.indexOf("msie") != -1);
	this.ie3   = (this.ie && (this.major == 2));
	this.ie4   = (this.ie && (this.major >= 4));
	this.win   = (agent.indexOf("win")!=-1);
	this.mac   = (agent.indexOf("mac")!=-1);
	this.unix  = (agent.indexOf("x11")!=-1);
}

var is = new Nav();

if(is.ns4) {
	doc = "document";
	sty = "";
	html = ".document"
} else if(is.ie4) {
	doc = "document.all";
	sty = ".style";
	html = ""
}

//Imágenes en la barra
	fragancias_on           = new Image();
	fragancias_on.src       = path+"imagenes/site/botones/bot_fragancias_on.jpg";
	fragancias_off          = new Image();
	fragancias_off.src      = path+"imagenes/site/botones/bot_fragancias.jpg";
	maquillaje_on           = new Image();
	maquillaje_on.src       = path+"imagenes/site/botones/bot_maquillaje_on.jpg";
	maquillaje_off          = new Image();
	maquillaje_off.src      = path+"imagenes/site/botones/bot_maquillaje.jpg";
	micuenta_on           = new Image();
	micuenta_on.src       = path+"imagenes/site/botones/bot_micuenta_on.jpg";
	micuenta_off          = new Image();
	micuenta_off.src      = path+"imagenes/site/botones/bot_micuenta.gif";
	registro_on            = new Image();
	registro_on.src        = path+"imagenes/site/botones/bot_registro_on.gif";
	registro_off           = new Image();
	registro_off.src       = path+"imagenes/site/botones/bot_registro.gif";
	certificado_on         = new Image();
	certificado_on.src     = path+"imagenes/site/botones/bot_certificado_on.gif";
	certificado_off        = new Image();
	certificado_off.src    = path+"imagenes/site/botones/bot_certificado.gif";
	directorio_on          = new Image();
	directorio_on.src      = path+"imagenes/site/botones/bot_directorio_on.gif";
	directorio_off         = new Image();
	directorio_off.src     = path+"imagenes/site/botones/bot_directorio.gif";
	liquidacion_on          = new Image();
	liquidacion_on.src      = path+"imagenes/site/botones/bot_liquidacion_on.gif";
	liquidacion_off         = new Image();
	liquidacion_off.src     = path+"imagenes/site/botones/bot_liquidacion.gif";

//Prender imagen
function img_on(imageName,layerName)
{
	imageOn = eval(imageName + "_on.src");
	if(is.ns4) {
		document[layerName].document[imageName].src = imageOn
	} else if(is.ie4) {
		document[imageName].src = imageOn
	}
}

//Apagar imagen
function img_off(imageName,layerName)
{
	imageOff = eval(imageName + "_off.src");
	if(is.ns4) {
		document[layerName].document[imageName].src = imageOff
	} else if(is.ie4) {
		document[imageName].src = imageOff
	}
}
