// options area

var forums = []
forums["Main"] = "cgi-bin/ikonboard/ikonboard.cgi"
forums["Forum Chat"] = " ATWO()"
forums["General"] = "cgi-bin/ikonboard/forums.cgi?forum=1"
forums["Chitchat"] = "cgi-bin/ikonboard/forums.cgi?forum=10"
forums["Role-Play"] = "cgi-bin/ikonboard/forums.cgi?forum=14"
forums["Music"] = "cgi-bin/ikonboard/forums.cgi?forum=12"
forums["Anime"] = "cgi-bin/ikonboard/forums.cgi?forum=2"
forums["Video Games"] = "cgi-bin/ikonboard/forums.cgi?forum=3"
forums["Arts"] = "cgi-bin/ikonboard/forums.cgi?forum=9"
forums["Web Games"] = "cgi-bin/ikonboard/forums.cgi?forum=5"
forums["RPGD"] = "cgi-bin/ikonboard/forums.cgi?forum=6"
forums["SRW SDK"] = "cgi-bin/ikonboard/forums.cgi?forum=7"
forums["DHTML"] = "cgi-bin/ikonboard/forums.cgi?forum=8"
forums["Site Comments"] = "cgi-bin/ikonboard/forums.cgi?forum=4"

desktop_icons_balance = "left"

var title_loading = 'Starting Anime Theme <img src="_ajax-loader.gif" width=16 height=16>'
var title_complete = '<img id=Ibusy01 style="visibility:hidden" src="_ajax-loader.gif" width=16 height=16> Anime Theme Online Desktop <img id=Ibusy02 style="visibility:hidden" src="_ajax-loader.gif" width=16 height=16>'

var default_icon = 0
for (var i = 0; i <= 59; i++)
  icons[i] = {} //new Image()
icons[0].src = "rei_ico.gif"
icons[1].src = "asuka_ico.gif"
icons[2].src = "ashitaka_ico.gif"
icons[3].src = "lovehina2_ico.gif" //"aeka_ico.gif"
icons[4].src = "yoko_ico.gif"
icons[5].src = "hitomi_ico.gif"
icons[6].src = "saku_ico.gif"
icons[7].src = "bastard_ico.gif"
icons[8].src = "achika_ico.gif"
icons[9].src = "rinoa2_ico.gif"
icons[10].src = "rei2_ico.gif"
icons[11].src = "aerith2_ico.gif"
icons[12].src = "cloud_ico.gif"
icons[13].src = "tifa_ico.gif"
icons[14].src = "shinji_ico.gif"
icons[15].src = "misato_ico.gif"
icons[16].src = "gendou_ico.gif"
icons[17].src = "tenchi_ico.gif"
icons[18].src = "ryoko2_ico.gif"
icons[19].src = "saku2_ico.gif"
icons[20].src = "urd_ico.gif"
icons[21].src = "dbz_ico.gif"
icons[22].src = "lina_ico.gif"
icons[23].src = "venus_ico.gif"
icons[24].src = "nanpa2_ico.gif"
icons[25].src = "bastard2_ico.gif"
icons[26].src = "arrest_ico.gif"
icons[27].src = "hitomi2_ico.gif"
icons[28].src = "pai_ico.gif"
icons[29].src = "ashitaka2_ico.gif"
icons[30].src = "asuka2_ico.gif"
icons[31].src = "mylene_ico.gif"
icons[32].src = "temp/icon_special/misc_gal.gif" //"pcarrot_ico.gif"
icons[33].src = "yoko2_ico.gif"
icons[34].src = "lodoss_ico.gif"
icons[35].src = "mylene2_ico.gif"
icons[36].src = "chacha_ico.gif"
icons[37].src = "karin_ico.gif"
icons[38].src = "gundam_ico.gif"
icons[39].src = "kirishima_ico.gif"
icons[40].src = "squall_ico.gif"
icons[41].src = "rinoa_ico.gif"
icons[42].src = "kenshin_ico.gif"
icons[43].src = news_icon //"bastard3_ico.gif"
icons[44].src = "chrono_ico.gif"
icons[45].src = "cc_sakura_ico.gif"
icons[46].src = "ff9_ico.gif"
icons[47].src = "lovehina_ico.gif"
icons[48].src = "yuna_ico.gif"
icons[49].src = "mi_ico.gif"
icons[50].src = "yuna_ffx2_ico.gif"
icons[51].src = "inuyasha_ico.gif"
icons[52].src = "psp_umd_ico.gif"
icons[53].src = "ashe_ico.gif"
icons[54].src = "haruhi_ico.gif"
icons[55].src = "ikonboard/images/team.gif"
icons[56].src = "_at_email.gif"
icons[57].src = "_at_messenger.gif"
icons[58].src = "at_search_icon.gif"
icons[59].src = "_youtube_ico.gif"

