// chequea el navegador
// 09 Junio 2005 10:25

var es = new navegador();

function navegador() {

    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.ns4   = (this.ns && (this.major      ==    4));

    this.ns6   = (this.ns && (this.major      >=    5));

    this.ie    = (agent.indexOf("msie")       !=   -1);

    this.ie3   = (this.ie && (this.major      < 4));

    this.ie4   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   ==   -1));

    this.ie5   = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.0")   !=   -1));

    this.ie55  = (this.ie && (this.major      ==    4) && (agent.indexOf("msie 5.5")   !=   -1));

    this.ie6  = (this.ie && (agent.indexOf("msie 6.0")!=-1) );

}

function rol(pos,nombre,estado){

if (pos=="") pos="../";

if (pos=="20/") pos="../";

eval("document.n"+nombre+".src='"+pos+"img/"+nombre+estado+".gif'");

}

var sol=0;

function openwindow(pos,url,x,y){

	if(es.ns4){

		  open(pos+url,"name","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0"+sol+",resizable=0,width="+x+",height="+y);	

	}else{

		  open(url,"name","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0"+sol+",resizable=0,width="+x+",height="+y);	

   }

}
