function mostrar(param)
{
	total = document.getElementById('cuantos').value
	for(j = 1; j <= total; j++)
	{
		if(document.getElementById('menu'+j) != null)
		{
			if(j == param)
			{
					document.getElementById('menu'+j).style.visibility = 'visible';
					document.getElementById('menu'+j).style.position = 'relative';
			}
			else
			{
				document.getElementById('menu'+j).style.visibility = 'hidden';
				document.getElementById('menu'+j).style.position = 'absolute';
			}
		}
	}
}

function checkIt(string){
 var detect = navigator.userAgent.toLowerCase();
 place = detect.indexOf(string) + 1;
 thestring = string;
 return place;
}

//adaptar la altura del iframe a su contenido
function resize() {
if(document.body.clientHeight > 200)
	parent.document.getElementById("infor").height = document.body.clientHeight + 20;
else
	parent.document.getElementById("infor").height = 200;
//alert(document.infor.document.body.scrollHeight)
/*if (checkIt('opera')){
document.getElementById("infor").height =
document.getElementById("infor").document.body.scrollHeight;
 }
document.getElementById("infor").height = (document.infor.document.body.scrollHeight < 100) ? 600 : document.getElementById("infor").contentWindow.document.body.scrollHeight+40;*/
}
//350
function final (){
	alert(document.body.scrollHeight)
if(document.body.scrollHeight>100){
parent.document.all.infor.style.height = document.body.scrollHeight+40
}else {
parent.document.all.infor.style.height = 600
}
}