var start_icon = "shinji_ico.gif"
var clock_icon = "misato_ico.gif"

var title_pic = "menu_title.gif"
var title_bg_max = 324
var title_bg_xmas = [18,27,50,55,56,57,81,133,154,159]
var title_bg_num = (season_special) ? title_bg_xmas[random(title_bg_xmas.length)] : random(title_bg_max)
var title_bg = "temp/title_bg/" + addZero(title_bg_num+((season_special)?0:1), 4) + ".png"

m = desk_icons
m[m.length] = new Menu("Update History",43, "news.html", "Check out all current and past news of updates on Anime Theme.")
m[m.length] = new Menu("Wallpapers",32, "gallery/", "Over 8,000 wallpapers based on Anime, Final Fantasy and various Anime-style stuff! <u>RECOMMENDED!</u>")
m[m.length] = new Menu("Game Videos",9, "video/", "HIGH-QUALITY game videos from Final Fantasy 7-12 and various video games! <u>RECOMMENDED!</u>")
m[m.length] = new Menu("Web Games",10, "games/", "Various Web-based and PSP games based on Anime and Final Fantasy, EXCLUSIVE to Anime Theme! <u>RECOMMENDED!</u>")
m[m.length] = new Menu("Anime Theme World Online RPG",33, " ATWO()", 'A Web-based MULTIPLAYER Online RPG, EXCLUSIVE to Anime Theme! Internet Explorer only. <u>RECOMMENDED!</u>')
m[m.length] = new Menu("Desktop Themes",35, "themes.html", "Various Desktop Themes based on Anime, Final Fantasy, video games and others!")
m[m.length] = new Menu("Dynamic HTML",34, "dhtml/", "Own a website? Check this out for some cool scripts and effects you see in Anime Theme that can be used on your own page!")
// forum_email()
m[m.length] = new Menu("Forums and Chat",3, forums["Main"], "Join our growing community with over 1,000 active members!")

m = QuickLaunch_icons
m[m.length] = new Menu("Anime Theme Forums",55, forums["Main"], "&lt;Anime Theme Forums&gt;<br>Join our community!")
m[m.length] = new Menu("Anime Theme Email",56, ' self.open("http://animetheme.mail.everyone.net")', "&lt;Anime Theme Mail Center&gt;<br>Your FREE @animetheme.com email!")
m[m.length] = new Menu("Anime Theme Search",58, ' AT_Search()', "Looking for something? Search within Anime Theme and the Web!")

m = menus[0].menus
m[m.length] = new Menu("Anime and Games",2)
m[m.length] = new Menu("Web Games",8)
m[m.length] = new Menu("Interaction",30)
m[m.length] = new Menu("Settings",5)
m[m.length] = new Menu("Help",4)
m[m.length] = new Menu("Links",6)
m[m.length] = new Menu("Shut Down",7, " shutDown()")

m = menus[0].menus[0].menus
m[m.length] = new Menu("Square-Enix Games",0)
m[m.length] = new Menu("Rumiko Takahashi",0)
m[m.length] = new Menu("Kosuke Fujishima",0)
m[m.length] = new Menu("Haruhi Suzumiya",0)
m[m.length] = new Menu("Neon Genesis Evangelion",0)
m[m.length] = new Menu("Tenchi Muyo",0)
m[m.length] = new Menu("Dragon Ball Z",0)
m[m.length] = new Menu("Slayers",0)
m[m.length] = new Menu("Sailor Moon",0)
m[m.length] = new Menu("Princess Mononoke",0)
m[m.length] = new Menu("Bastard",0)
m[m.length] = new Menu("Macross",0)
m[m.length] = new Menu("Love Hina",0)
m[m.length] = new Menu("PSP Special",0)
m[m.length] = new Menu("Miscellaneous",0)
m[m.length] = new Menu("Vision of Escaflowne",27, "esca/")
m[m.length] = new Menu("Card Captor Sakura",45, "cc_sakura/")
m[m.length] = new Menu("Akazukin Cha Cha",36, "chacha/")
m[m.length] = new Menu("Rurouni Kenshin",42, "kenshin/")
m[m.length] = new Menu("3x3 Eyes",28, "3x3eyes/")
m[m.length] = new Menu("Nanpa 2",24, "nanpa2/")
m[m.length] = new Menu("DNA^2",37, "dna/")

