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>=5)
	this.ns4 = (this.b=="ns" && this.v==4)
	//this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	//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()

if(is.ns4)	{
	alert("Esta página está optimizada para navegadores Microsoft Explorer, versiones 5 o superiores,\n o Netscape Navigator versiones 6 o superiores.\nDisculpe las molestias.")
}
var selected;
var imagenes;
//precargar las imagenes
var imgScc0 = new Image();
imgScc0.src = 'images/quienesSomosSeccion.jpg';
//var imgScc1 = new Image();
//imgScc1.src = 'images/queHacemosSeccion.jpg';
//var imgScc2 = new Image();
//imgScc2.src = 'images/solucionesSeccion.jpg';
var imgScc3 = new Image();
imgScc3.src = 'images/referenciasSeccion.jpg';
//var imgScc4 = new Image();
//imgScc4.src = 'images/alianzasSeccion.jpg';
var imgScc5 = new Image();
imgScc5.src = 'images/contactanosSeccion.jpg';
//var imgScc6 = new Image();
//imgScc6.src = 'images/trabajaNosotrosSeccion.jpg';
var imgScc7 = new Image();
imgScc7.src = 'images/productosSeccion.jpg'
var imgScc8 = new Image();
imgScc8.src = 'images/serviciosSeccion.jpg';;

function inicializar()	{	
	selected = 0
	imagenes = new Array(
		'quienesSomos',
		'queHacemos',
		'soluciones',
		'referencias',
		'alianzas',
		'contactanos',
		'trabajaNosotros',
		'productos',
		'servicios'
	)
	document.getElementById("tdOpcion"+selected).className = "itemOver"
}


function rolli(pObj, pClase)	{//alert(eval(pObj.id.substr(pObj.id.length-1)))
	if(eval(pObj.id.substr(pObj.id.length-1)) == selected)
		return
	pObj.className = pClase
}

function getPage(valor)	{
	top.contenido.location = imagenes[valor]+".html";		
	return
}
function setPage(valor, color)	{
	if(selected != null && selected != valor)
		document.getElementById("tdOpcion"+selected).className = ""
	document.getElementById("tdOpcion"+valor).className = "itemOver"
	selected = valor
}