function sL(object) {
	obj = document.getElementById(object);
	if (object != "") {
		obj.style.display = "block";
	}
}

function teste() {
	sL("divTransparente");
	sL("divConteudo");
}

function hL(object) {
	obj = document.getElementById(object);
	if (object != "") {
		obj.style.display = "none";
	}
}

function hLall() {
	for (i = 1; i <= numObjetos; i++) {
		obj = "cidade_" + i;
		obj = document.getElementById(obj);
		obj.style.display = "none";
	}
}

function hLall2() {
	for (i = 1; i <= numContent; i++) {
		obj = "cel_" + i;
		obj = document.getElementById(obj);
		obj.style.display = "none";
	}
}

function checaAparelho(parametro){
	if (parametro!="") {
		sL('aparelhos');
	} else {
		hL('aparelhos');
	}
}

function cidade(num) {
	hLall();
	aux = "cidade_" + num;
	sL (aux);
}

function futuro(object) {
	// esconde abas ativas
	for (i = 1; i <= numObjetos; i++) {
		obj = "abaOn_" + i;
		obj = document.getElementById(obj);
		obj.style.display = "none";
		obj2 = "cont_" + i;
		obj2 = document.getElementById(obj2);
		obj2.style.display = "none";
		obj3 = "abaOff_" + i;
		obj3 = document.getElementById(obj3);
		obj3.style.display = "block";
	}
	// mostra aba selecionada
		obj4 = "abaOn_" + object;
		sL(obj4);
		obj4 = "abaOff_" + object;
		hL(obj4);
	// mostra conteudo selecionado
		obj5 = "cont_" + object;
		sL(obj5);
}

function GerarSWF($arquivo,$largura,$altura){
    document.writeln('    <object type="application/x-shockwave-flash" data="'+ $arquivo +'" width="'+ $largura +'" height="'+ $altura +'">');
    document.writeln('        <param name="movie" value="' + $arquivo + '" />');
    document.writeln('        <param name="menu" value="false" />');
    document.writeln('        <param name="quality" value="high" />');
	document.writeln('        <param name="wmode" value="transparent" />');
    document.writeln('    </object>');
}

function faq(num) {
	for (i = 1; i <= 3; i++) {
		obj = "aba_faq" + i;
		obj = document.getElementById(obj);
		obj.style.display = "none";
		obj2 = "cont_faq" + i;
		obj2 = document.getElementById(obj2);
		obj2.style.display = "none";
	}
	cont = "cont_faq" + num;
	aba = "aba_faq" + num;
	sL(cont);
	sL(aba);
}