<!--
//teste
function get_browser() {
if ((navigator.appName == 'Netscape') && document.layers != null) {
      return "Netscape";
    } else if (document.all != null) { //IE
      return "IE";
     } else {
      return "Other";    }
}

// Define estruturas de dados
function Section(sname, dir) {
    this.sname = sname;
    this.dir = dir;
}

// Define a estrutura das Seções
// Nomes:
// 	lodging, restaurants, renting, agencies, boats, sailing,
//	boats, sailing, cybercafe, clinics, fishing, pinga, camping,
//	art, realstate, lojas, shopping
var SectionList = new Object();
SectionList.lodging = new Section(pousNome, pousDir);
SectionList.restaurants = new Section(restNome, restDir);
SectionList.renting = new Section(alugNome, alugDir);
SectionList.agencies = new Section(agenciaNome, agenciaDir);
SectionList.boats = new Section(barcosNome, barcosDir);
SectionList.sailing = new Section(velNome, velDir);
SectionList.cybercafe = new Section(cyberNome, cyberDir);
SectionList.clinics = new Section(clinicaNome, clinicaDir);
SectionList.fishing = new Section(pescaNome, pescaDir);
SectionList.pinga = new Section(pingaNome, pingaDir);
SectionList.camping = new Section(campingNome, campingDir);
SectionList.art = new Section(arteNome, arteDir);
SectionList.realstate = new Section(imoveisNome, imoveisDir);
SectionList.shopping = new Section(lojaNome, lojaDir);

// Inicia as seções no documento
BrowserType = get_browser();
function hide(section) {
    if (BrowserType == "Netscape")
        if (document.layers[section]) (document.layers[section]).visibility = "hide";
    if (BrowserType == "IE")
        if (document.all[section]) (document.all[section]).style.visibility = "hidden";
    if (BrowserType == "Other")
        if (document.getElementById(section)) (document.getElementById(section)).style.visibility = "hidden";
}

function show(section) {
    if (BrowserType == "Netscape")
        if (document.layers[section]) (document.layers[section]).visibility = "show";
    if (BrowserType == "IE")
        if (document.all[section]) (document.all[section]).style.visibility = "visible";
    if (BrowserType == "Other")
        if (document.getElementById(section)) (document.getElementById(section)).style.visibility = "visible";
}

function dropdown(section) {
    for (var i in SectionList) hide(i);
    show(section);
}

//escreve as seções no menu
function write_menu(section, lang) {
    var sname = SectionList[section].sname;
    var dir = SectionList[section].dir;
    N = sname.length;
    for (var i = 0; i < N; i++) {
        document.write("<div class='menulink'><a href='http://www.eco-paraty.com/" + dir[i] + "/" + lang + ".htm'>" + sname[i] + "<\/a><\/div>");
    }
    document.write("<br><a href=\"javascript:hide('" + section + "')\">Fechar [x]</a>")
}
//-->
