	/*****************************************************************
	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; }
	}
	
	/*****************************************************************
	multitienda_ns.css usado para Netscape 4.x
	multitienda_ie.css usado para IE4+ y motor Mozilla (Netscape6 entre otros)
	******************************************************************/
	
	function pathrel(path) {
		var uri,arruri,i,n;
		
		uri = document.URL;
		if (uri.indexOf("?")>1)
			uri = uri.substr(0,uri.indexOf("?"));
		arruri = uri.split("/");
		n = arruri.length-5;
		path = path.substr(1);
		for (i=1;i<=n;i++)
			path = "../" + path;
		return path;
	}

	if (Nav4)	document.writeln('<link href="' + pathrel("/estilos/multitienda_ns.css") + '" rel="stylesheet" type="text/css">');
	else document.writeln('<link href="' + pathrel("/estilos/multitienda_ie.css") + '" rel="stylesheet" type="text/css">');