m = menus[0].menus[0].menus[0].menus
m[m.length] = new Menu("Final Fantasy XII",0)
m[m.length] = new Menu("Final Fantasy X-2",0)
m[m.length] = new Menu("Final Fantasy X",0)
m[m.length] = new Menu("Final Fantasy IX",0)
m[m.length] = new Menu("Final Fantasy VIII",0)
m[m.length] = new Menu("Final Fantasy VII",0)
m[m.length] = new Menu("Chrono Cross",0)
m[m.length] = new Menu("Final Fantasy XIII...!?",59, ' self.open("http://www.youtube.com/watch?v=jYAnylO2ydQ"); if (wmp7) midi.controls.stop();')
m[m.length] = new Menu("Game Discussion",55, forums["Video Games"])

m = menus[0].menus[0].menus[0].menus[0].menus
m[m.length] = new Menu("Final Fantasy XII",53, "ff12/")
m[m.length] = new Menu("Full Motion Videos",53, "ff12/fmv.html")

m = menus[0].menus[0].menus[0].menus[1].menus
m[m.length] = new Menu("Final Fantasy X-2",50, "ffx2/")
m[m.length] = new Menu("Full Motion Videos",50, "ffx2/fmv.html")

m = menus[0].menus[0].menus[0].menus[2].menus
m[m.length] = new Menu("Final Fantasy X",48, "ff10/")
m[m.length] = new Menu("Full Motion Videos",48, "ff10/fmv.html")
m[m.length] = new Menu("FFX Mini RPG",48, "ff10/game/index.html")

m = menus[0].menus[0].menus[0].menus[3].menus
m[m.length] = new Menu("Final Fantasy IX",46, "ff9/")
m[m.length] = new Menu("Desktop Accessories",46, "ff9/files.html")
m[m.length] = new Menu("Full Motion Videos",46, "ff9/fmv.html")

m = menus[0].menus[0].menus[0].menus[4].menus
m[m.length] = new Menu("Final Fantasy VIII",40, "ff8/")
m[m.length] = new Menu("Desktop Accessories",40, "ff8/files.html")
m[m.length] = new Menu("FF8 Wallpapers",41, "ff8/gallery/")
m[m.length] = new Menu("Full Motion Videos",41, "ff8/fmv.html")

m = menus[0].menus[0].menus[0].menus[5].menus
m[m.length] = new Menu("FF7 Desktop Theme",0)
m[m.length] = new Menu("Final Fantasy VII",12, "ff7/")
m[m.length] = new Menu("FF7: Dirge of Cerberus",12, "ff7/ff7_dc.html")
m[m.length] = new Menu("Crisis Core: FF7",52, "ff7/ccff7.html")
m[m.length] = new Menu("Full Motion Videos",11, "ff7/ff_fmv.html")
m[m.length] = new Menu("Game - The Promised Land",11, "games/ff7s_prepare.html")
m[m.length] = new Menu("FF7 Links",13, "ff7/ff_links.html")
m[m.length] = new Menu("Link to here",13, "ffbanner.html")

m = menus[0].menus[0].menus[0].menus[5].menus[0].menus
m[m.length] = new Menu("Making of FF7 Theme",11, "ff7/ff_making.html")
m[m.length] = new Menu("FF7 Theme Preview",11, "ff7/ff_content.html")
m[m.length] = new Menu("Desktop Accessories",11, "ff7/ff_files.html")
m[m.length] = new Menu("FF7 Wallpapers",11, "ff7/gallery/")
m[m.length] = new Menu("FF7 Sounds",11, "ff7/ff_sounds.html")
m[m.length] = new Menu("FF7 Cursors",11, "ff7/ff_cursors.html")

m = menus[0].menus[0].menus[0].menus[6].menus
m[m.length] = new Menu("Chrono Cross",44, "chrono/")
m[m.length] = new Menu("Desktop Accessories",44, "chrono/files.html")
m[m.length] = new Menu("Story Translation",44, "chrono/story.html")

