	/*****************************************************************
	Nando - Comments: Deteccion de Navegadores, util para Teletipo
	corriendo y demas (ej. buscadores)
	******************************************************************/
	var Ver = parseInt(navigator.appVersion);
	var Nav4 = ((navigator.appName == "Netscape") && (Ver==4));
	var Mozilla = ((navigator.appName == "Netscape") && (Ver>4));
	var IE4 = ((navigator.userAgent.indexOf("MSIE") != -1) && (Ver>=4));
	
	/*****************************************************************
	ver 0.1 // Nando - Comments: funciones overTD, outTD y CLickTD funcionan en
								. DOM1: Netscape6.0 y Mozilla0.7+ PC (puede valer para IE5)
								. Microsoft DHTML: IE4 (lento), IE5.0 e IE5.5 PC
	******************************************************************/
  function overTD(td,color,color2){
		td.style.cursor='hand';
		td.bgColor=color;
		if (IE4) { td.children.tags('A')[0].style.color=color2;}
		if (Mozilla) {
			td.firstChild.className='solapa';
			//td.firstChild.firstChild.nodeValue;
		}
	}
  function outTD(td,color,color2){
		td.style.cursor='default';
		td.bgColor=color;
		if (IE4) { td.children.tags('A')[0].style.color=color2; }
		if (Mozilla) { td.firstChild.className='botonera2'; }
	}
  function clickTD(td){
		if (IE4) { td.children.tags('A')[0].click(); }
		if (Mozilla) { location.href=td.firstChild.href; }
	}
	
	/*****************************************************************
	Mariano - Comments: ver 1.1 - Revisión para tienda unificada.
	textosns.css usado para Netscape 4.x
	textos.css usado para IE4+ y motor Mozilla (Netscape6 entre otros)
	******************************************************************/  
var focoBuscar = false;
function capturaIntro(e){	
	if (focoBuscar){
		if (e.which ==13) llamadaBuscador();
	}	
}	
	
function  campo(){
	if(document.all){
		document.write("<input size='14' name='buscar' id='buscar' style='font-size=9px; font-family: Verdana;height:18px;width:86px' onkeyup='if (window.event.keyCode==13) llamadaBuscador();'>")
	} else if(document.layers && Nav4){		
		document.onkeydown = capturaIntro        
		document.captureEvents(Event.KEYUP);
		document.write("<input name='buscar' id='buscar' style='font-size:10px; font-family: Verdana;height:18px;width:86px' onfocus='focoBuscar=true' onblur='focoBuscar=false'>")		
	}else{
		document.onkeydown = capturaIntro        
		document.captureEvents(Event.KEYUP);		
		document.write("<input name='buscar' id='buscar' style='font-size:10px; font-family: Verdana;height:18px;width:86px' onfocus='focoBuscar=true' onblur='focoBuscar=false'>")
	}
		
}

function AbrirVentana(sPagina, nTamX, nTamY){
	var nAnchura, nAltura, nTop, nLeft, sPropsVentana;
	nAnchura = screen.availWidth;
	nAltura = screen.availHeight;
	nTop = (nAltura - nTamY - 30) * .5;
	nLeft =  (nAnchura - nTamX - 10) * .5;
	sPropsVentana  = 'width=' + nTamX + ',height=' + nTamY;
	sPropsVentana += ',top=' + nTop + ',left=' + nLeft;
	sPropsVentana += ',scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no';
	return(window.open(sPagina,'',sPropsVentana));
}	
function AbrirVentana2(sPagina, nTamX, nTamY)
{
	var nAnchura, nAltura, nTop, nLeft, sPropsVentana;
	nAnchura = screen.availWidth;
	nAltura = screen.availHeight;
	nTop = (nAltura - nTamY - 30) * .5;
	nLeft =  (nAnchura - nTamX - 10) * .5;
	sPropsVentana  = 'width=' + nTamX + ',height=' + nTamY;
	sPropsVentana += ',top=' + nTop + ',left=' + nLeft;
	sPropsVentana += ',scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=no';
	return(window.open(sPagina,'',sPropsVentana));
}	