/********************************************** 메뉴 **********************************************/ function Node(id, pid, Idx, Name, Folder, Files, img, PopCode){ this.id = id; this.pid = pid; this.Idx = Idx; this.Name = Name; this.Folder = Folder; this.Files = Files.split(","); this.img = img; this.PopCode = PopCode; this.SelectYN = 0; this.ChildCnt = 0; this.Depth = 0; } function CMenu(oName, RootIdx){ this.Name = oName; this.aNodes = []; this.iMenuNum = 0; this.RootIdx = RootIdx; this.Uri = (location.href.indexOf("?") > 0) ? "/" + location.href.substring(0, location.href.indexOf("?")).split("/").splice(3,10).join("/") : "/" + location.href.split("/").splice(3,10).join("/"); this.Folder = this.Uri.substring(0, this.Uri.lastIndexOf("/")+1); this.File = this.Uri.substring(this.Uri.lastIndexOf("/")+1, this.Uri.length); this.Add = function(id, pid, Idx, Name, Folder, Files, img, PopCode){ this.aNodes[this.aNodes.length] = new Node(id, pid, Idx, Name, Folder, Files, img, PopCode); for(var i=0; i 1){ for(var i=0; i"; } } s += "
플레이어설치
"; s += "
PC버전
"; return s; } this.TopMenus = function(){ var s = ""; var idx = -1; var css = ""; var Hwidth = ""; for(var i=1,item; item=this.aNodes[i]; i++){ if(this.RootIdx.toString() == item.pid.toString() && item.Folder.toUpperCase() == this.Folder.substr(0, item.Folder.length).toUpperCase()){ s += "
"; s += " "; s += " "; s += " "; s += " "; s += " "; s += " "; s += "
 " + item.Name + " 
"; s += "
"; idx = i; break; } } if (typeof this.aNodes[idx] != "undefined") { switch(parseInt(this.aNodes[idx].Idx, 10)){ case 1: case 2: case 3: case 4: case 5: s += ""; s += " "; Hwidth = "width:" + (100 / this.aNodes[idx].ChildCnt).toString() + "%;font-size:1.1em;"; for(var i=1,item; item=this.aNodes[i]; i++){ if(this.aNodes[idx].id.toString() == item.pid.toString()){ css = "color:#6E6D6D; background:#ffffff; border:1px solid #e2e2e2; text-align:center; cursor:pointer;"; if(item.Folder.toUpperCase() == this.Folder.substr(0, item.Folder.length).toUpperCase()) css = "color:#FFFFFF; font-weight:bold; background:#454545; border:1px solid #e2e2e2;text-align:center; cursor:pointer;"; s += ""; } } s += " "; s += "
"; s += item.Name; s += "
"; break; } } return s; } } var oMenu = null; oMenu = new CMenu("oMenu", 0); oMenu.Add(0, null, 0, "Root", "/MobileContents/", "Index.asp"); oMenu.Add(1, 0, 1, "내 강의실", "/MobileContents/MyClass/", "Index.asp", "", 0); oMenu.Add(2, 1, 1, "현재 수강중인 강의", "/MobileContents/MyClass/NowStudy/", "Index.asp", "", 0); //oMenu.Add(3, 1, 2, "복습용 강의", "/MobileContents/MyClass/Review/", "Index.asp", "", 0); oMenu.Add(4, 1, 3, "만료된 강의", "/MobileContents/MyClass/EndStudy/", "Index.asp", "", 0); oMenu.Add(5, 0, 2, "공지사항", "/MobileContents/Notice/", "Index.asp", "", 0); oMenu.Add(6, 5, 1, "공지사항", "/MobileContents/Notice/Notice/", "Index.asp", "", 0); oMenu.Add(7, 5, 2, "신규강의", "/MobileContents/Notice/OpenLecture/", "Index.asp", "", 0); oMenu.Add(8, 5, 3, "신간안내", "/MobileContents/Notice/NewBooks/", "Index.asp", "", 0); oMenu.Add(9, 0, 3, "강사소개", "/MobileContents/TeacherInfo/", "Index.asp", "", 0); oMenu.Add(10, 9, 1, "회계", "/MobileContents/TeacherInfo/Accounting/", "Index.asp", "", 0); oMenu.Add(11, 9, 2, "세무", "/MobileContents/TeacherInfo/Tax/", "Index.asp", "", 0); oMenu.Add(12, 9, 3, "인사노무", "/MobileContents/TeacherInfo/Personnel/", "Index.asp", "", 0); oMenu.Add(13, 0, 4, "전체강의", "/MobileContents/GLecture/", "Index.asp", "", 0); oMenu.Add(14, 13, 1, "특강", "/MobileContents/GLecture/ExamLecE/", "Index.asp", "", 0); oMenu.Add(15, 13, 2, "회계", "/MobileContents/GLecture/ExamLecA/", "Index.asp", "", 0); oMenu.Add(16, 13, 3, "세무", "/MobileContents/GLecture/ExamLecB/", "Index.asp", "", 0); oMenu.Add(17, 13, 4, "인사노무", "/MobileContents/GLecture/ExamLecC/", "Index.asp", "", 0); oMenu.Add(18, 13, 5, "코스", "/MobileContents/GLecture/ExamLecD/", "Index.asp", "", 0); oMenu.Add(19, 0, 5, "수강 FAQ", "/MobileContents/FAQ/", "Index.asp", "", 0); oMenu.Add(20, 19, 1, "설치 및 주요기능", "/MobileContents/FAQ/MobileInstall/", "Index.asp", "", 0); oMenu.Add(21, 19, 2, "서비스안내", "/MobileContents/FAQ/MobileService/", "Index.asp", "", 0); oMenu.Add(22, 19, 3, "모바일 FAQ", "/MobileContents/FAQ/MobileFAQ/", "Index.asp", "", 0); oMenu.Add(23, 0, 6, "아이파소개", "/MobileContents/AifaInfo/", "Index.asp", "", 0); oMenu.Add(24, 0, 7, "찾아오시는 길", "/MobileContents/AifaMap/", "Index.asp", "", 0); oMenu.Add(25, 0, 8, "기기등록 초기화", "/MobileContents/Device/", "Index.asp", "", 0); /********************************************** 메뉴 **********************************************/ document.title = "AIFABIZNET";