m = menus[0].menus[0].menus[1].menus
m[m.length] = new Menu("Inu-Yasha",51, "inuyasha/")
m[m.length] = new Menu("Maison Ikkoku",49, "maison_ikkoku/")

m = menus[0].menus[0].menus[2].menus
m[m.length] = new Menu("You're Under Arrest",0)
m[m.length] = new Menu("Ah! My Goddess",0)
m[m.length] = new Menu("Sakura Wars",0)

m = menus[0].menus[0].menus[2].menus[0].menus
m[m.length] = new Menu("You're Under Arrest",26, "arrest/")
m[m.length] = new Menu("YUA Wallpapers",26, "arrest/gallery/")

m = menus[0].menus[0].menus[2].menus[1].menus
m[m.length] = new Menu("Ah! My Goddess",20, "goddess/")
m[m.length] = new Menu("Game - Goddess Playground",20, "goddess_game/")
m[m.length] = new Menu("Ah! My Goddess Links",20, "goddess/goddess_links.html")

m = menus[0].menus[0].menus[2].menus[2].menus
m[m.length] = new Menu("Sakura Wars",19, "sakura/")
m[m.length] = new Menu("Imperial Theater",19, "sakura/sakura2.html")

m = menus[0].menus[0].menus[3].menus
m[m.length] = new Menu("Haruhi Suzumiya",54, "haruhi/")
m[m.length] = new Menu("Wallpaper Gallery",54, "haruhi/gallery/")

m = menus[0].menus[0].menus[4].menus
m[m.length] = new Menu("Characters",0)
m[m.length] = new Menu("EVA Mysteries",0)
m[m.length] = new Menu("Neon Genesis Evangelion",14, "eva/")
m[m.length] = new Menu("EVA Wallpapers",1, "eva/gallery/")
m[m.length] = new Menu("Game - Rebirth of Angels",1, "games/eva_prepare.html")
m[m.length] = new Menu("The End of Evangelion",1, "eva/evaend_ie4.html")
//m[m.length] = new Menu("EVA Awards",1, "eva/evaaward.html")
//m[m.length] = new Menu("EVA Links",1, "eva/evalinks.html")
m[m.length] = new Menu("Asuka Media Player...!?",59, ' self.open("http://www.youtube.com/watch?v=CwybECyuiug"); if (wmp7) midi.controls.stop();')

m = menus[0].menus[0].menus[4].menus[0].menus
m[m.length] = new Menu("Ikari Shinji",14, "eva/shinji.html")
m[m.length] = new Menu("Ayanami Rei",0, "eva/rei.html")
m[m.length] = new Menu("Sohryu Asuka Langley",1, "eva/asuka.html")
m[m.length] = new Menu("Katsuragi Misato",15, "eva/misato.html")
m[m.length] = new Menu("Kirishima Mana",39, "eva/mana.html")

m = menus[0].menus[0].menus[4].menus[1].menus
m[m.length] = new Menu("Angels",16, "eva/angels.html")
m[m.length] = new Menu("Evangelions",16, "eva/evas.html")
m[m.length] = new Menu("Nerv",16, "eva/nerv.html")
m[m.length] = new Menu("Human Completion Project",16, "eva/human.html")

m = menus[0].menus[0].menus[5].menus
m[m.length] = new Menu("Tenchi Muyo Movies",0)
m[m.length] = new Menu("Tenchi Muyo",17, "tenchi/")
m[m.length] = new Menu("Tenchi Muyo Wallpapers",17, "tenchi/gallery/")
m[m.length] = new Menu("Tenchi Muyo Accessories",17, "tenchi/tencur.html")
m[m.length] = new Menu("Tenchi Muyo Links",17, "tenchi/tenlinks.html")

m = menus[0].menus[0].menus[5].menus[0].menus
m[m.length] = new Menu("Tenchi Muyo in Love",18, "tenchi/tenlove.html")
m[m.length] = new Menu("Midsummer Eve",18, "tenchi/teneve.html")

m = menus[0].menus[0].menus[6].menus
m[m.length] = new Menu("Dragon Ball Z",21, "dbz/")
m[m.length] = new Menu("Dragon Ball Wallpapers",21, "dbz/gallery/")
m[m.length] = new Menu("Dragon Ball Z Cursors",21, "dbz/dbzcur.html")
m[m.length] = new Menu("Dragon Ball Z Links",21, "dbz/dbzlinks.html")

