//**************************************
//Autor: Ariel Bacher - José Luis Lasala
//**************************************

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ns6 = (this.b=="ns" && this.v>=6)
	this.ie = (this.b=="ie" && this.v>=4)
	this.kon = (this.b=="Konkeror")
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}

// automatically create the "is" object
is = new BrowserCheck()

//estilos Plantilla
css_NS = "style_NS.css";
css_IE = "style_IE.css";
css_N6 = "style_N6.css";
css_KQ = "style_KQ.css";

if(is.ie){
   document.write("<link rel='stylesheet' href='css/" + css_IE + "' type='text/css'>");
}

if ((is.ns5) || (is.ns6)) {
	document.write("<link rel='stylesheet' href='css/" + css_N6 + "' type='text/css'>");
}

if (is.ns4){
	document.write("<link rel='stylesheet' href='css/" + css_NS + "' type='text/css'>");
}		

if(is.kon){
   document.write("<link rel='stylesheet' href='css/" + css_KQ + "' type='text/css'>");
}

