function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

var submenus = document.getElementsByTagName("ul");
function submenu(capa) {
	for (i=0; i<submenus.length; i++) {
		if (submenus[i].className=="submenu") {
			xHide(submenus[i].id)
		}
	}
	xShow(capa);
	posx= xOffsetLeft("b"+capa)
	posy= xOffsetTop ("b"+capa)
	var ieVer=/*@cc_on function(){ switch(@_jscript_version){ case 1.0:return 3; case 3.0:return 4; case 5.0:return 5; case 5.1:return 5; case 5.5:return 5.5; case 5.6:return 6; case 5.7:return 7; case 5.8:return 8; }}()||@*/0;
if(/MSIE 6.0/i.test(navigator.userAgent)) {ieVer=6;}
	if (ieVer<=7&&ieVer>4) {
		xMoveTo(capa,posx-40,posy+30) 
	} else {
		xMoveTo(capa,posx,posy+30) 
	}
}

function tamany(valor) {
	if (valor=="petit") {
		window.document.body.style.fontSize="11px";
	}
	if (valor=="mitja") {
		window.document.body.style.fontSize="12px";
	}
	if (valor=="gran") {
		window.document.body.style.fontSize="13px";
	}
}

function enviartamany(valor) {
	var ftamany = document.getElementById("ftamany");
	ftamany.tamany.value = valor;
	ftamany.submit();
}