m = menus[0].menus[0].menus[7].menus
m[m.length] = new Menu("Slayers",22, "slayers/")
m[m.length] = new Menu("Slayers Links",22, "slayers/slayers_links.html")

m = menus[0].menus[0].menus[8].menus
m[m.length] = new Menu("Sailor Moon",23, "sailor/")
//m[m.length] = new Menu("Sailor Moon Links",23, "sailor/saillink.html")

m = menus[0].menus[0].menus[9].menus
m[m.length] = new Menu("Princess Mononoke",29, "mononoke/")
m[m.length] = new Menu("Mononoke Wallpapers",29, "mononoke/gallery/")
m[m.length] = new Menu("On Your Mark",29, "mononoke/on_your_mark.html")

m = menus[0].menus[0].menus[10].menus
m[m.length] = new Menu("Bastard",25, "bastard/")
m[m.length] = new Menu("Bastard Wallpapers",25, "bastard/gallery/")
m[m.length] = new Menu("Bakuen Campus Guardress",25, "bastard/guardress.html")

m = menus[0].menus[0].menus[11].menus
m[m.length] = new Menu("Macross Frontier",31, "macross/macross_f.html")
m[m.length] = new Menu("Macross 7",31, "macross/")
m[m.length] = new Menu("Macross",31, "macross/macross.html")
m[m.length] = new Menu("Macross Wallpapers",31, "macross/gallery/")

m = menus[0].menus[0].menus[12].menus
m[m.length] = new Menu("Love Hina",47, "love_hina/")
m[m.length] = new Menu("Desktop Accessories",47, "love_hina/files.html")
m[m.length] = new Menu("Love Hina Wallpapers",47, "love_hina/gallery/")

m = menus[0].menus[0].menus[13].menus
m[m.length] = new Menu("FF7: Advent Children?",52, "games/psp_rpg.html?ver=ff7ac")
m[m.length] = new Menu("Full Metal Panic?",52, "games/psp_rpg.html?ver=fmp")
m[m.length] = new Menu("Gundam SEED Destiny?",52, "games/psp_rpg.html?ver=gsd")
m[m.length] = new Menu("PSP Themes",52, "games/psp_themes.html", "Change the appearance of your PSP!")

m = menus[0].menus[0].menus[14].menus
m[m.length] = new Menu("Windows Sidebar Gallery",1, "sidebar/", "Using Windows Vista? Come here!")
m[m.length] = new Menu("Chage & Aska",1, "chage_aska/")
m[m.length] = new Menu("Ruby Lin (&#26519;&#24515;&#22914;)",1, "ruby/")
m[m.length] = new Menu("Miscellaneous Gallery",1, "gallery/misc/")
m[m.length] = new Menu("Miscellaneous Videos",1, "video/misc.html")
//m[m.length] = new Menu("COOL Stuff",1, "cool/")
m[m.length] = new Menu("Anime Theme Shop!",1, ' AnimeShop()')

m = menus[0].menus[1].menus
/*
m[m.length] = new Menu("FF7 - The Promised Land",0)
m[m.length] = new Menu("EVA - Rebirth of Angels",0)
*/
m[m.length] = new Menu("PlayStation Portable",0)
m[m.length] = new Menu("Super Robot World",0)
m[m.length] = new Menu("RPG Director",0)
m[m.length] = new Menu("Anime Theme World Online",57, " ATWO()")
m[m.length] = new Menu("FFX Mini RPG",48, "ff10/game/index.html")
m[m.length] = new Menu("EVA - Rebirth of Angels",14, "games/eva_prepare.html")
m[m.length] = new Menu("Support Forum",55, forums["Web Games"])
m[m.length] = new Menu("&lt;Web Games Index&gt;",1, "games/")

/*
m = menus[0].menus[1].menus[0].menus
m[m.length] = new Menu("FF7 - The Promised Land",11, "games/ff7s_prepare.html")
m[m.length] = new Menu("Screen Shots",12, "games/ff7s_screen.html")
m[m.length] = new Menu("Strategy Guide",13, "games/ff7s_strategy.html")
*/

m = menus[0].menus[1].menus[0].menus
m[m.length] = new Menu("Game - Mai's Dreamland",52, "games/psp_rpg.html")
m[m.length] = new Menu("Tool - Remote Browser",52, "games/psp_remote_browser.html")
m[m.length] = new Menu("PSP Themes",52, "games/psp_themes.html", "Change the appearance of your PSP!")

