
// comprobamos varias cosas del navegador destino.
function wBrowser(){
	var isNav=navigator.appName;
	var isVer = navigator.appVersion;
	var isCpu = navigator.cpuClass?navigator.cpuClass:' no definida ';
	
	document.getElementById('bogart').onclick=function(){ alert('oooooohhhhh !!!!!!!!!!!!!'); }

	document.write('Navegador: '+isNav+'<br />');
	document.write('Versión: '+isVer+' : '+parseInt(isVer)+'<br />');
	document.write('CPU: '+isCpu+'<br />');
}

/* quita borde punteado de los links ---------------------------------------------------------------------------*/
function noplink() {
	lnks=document.getElementsByTagName("a").length;
	for (i=0;i<lnks;i++)
	document.getElementsByTagName("a").item(i).onfocus=new Function(" (this.blur)?this.blur():NULL;")
}


function showCat(n){
	//alert(document.getElementById('d'+n).id);
	var estado=document.getElementById('d'+n).style.display;
	var i=1;
	while(document.getElementById('d'+i)) { 
		if(n!=i)
			document.getElementById('d'+i).style.display='none';
		//document.getElementById('p'+i).className='categoria'; 
		i++; 
	}
	
	if (estado=='block'){
		document.getElementById('d'+n).style.display='none';
	//	document.getElementById('p'+n).className='categoria';	
	}
	else {
		document.getElementById('d'+n).style.display='block';
	//	document.getElementById('p'+n).className='categoria_down';
	}
	
}


function showCat2(n){
	
	var estado=document.getElementById('d2_'+n).style.display;
	//alert(document.getElementById('d2_'+n).id+' '+estado);
	var i=1;
	while(document.getElementById('d2_'+i)) { 
		if(n!=i)
			document.getElementById('d2_'+i).style.display='none';
		//document.getElementById('p2_'+i).className='categoria'; 
		i++; 
	}
	
	
	if (estado=='block'){
		document.getElementById('d2_'+n).style.display='none';
	//	document.getElementById('p'+n).className='categoria';	
	}
	else {
		document.getElementById('d2_'+n).style.display='block';
	//	document.getElementById('p'+n).className='categoria_down';
	}
	
}







/*
function showSubCat(n){
	var estado=document.getElementById('sd'+n).style.display;
	var j=1;
	while(document.getElementById('sd'+j)) { 
		document.getElementById('sd'+j).style.display='none';
		document.getElementById('sp'+j).className='subcategoria'; 
		j++; 
	}	
	
	if (estado=='block'){
		document.getElementById('sd'+n).style.display='none';
		document.getElementById('sp'+n).className='subcategoria';	
	}
	else {
		document.getElementById('sd'+n).style.display='block';
		document.getElementById('sp'+n).className='subcategoria_down';
	}
	
}*/

























