<!--

//---------------- Mostra e Esconde Layers ----------------------
function findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showHideLayers() { //v6.0
	var i,p,v,obj,args=showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
		if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
		obj.display=v; }
}

//---------------- Abre PopUp ----------------------
function popup(pTarget,pFeatures) { //v3.0
	//The link(file) is the attribute HREF
	//The parameter 'pTarget' must be the same of attribute TARGET and is the WinName value
	//Features: menubar=[yes|no],scrollbars=[yes|no],width=[value],height=[value],resizable=[0|1]
	newwin = window.open('',pTarget,pFeatures);
}

function popupFixo(pTipo) { //v3.0
	var vTargert
	var vFeatures
	// O atributo TARGET da tag A deve iqual a variável vTarget do tipo(pTipo) do popup escolhido
	switch (pTipo) {
		case 1:
			vTarget = 'Maeda'
			vFeatures = 'menubar=yes,scrollbars=yes,width=550,height=350,resizable=0'
			break;
		case 2:
			vTarget = 'Galeria'
			vFeatures = 'menubar=yes,scrollbars=no,width=360,height=260,resizable=0'
			break;
		case 3:
			vTarget = 'Mapa'
			vFeatures = 'menubar=yes,scrollbars=no,width=523,height=555,resizable=0'
			break;
		case 4:
			vTarget = 'Rota'
			vFeatures = 'menubar=yes,scrollbars=no,width=340,height=265,resizable=0'
			break;
	}
	newwin = window.open('',vTarget,vFeatures);
}

//-->