m = menus[0].menus[1].menus[1].menus
m[m.length] = new Menu("Super Robot World",38, "games/srw_prepare.html")
m[m.length] = new Menu("SRW Game Builder",38, "games/srw_sdk.html")
m[m.length] = new Menu("SRW Glossary",38, "srw_pc/srw_glossary.html")
m[m.length] = new Menu("SRW SDK Forum",55, forums["SRW SDK"])

m = menus[0].menus[1].menus[2].menus
m[m.length] = new Menu("RPG Director",1, "games/rpgd.html", "Make your own Web-based RPG!")
m[m.length] = new Menu("RPGD Reference",1, ' window.open("games/rpgd/ref.html")')
m[m.length] = new Menu("RPGD Forum",55, forums["RPGD"])

m = menus[0].menus[2].menus
m[m.length] = new Menu("Anime Theme Forums",0)
m[m.length] = new Menu("Communications",0)
m[m.length] = new Menu("Search the Web",58, ' AT_Search()')
m[m.length] = new Menu("AnimeTheme.com Email",56, ' self.open("http://animetheme.mail.everyone.net")')
//m[m.length] = new Menu("Premier Desktop Service",1, ' desktop_services()')
m[m.length] = new Menu("Premier Membership",1, "atp_members/atp_signup.html")
m[m.length] = new Menu("VOTE for Anime Theme!",1, ' self.open("http://www.anime100.com/cgi-bin/rank/rankem.cgi?id=anitheme")', "Help make Anime Theme popular! ^_^")

m = menus[0].menus[2].menus[0].menus
m[m.length] = new Menu("General",55, forums["General"])
m[m.length] = new Menu("Role-Play",55, forums["Role-Play"])
m[m.length] = new Menu("Entertainment Discussion",55, forums["Music"])
m[m.length] = new Menu("Anime Discussion",55, forums["Anime"])
m[m.length] = new Menu("Game Discussion",55, forums["Video Games"])
m[m.length] = new Menu("Fan Art",55, forums["Arts"])
m[m.length] = new Menu("ATWO / RPG Director",55, forums["RPGD"])
m[m.length] = new Menu("Anime Theme Games",55, forums["Web Games"])
m[m.length] = new Menu("Super Robot World SDK",55, forums["SRW SDK"])
m[m.length] = new Menu("Dynamic HTML",55, forums["DHTML"])
m[m.length] = new Menu("Site Comments",55, forums["Site Comments"])
m[m.length] = new Menu("&lt;Forums Index&gt;",55, forums["Main"])

m = menus[0].menus[2].menus[1].menus
m[m.length] = new Menu("Anime Theme World Online",57, forums["Forum Chat"])
// m[m.length] = new Menu("Sign Guestbook",1, "http://www.lpage.com/wgb/wgbsign.dbm?owner=pai")
// m[m.length] = new Menu("View Guestbook",1, "http://www.lpage.com/wgb/wgbview.dbm?owner=pai")
m[m.length] = new Menu("Survey",1, "survey.html")
m[m.length] = new Menu("Email me!",56, "mailto:webmaster@animetheme.com", "webmaster@animetheme.com")

m = menus[0].menus[3].menus
m[m.length] = new Menu("Display",0)
m[m.length] = new Menu("Audio",0)
m[m.length] = new Menu("Customize",0)
m[m.length] = new Menu("Profile",1, "cgi-bin/ikonboard/profile.cgi")
m[m.length] = new Menu("Direct JavaScript",1, ' direct_js()')

m = menus[0].menus[3].menus[0].menus
m[m.length] = new Menu("Hide Banners",1, ' visChange(Lvbanner, false); visChange(Llink_exchange, false)')
m[m.length] = new Menu("Show Banners",1, ' visChange(Lvbanner, true); visChange(Llink_exchange, true)')
m[m.length] = new Menu("Hide Title Screen",1, ' Lmain.style.visibility = "hidden" ')
m[m.length] = new Menu("Show Title Screen",1, ' Lmain.style.visibility = "inherit" ')

