var CodeDefine = {
    Code_5_1_0: { link: "http://www.lancenterleonperu.com/forum/showthread.php?148-descargas-muleonperu-season-6-cliente-full-2012-24-nov.", name: "?????", title: "tit_client.gif" }
}

var Navigation = {
    GoMenu: function(c1, c2, c3) {
        if (!eval("CodeDefine.Code_" + c1 + "_" + c2 + "_" + c3))
            return false;

        var linkEle = eval("CodeDefine.Code_" + c1 + "_" + c2 + "_" + c3 + "['link']");
        if (linkEle.indexOf("window.open") > -1 || linkEle.indexOf("javascript") > -1) {
            eval(linkEle);
        } else {
            location.href = linkEle;
        }
    },
    LocationBar: function(c1, c2, c3) {
        Navigation.SubVisual(c1); //visual

        if (!eval("CodeDefine.Code_" + c1 + "_" + c2 + "_" + c3))
            return false;

        this.ArrayCode = [];
        this.ArrayCode.push("0_0_0");
        if (c1 != 0) this.ArrayCode.push(c1 + "_0_0");
        if (c2 != 0) this.ArrayCode.push(c1 + "_" + c2 + "_0");
        if (c3 != 0) this.ArrayCode.push(c1 + "_" + c2 + "_" + c3);

        Navigation.LocationTitle(this.ArrayCode[this.ArrayCode.length - 1]); //title
        var objEle = document.getElementById("txtlocation");
        if (!objEle) return false;
        var strEle = "";

        for (var i = 0; i < this.ArrayCode.length; i++) {
            if (i != 0) { strEle = strEle + " &gt; "; }
            strEle = strEle + "<a href=\"#\" onclick=\"Navigation.GoMenu(" + this.ArrayCode[i].replace(/_/g, ",") + "); return false;\">"
            if (i == this.ArrayCode.length - 1) { strEle = strEle + "<strong>"; }
            strEle = strEle + eval("CodeDefine.Code_" + this.ArrayCode[i] + "['name']")
            if (i == this.ArrayCode.length - 1) { strEle = strEle + "</strong>"; }
            strEle = strEle + "</a>";
        }
        objEle.innerHTML = strEle;
    },
    LocationTitle: function(arrEle) {
        var objEle = document.getElementById("titlocation");
        if (!objEle) return false;
        objEle.src = objEle.src + eval("CodeDefine.Code_" + arrEle + "['title']");
        objEle.alt = eval("CodeDefine.Code_" + arrEle + "['name']");
    },
    SubVisual: function(c1) {
        var strClassEle;
        var objEle = document.getElementById("container");
        if (!objEle) return false;
        switch (c1) {
            case 1: strClassEle = "sub_news"; break; //??
            case 2: strClassEle = "sub_guide"; break; //???
            case 3: strClassEle = "sub_encyclopedia"; break; //????
            case 4: strClassEle = "sub_mutizen"; break; //?????
            case 5: strClassEle = "sub_pds"; break; //???
            case 6: strClassEle = "sub_store"; break; //??
            case 7: strClassEle = "sub_mypage"; break; //???
            case 8: strClassEle = "sub_support"; break; //????
            default:
                strClassEle = "sub_pds";
                break;
        }
        objEle.className = strClassEle;
    }
}




function fnGoMenu(intSelNum, intSNum) {
    if (intSelNum == 12 && intSNum == 1) { // ??
        fnGoClub();
        return false;
    }
    else {
        Navigation.GoMenu(intSelNum, intSNum, 0);
    }

}

function fnGoClientDownload() {
    Navigation.GoMenu(5, 1, 0);
}