m = menus[0].menus[3].menus[1].menus
m[m.length] = new Menu("Auto Repeat",1, ' midi.PlayCount = 0')
m[m.length] = new Menu("Play / Resume Music",1, ' if (wmp7) midi.controls.play()')
m[m.length] = new Menu("Stop Music",1, ' if (wmp7) midi.controls.stop()')
m[m.length] = new Menu("NO Music",1, ' if (confirm("This will DISABLE auto-loading of music on most pages in this site.")) { MIDI_disabled = true; if (wmp7) midi.controls.stop(); }')

var func_desktop_lady = ' activate_guide(\'build_list("Guides List",[[g_first_msg],["Who is your most favorite Desktop Lady?"],["Goodbye, my master ^_^"]],g_list)\')'
var func_desktop_guy = ' activate_guide(\'build_list("Guy Guides List",[[gm_first_msg],["Who is your most favorite Desktop Guy?"],["Goodbye, my master ^_^"]],gm_list)\')'

m = menus[0].menus[3].menus[2].menus
m[m.length] = new Menu("Random Wallpaper",1, ' RandomWallpaper()')
m[m.length] = new Menu("Background & MIDI",1, ' changeTheme()')
m[m.length] = new Menu("Title Background",1, ' randomTitleBG()', "Change the background on the Start menu!")
m[m.length] = new Menu("Desktop Lady",1, func_desktop_lady)
m[m.length] = new Menu("Desktop Guy",1, func_desktop_guy)
m[m.length] = new Menu("Desktop Lady (M-rated)",1, ' if (confirmGS()) {activate_guide(\'build_list("Sexy Guides List",[[gs_first_msg],["Please make sure that you are old enough to use this service~!","Why do people like you always like to see naked gals? ^_^;"],["Goodbye, my master ^_^"]],gs_list)\')}')

m = menus[0].menus[4].menus
m[m.length] = new Menu("Desktop Files Info",1, "icocur.html")
//m[m.length] = new Menu("My Desktop",1, "desktop.html")
m[m.length] = new Menu("About this Webtop",1, "dhtml/", 'Find out what powers this "Anime Theme Online Desktop"!')
//' activate_guide(\'init_guide(["This Webtop was written by Butz Yung, the site owner of Anime Theme~!","Wanna use something similar on your page too?","Click the \\\\"Dynamic HTML\\\\" icon~!"], report)\')'
m[m.length] = new Menu("Webmaster Help",55, forums["DHTML"])
m[m.length] = new Menu("Privacy Policy",1, "privacy.html")

m = menus[0].menus[5].menus
m[m.length] = new Menu("Links to other sites",1, "links.html")
m[m.length] = new Menu("The Nimbus Group",1, ' self.open("http://www.www.mynimbuscloud.com/")')
m[m.length] = new Menu("Platinum Hosting",1, ' self.open("http://www.platinum-hosting.net/")')
m[m.length] = new Menu("Link to us!",1, "redirect.html", "Own a blog or site? Please link to us!")


// custom options START

// season_special = true

function AnimeShop() {
  activate_guide('build_list("Anime Theme Shop", [["Looking for Anime and other goods? Support Anime Theme and buy them online from our partners~! ^_^"],["Support Anime Theme! Buy something please~! ^_^"],["Please come back soon~!"]], animetheme_shop_list)')
}

function ATWO() {
  if (ie5 && ie_win)
    autoRunMain("rpgd_online/index.html", event, {innerText:"Anime Theme World Online"})
  else
    activate_guide('init_guide(["Sorry, this is for Windows version of Internet Explorer 5+ only :P"], report)')
}

function guide_shows_window_core(win_num) {
  if (document.getElementById("Lwindow" + win_num).style.visibility != "hidden")
    return

  place_main_menu()

  menu_state = 1
  msgs = msgs_chat
  frame_offset = frame - 50

  show_window(win_num)
}

function guide_shows_window(content, win_num) {
  action_for_already_shown_menu = 'Lmenu_list.style.visibility = "hidden"; show_window(' + win_num + ')'

  var action = function () { guide_shows_something(function () { guide_shows_window_core(win_num) }) }

  if (!init_guide(content[0], action, 50+250))
    return

  msgs_full = content
  msgs_chat = content[1]

  if (menu_state == -1) {
    menu_state = 0
    hide_frame_num = -1
  }
}

function AT_Search() {
  activate_guide('guide_shows_window([["Looking for something? Let me find it for you~!"],["Looking for something? Let me find it for you~!"],["See ya~!"]], 4)')
}

// custom options END

// end of options area

