var tree; var nodes = new Array(); var nodeIndex = 0; var menuElements = new Array(); menuElements[0] = new Array(); menuElements[0][0] = "Users Management"; menuElements[0][1] = ""; menuElements[0][2] = new Array(); menuElements[0][2][0] = new Array(); menuElements[0][2][0][0] = new Array(); menuElements[0][2][0][0][0] = "Benutzer"; menuElements[0][2][0][0][1] = "/templates/admin/images/menu/icons/users.gif"; menuElements[0][2][0][0][2] = "/admin/admin_users.php"; menuElements[0][2][0][0][3] = "item2"; menuElements[0][2][0][1] = new Array(); menuElements[0][2][0][1][0] = new Array(); menuElements[0][2][0][1][0][0] = "Benutzerliste"; menuElements[0][2][0][1][0][1] = "/templates/admin/images/menu/icons/users_list.gif"; menuElements[0][2][0][1][0][2] = "/admin/admin_users.php"; menuElements[0][2][0][1][0][3] = ""; menuElements[0][2][0][1][1] = new Array(); menuElements[0][2][0][1][1][0] = "Mitglied einfügen"; menuElements[0][2][0][1][1][1] = "/templates/admin/images/menu/icons/users_add.gif"; menuElements[0][2][0][1][1][2] = "/admin/admin_users.php?sel=add"; menuElements[0][2][0][1][1][3] = ""; menuElements[0][2][0][1][2] = new Array(); menuElements[0][2][0][1][2][0] = "Top 10 Mitglieder"; menuElements[0][2][0][1][2][1] = "/templates/admin/images/menu/icons/users_top_ten.gif"; menuElements[0][2][0][1][2][2] = "/admin/admin_users.php?sel=top"; menuElements[0][2][0][1][2][3] = "window.open('/admin/admin_users.php?sel=top','top10','height=500,resizable=yes,scrollbars=yes,width=600,menubar=no,status=no');"; menuElements[0][2][0][1][3] = new Array(); menuElements[0][2][0][1][3][0] = "Wie wir gefunden wurden"; menuElements[0][2][0][1][3][1] = "/templates/admin/images/menu/icons/ref_user_types.gif"; menuElements[0][2][0][1][3][2] = "/admin/admin_users_come.php"; menuElements[0][2][0][1][3][3] = ""; menuElements[0][2][0][1][4] = new Array(); menuElements[0][2][0][1][4][0] = "Gemeldete Profile"; menuElements[0][2][0][1][4][1] = "/templates/admin/images/menu/icons/users_reported.gif"; menuElements[0][2][0][1][4][2] = "/admin/admin_users_reported.php"; menuElements[0][2][0][1][4][3] = ""; menuElements[0][2][0][1][5] = new Array(); menuElements[0][2][0][1][5][0] = "Container"; menuElements[0][2][0][1][5][1] = "/templates/admin/images/menu/icons/ref_description.gif"; menuElements[0][2][0][1][5][2] = "/admin/admin_users_container.php"; menuElements[0][2][0][1][5][3] = ""; menuElements[0][2][0][1][6] = new Array(); menuElements[0][2][0][1][6][0] = "IP-Sperrung"; menuElements[0][2][0][1][6][1] = "/templates/admin/images/menu/icons/ip.png"; menuElements[0][2][0][1][6][2] = "/admin/admin_block_ip.php"; menuElements[0][2][0][1][6][3] = ""; menuElements[0][2][1] = new Array(); menuElements[0][2][1][0] = new Array(); menuElements[0][2][1][0][0] = "Gruppen"; menuElements[0][2][1][0][1] = "/templates/admin/images/menu/icons/groups.gif"; menuElements[0][2][1][0][2] = "/admin/admin_groups.php"; menuElements[0][2][1][0][3] = "item10"; menuElements[0][2][1][1] = new Array(); menuElements[0][2][1][1][0] = new Array(); menuElements[0][2][1][1][0][0] = "Gruppenliste"; menuElements[0][2][1][1][0][1] = "/templates/admin/images/menu/icons/groups_list.gif"; menuElements[0][2][1][1][0][2] = "/admin/admin_groups.php"; menuElements[0][2][1][1][0][3] = ""; menuElements[0][2][1][1][1] = new Array(); menuElements[0][2][1][1][1][0] = "Gruppe einfügen"; menuElements[0][2][1][1][1][1] = "/templates/admin/images/menu/icons/groups_add.gif"; menuElements[0][2][1][1][1][2] = "/admin/admin_groups.php?sel=add"; menuElements[0][2][1][1][1][3] = ""; menuElements[0][2][2] = new Array(); menuElements[0][2][2][0] = new Array(); menuElements[0][2][2][0][0] = "Rechnung"; menuElements[0][2][2][0][1] = "/templates/admin/images/menu/icons/billing.gif"; menuElements[0][2][2][0][2] = "/admin/admin_pays.php"; menuElements[0][2][2][0][3] = "item13"; menuElements[0][2][2][1] = new Array(); menuElements[0][2][2][1][0] = new Array(); menuElements[0][2][2][1][0][0] = "User Rechnungen"; menuElements[0][2][2][1][0][1] = "/templates/admin/images/menu/icons/billing_users.gif"; menuElements[0][2][2][1][0][2] = "/admin/admin_pays.php"; menuElements[0][2][2][1][0][3] = ""; menuElements[0][2][2][1][1] = new Array(); menuElements[0][2][2][1][1][0] = "Gruppen / Kosten"; menuElements[0][2][2][1][1][1] = "/templates/admin/images/menu/icons/billing_group_cost.gif"; menuElements[0][2][2][1][1][2] = "/admin/admin_pays.php?sel=groups"; menuElements[0][2][2][1][1][3] = ""; menuElements[0][2][2][1][2] = new Array(); menuElements[0][2][2][1][2][0] = "Zahlungsmodalitäten"; menuElements[0][2][2][1][2][1] = "/templates/admin/images/menu/icons/billing_settings.gif"; menuElements[0][2][2][1][2][2] = "/admin/admin_pays.php?sel=settings"; menuElements[0][2][2][1][2][3] = ""; menuElements[0][2][2][1][3] = new Array(); menuElements[0][2][2][1][3][0] = "Payment statistics"; menuElements[0][2][2][1][3][1] = "/templates/admin/images/menu/icons/billing_users.gif"; menuElements[0][2][2][1][3][2] = "/admin/admin_pays.php?sel=stat"; menuElements[0][2][2][1][3][3] = ""; menuElements[0][2][3] = new Array(); menuElements[0][2][3][0] = new Array(); menuElements[0][2][3][0][0] = "Uploades"; menuElements[0][2][3][0][1] = "/templates/admin/images/menu/icons/uploads.gif"; menuElements[0][2][3][0][2] = "/admin/admin_upload.php"; menuElements[0][2][3][0][3] = "item18"; menuElements[0][2][3][1] = new Array(); menuElements[1] = new Array(); menuElements[1][0] = "Seiten Inhalts Management"; menuElements[1][1] = ""; menuElements[1][2] = new Array(); menuElements[1][2][0] = new Array(); menuElements[1][2][0][0] = new Array(); menuElements[1][2][0][0][0] = "Nachrichten"; menuElements[1][2][0][0][1] = "/templates/admin/images/menu/icons/news.gif"; menuElements[1][2][0][0][2] = "/admin/admin_news.php"; menuElements[1][2][0][0][3] = "item20"; menuElements[1][2][0][1] = new Array(); menuElements[1][2][0][1][0] = new Array(); menuElements[1][2][0][1][0][0] = "Nachrichenliste"; menuElements[1][2][0][1][0][1] = "/templates/admin/images/menu/icons/news_list.gif"; menuElements[1][2][0][1][0][2] = "/admin/admin_news.php"; menuElements[1][2][0][1][0][3] = ""; menuElements[1][2][0][1][1] = new Array(); menuElements[1][2][0][1][1][0] = "Nachrichten einfügen"; menuElements[1][2][0][1][1][1] = "/templates/admin/images/menu/icons/news_add.gif"; menuElements[1][2][0][1][1][2] = "/admin/admin_news.php?sel=add"; menuElements[1][2][0][1][1][3] = ""; menuElements[1][2][0][1][2] = new Array(); menuElements[1][2][0][1][2][0] = "RSS Feeds"; menuElements[1][2][0][1][2][1] = "/templates/admin/images/menu/icons/rss_feed_list.gif"; menuElements[1][2][0][1][2][2] = "/admin/admin_news.php"; menuElements[1][2][0][1][2][3] = ""; menuElements[1][2][0][1][3] = new Array(); menuElements[1][2][0][1][3][0] = "Feed hinzufügen"; menuElements[1][2][0][1][3][1] = "/templates/admin/images/menu/icons/rss_feed_add.gif"; menuElements[1][2][0][1][3][2] = "/admin/admin_news.php?sel=add_f"; menuElements[1][2][0][1][3][3] = ""; menuElements[1][2][1] = new Array(); menuElements[1][2][1][0] = new Array(); menuElements[1][2][1][0][0] = "Referenz"; menuElements[1][2][1][0][1] = "/templates/admin/images/menu/icons/reference.gif"; menuElements[1][2][1][0][2] = "/admin/admin_references.php"; menuElements[1][2][1][0][3] = "item25"; menuElements[1][2][1][1] = new Array(); menuElements[1][2][1][1][0] = new Array(); menuElements[1][2][1][1][0][0] = "Beschreiben Sie sich"; menuElements[1][2][1][1][0][1] = "/templates/admin/images/menu/icons/ref_description.gif"; menuElements[1][2][1][1][0][2] = "/admin/admin_references.php"; menuElements[1][2][1][1][0][3] = ""; menuElements[1][2][1][1][1] = new Array(); menuElements[1][2][1][1][1][0] = "Staat"; menuElements[1][2][1][1][1][1] = "/templates/admin/images/menu/icons/ref_countries.gif"; menuElements[1][2][1][1][1][2] = "/admin/admin_countries.php"; menuElements[1][2][1][1][1][3] = ""; menuElements[1][2][1][1][2] = new Array(); menuElements[1][2][1][1][2][0] = "Countries sorter"; menuElements[1][2][1][1][2][1] = "/templates/admin/images/menu/icons/ref_countries.gif"; menuElements[1][2][1][1][2][2] = "/admin/admin_countries.php?sel=sorter"; menuElements[1][2][1][1][2][3] = ""; menuElements[1][2][1][1][3] = new Array(); menuElements[1][2][1][1][3][0] = "Sprachen"; menuElements[1][2][1][1][3][1] = "/templates/admin/images/menu/icons/ref_languages.gif"; menuElements[1][2][1][1][3][2] = "/admin/admin_languages.php"; menuElements[1][2][1][1][3][3] = ""; menuElements[1][2][1][1][4] = new Array(); menuElements[1][2][1][1][4][0] = "Nationalität"; menuElements[1][2][1][1][4][1] = "/templates/admin/images/menu/icons/ref_nationalities.gif"; menuElements[1][2][1][1][4][2] = "/admin/admin_nationality.php"; menuElements[1][2][1][1][4][3] = ""; menuElements[1][2][1][1][5] = new Array(); menuElements[1][2][1][1][5][0] = "Persönliche Daten"; menuElements[1][2][1][1][5][1] = "/templates/admin/images/menu/icons/ref_personal_data.gif"; menuElements[1][2][1][1][5][2] = "/admin/admin_personality.php"; menuElements[1][2][1][1][5][3] = ""; menuElements[1][2][1][1][6] = new Array(); menuElements[1][2][1][1][6][0] = "Mein Portrait"; menuElements[1][2][1][1][6][1] = "/templates/admin/images/menu/icons/ref_my_portrait.gif"; menuElements[1][2][1][1][6][2] = "/admin/admin_portrait.php"; menuElements[1][2][1][1][6][3] = ""; menuElements[1][2][1][1][7] = new Array(); menuElements[1][2][1][1][7][0] = "Interessen"; menuElements[1][2][1][1][7][1] = "/templates/admin/images/menu/icons/ref_interests.gif"; menuElements[1][2][1][1][7][2] = "/admin/admin_interests.php"; menuElements[1][2][1][1][7][3] = ""; menuElements[1][2][1][1][8] = new Array(); menuElements[1][2][1][1][8][0] = "Relationships"; menuElements[1][2][1][1][8][1] = "/templates/admin/images/menu/icons/ref_relationship.gif"; menuElements[1][2][1][1][8][2] = "/admin/admin_relationship.php"; menuElements[1][2][1][1][8][3] = ""; menuElements[1][2][1][1][9] = new Array(); menuElements[1][2][1][1][9][0] = "User types"; menuElements[1][2][1][1][9][1] = "/templates/admin/images/menu/icons/ref_user_types.gif"; menuElements[1][2][1][1][9][2] = "/admin/admin_types.php"; menuElements[1][2][1][1][9][3] = ""; menuElements[1][2][1][1][10] = new Array(); menuElements[1][2][1][1][10][0] = "Gewicht"; menuElements[1][2][1][1][10][1] = "/templates/admin/images/menu/icons/ref_weight.gif"; menuElements[1][2][1][1][10][2] = "/admin/admin_weight.php"; menuElements[1][2][1][1][10][3] = ""; menuElements[1][2][1][1][11] = new Array(); menuElements[1][2][1][1][11][0] = "Grösse"; menuElements[1][2][1][1][11][1] = "/templates/admin/images/menu/icons/ref_height.gif"; menuElements[1][2][1][1][11][2] = "/admin/admin_height.php"; menuElements[1][2][1][1][11][3] = ""; menuElements[1][2][1][1][12] = new Array(); menuElements[1][2][1][1][12][0] = "Entfernungen"; menuElements[1][2][1][1][12][1] = "/templates/admin/images/menu/icons/ref_distances.gif"; menuElements[1][2][1][1][12][2] = "/admin/admin_distance.php"; menuElements[1][2][1][1][12][3] = ""; menuElements[1][2][1][1][13] = new Array(); menuElements[1][2][1][1][13][0] = "Quickmails"; menuElements[1][2][1][1][13][1] = "/templates/admin/images/menu/icons/area_testimonials.gif"; menuElements[1][2][1][1][13][2] = "/admin/admin_quickmails.php"; menuElements[1][2][1][1][13][3] = ""; menuElements[1][2][1][1][14] = new Array(); menuElements[1][2][1][1][14][0] = "Report profile"; menuElements[1][2][1][1][14][1] = "/templates/admin/images/menu/icons/area_testimonials.gif"; menuElements[1][2][1][1][14][2] = "/admin/admin_report_profile.php"; menuElements[1][2][1][1][14][3] = ""; menuElements[1][2][2] = new Array(); menuElements[1][2][2][0] = new Array(); menuElements[1][2][2][0][0] = "Banners"; menuElements[1][2][2][0][1] = "/templates/admin/images/menu/icons/banners.gif"; menuElements[1][2][2][0][2] = "/admin/admin_banners.php"; menuElements[1][2][2][0][3] = "item41"; menuElements[1][2][2][1] = new Array(); menuElements[1][2][2][1][0] = new Array(); menuElements[1][2][2][1][0][0] = "Bannersliste"; menuElements[1][2][2][1][0][1] = "/templates/admin/images/menu/icons/banners_list.gif"; menuElements[1][2][2][1][0][2] = "/admin/admin_banners.php"; menuElements[1][2][2][1][0][3] = ""; menuElements[1][2][2][1][1] = new Array(); menuElements[1][2][2][1][1][0] = "Banner einfügen"; menuElements[1][2][2][1][1][1] = "/templates/admin/images/menu/icons/banners_add.gif"; menuElements[1][2][2][1][1][2] = "/admin/admin_banners.php?sel=add"; menuElements[1][2][2][1][1][3] = ""; menuElements[1][2][3] = new Array(); menuElements[1][2][3][0] = new Array(); menuElements[1][2][3][0][0] = "Gesperrte Wörter"; menuElements[1][2][3][0][1] = "/templates/admin/images/menu/icons/bad_words.gif"; menuElements[1][2][3][0][2] = "/admin/admin_badwords.php"; menuElements[1][2][3][0][3] = "item44"; menuElements[1][2][3][1] = new Array(); menuElements[1][2][3][1][0] = new Array(); menuElements[1][2][3][1][0][0] = "Nicht erlaubte Wörter Alarm"; menuElements[1][2][3][1][0][1] = "/templates/admin/images/menu/icons/bad_words_alert.gif"; menuElements[1][2][3][1][0][2] = "/admin/admin_badwords.php"; menuElements[1][2][3][1][0][3] = ""; menuElements[1][2][3][1][1] = new Array(); menuElements[1][2][3][1][1][0] = "Gesperrte Wörter Ordner"; menuElements[1][2][3][1][1][1] = "/templates/admin/images/menu/icons/bad_words_file.gif"; menuElements[1][2][3][1][1][2] = "/admin/admin_badwords.php?sel=fileform"; menuElements[1][2][3][1][1][3] = ""; menuElements[1][2][4] = new Array(); menuElements[1][2][4][0] = new Array(); menuElements[1][2][4][0][0] = "Umgebungseditor"; menuElements[1][2][4][0][1] = "/templates/admin/images/menu/icons/area_editor.gif"; menuElements[1][2][4][0][2] = "/admin/admin_addition_info.php?sel=1"; menuElements[1][2][4][0][3] = "item47"; menuElements[1][2][4][1] = new Array(); menuElements[1][2][4][1][0] = new Array(); menuElements[1][2][4][1][0][0] = "F.A.Q."; menuElements[1][2][4][1][0][1] = "/templates/admin/images/menu/icons/area_help.gif"; menuElements[1][2][4][1][0][2] = "/admin/admin_addition_info.php?sel=1"; menuElements[1][2][4][1][0][3] = ""; menuElements[1][2][4][1][1] = new Array(); menuElements[1][2][4][1][1][0] = "Hilfe & Tipps"; menuElements[1][2][4][1][1][1] = "/templates/admin/images/menu/icons/area_help.gif"; menuElements[1][2][4][1][1][2] = "/admin/admin_addition_info.php?sel=7"; menuElements[1][2][4][1][1][3] = ""; menuElements[1][2][4][1][2] = new Array(); menuElements[1][2][4][1][2][0] = "Impressum"; menuElements[1][2][4][1][2][1] = "/templates/admin/images/menu/icons/area_testimonials.gif"; menuElements[1][2][4][1][2][2] = "/admin/admin_addition_info.php?sel=2"; menuElements[1][2][4][1][2][3] = ""; menuElements[1][2][4][1][3] = new Array(); menuElements[1][2][4][1][3][0] = "AGB"; menuElements[1][2][4][1][3][1] = "/templates/admin/images/menu/icons/area_general_conditions.gif"; menuElements[1][2][4][1][3][2] = "/admin/admin_addition_info.php?sel=3"; menuElements[1][2][4][1][3][3] = ""; menuElements[1][2][4][1][4] = new Array(); menuElements[1][2][4][1][4][0] = "Kontakte"; menuElements[1][2][4][1][4][1] = "/templates/admin/images/menu/icons/area_contact_us.gif"; menuElements[1][2][4][1][4][2] = "/admin/admin_addition_info.php?sel=4"; menuElements[1][2][4][1][4][3] = ""; menuElements[1][2][4][1][5] = new Array(); menuElements[1][2][4][1][5][0] = "Presse"; menuElements[1][2][4][1][5][1] = "/templates/admin/images/menu/icons/area_press.gif"; menuElements[1][2][4][1][5][2] = "/admin/admin_addition_info.php?sel=5"; menuElements[1][2][4][1][5][3] = ""; menuElements[1][2][4][1][6] = new Array(); menuElements[1][2][4][1][6][0] = "Tour"; menuElements[1][2][4][1][6][1] = "/templates/admin/images/menu/icons/area_take_tour.gif"; menuElements[1][2][4][1][6][2] = "/admin/admin_taketour.php"; menuElements[1][2][4][1][6][3] = ""; menuElements[1][2][4][1][7] = new Array(); menuElements[1][2][4][1][7][0] = "Ratgeber"; menuElements[1][2][4][1][7][1] = "/templates/admin/images/menu/icons/area_advices.gif"; menuElements[1][2][4][1][7][2] = "/admin/admin_advice.php"; menuElements[1][2][4][1][7][3] = ""; menuElements[1][2][4][1][8] = new Array(); menuElements[1][2][4][1][8][0] = "Erfolgs Stories"; menuElements[1][2][4][1][8][1] = "/templates/admin/images/menu/icons/area_stories.gif"; menuElements[1][2][4][1][8][2] = "/admin/admin_success_stories.php"; menuElements[1][2][4][1][8][3] = ""; menuElements[1][2][4][1][9] = new Array(); menuElements[1][2][4][1][9][0] = "Index page bottom"; menuElements[1][2][4][1][9][1] = "/templates/admin/images/menu/icons/area_contact_us.gif"; menuElements[1][2][4][1][9][2] = "/admin/admin_addition_info.php?sel=6"; menuElements[1][2][4][1][9][3] = ""; menuElements[1][2][4][1][10] = new Array(); menuElements[1][2][4][1][10][0] = "Datenschutz"; menuElements[1][2][4][1][10][1] = "/templates/admin/images/menu/icons/area_contact_us.gif"; menuElements[1][2][4][1][10][2] = "/admin/admin_addition_info.php?sel=8"; menuElements[1][2][4][1][10][3] = ""; menuElements[2] = new Array(); menuElements[2][0] = "Site Settings Management"; menuElements[2][1] = ""; menuElements[2][2] = new Array(); menuElements[2][2][0] = new Array(); menuElements[2][2][0][0] = new Array(); menuElements[2][2][0][0][0] = "Einstellungen"; menuElements[2][2][0][0][1] = "/templates/admin/images/menu/icons/settings.gif"; menuElements[2][2][0][0][2] = "/admin/admin_settings.php"; menuElements[2][2][0][0][3] = "item60"; menuElements[2][2][0][1] = new Array(); menuElements[3] = new Array(); menuElements[3][0] = "Modules Management"; menuElements[3][1] = ""; menuElements[3][2] = new Array(); menuElements[3][2][0] = new Array(); menuElements[3][2][0][0] = new Array(); menuElements[3][2][0][0][0] = "Chat"; menuElements[3][2][0][0][1] = "/templates/admin/images/menu/icons/chat.gif"; menuElements[3][2][0][0][2] = "/flash_chat/admin/msglist.php"; menuElements[3][2][0][0][3] = "item62"; menuElements[3][2][0][1] = new Array(); menuElements[3][2][0][1][0] = new Array(); menuElements[3][2][0][1][0][0] = "Mitteilungen"; menuElements[3][2][0][1][0][1] = "/templates/admin/images/menu/icons/chat_messages.gif"; menuElements[3][2][0][1][0][2] = "/flash_chat/admin/msglist.php"; menuElements[3][2][0][1][0][3] = ""; menuElements[3][2][0][1][1] = new Array(); menuElements[3][2][0][1][1][0] = "Räume"; menuElements[3][2][0][1][1][1] = "/templates/admin/images/menu/icons/chat_rooms.gif"; menuElements[3][2][0][1][1][2] = "/flash_chat/admin/roomlist.php"; menuElements[3][2][0][1][1][3] = ""; menuElements[3][2][0][1][2] = new Array(); menuElements[3][2][0][1][2][0] = "Verbindungen"; menuElements[3][2][0][1][2][1] = "/templates/admin/images/menu/icons/chat_connections.gif"; menuElements[3][2][0][1][2][2] = "/flash_chat/admin/connlist.php"; menuElements[3][2][0][1][2][3] = ""; menuElements[3][2][0][1][3] = new Array(); menuElements[3][2][0][1][3][0] = "Bans"; menuElements[3][2][0][1][3][1] = "/templates/admin/images/menu/icons/chat_bans.gif"; menuElements[3][2][0][1][3][2] = "/flash_chat/admin/banlist.php"; menuElements[3][2][0][1][3][3] = ""; menuElements[3][2][0][1][4] = new Array(); menuElements[3][2][0][1][4][0] = "Sperrungen"; menuElements[3][2][0][1][4][1] = "/templates/admin/images/menu/icons/chat_ignoring.gif"; menuElements[3][2][0][1][4][2] = "/flash_chat/admin/ignorelist.php"; menuElements[3][2][0][1][4][3] = ""; menuElements[3][2][0][1][5] = new Array(); menuElements[3][2][0][1][5][0] = "Bots"; menuElements[3][2][0][1][5][1] = "/templates/admin/images/menu/icons/chat_bots.gif"; menuElements[3][2][0][1][5][2] = "/flash_chat/admin/botlist.php"; menuElements[3][2][0][1][5][3] = ""; menuElements[3][2][0][1][6] = new Array(); menuElements[3][2][0][1][6][0] = "Moderators"; menuElements[3][2][0][1][6][1] = "/templates/admin/images/menu/icons/chat_moderators.gif"; menuElements[3][2][0][1][6][2] = "/flash_chat/admin/modlist.php"; menuElements[3][2][0][1][6][3] = ""; menuElements[3][2][0][1][7] = new Array(); menuElements[3][2][0][1][7][0] = "Chat Login"; menuElements[3][2][0][1][7][1] = "/templates/admin/images/menu/icons/chat_login.gif"; menuElements[3][2][0][1][7][2] = "/flash_chat/flashchat.php"; menuElements[3][2][0][1][7][3] = "window.open('/flash_chat/flashchat.php','chat','menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0,width=800,height=600');"; menuElements[3][2][1] = new Array(); menuElements[3][2][1][0] = new Array(); menuElements[3][2][1][0][0] = "Newsletters"; menuElements[3][2][1][0][1] = "/templates/admin/images/menu/icons/newsletter.gif"; menuElements[3][2][1][0][2] = "/admin/admin_newsletter.php"; menuElements[3][2][1][0][3] = "item71"; menuElements[3][2][1][1] = new Array(); menuElements[3][2][1][1][0] = new Array(); menuElements[3][2][1][1][0][0] = "Email Warnungen"; menuElements[3][2][1][1][0][1] = "/templates/admin/images/menu/icons/nl_alerts.gif"; menuElements[3][2][1][1][0][2] = "/admin/admin_newsletter.php"; menuElements[3][2][1][1][0][3] = ""; menuElements[3][2][1][1][1] = new Array(); menuElements[3][2][1][1][1][0] = "Newsletters"; menuElements[3][2][1][1][1][1] = "/templates/admin/images/menu/icons/nl_newsletters.gif"; menuElements[3][2][1][1][1][2] = "/admin/newsletter/newsletters/index.php"; menuElements[3][2][1][1][1][3] = ""; menuElements[3][2][1][1][2] = new Array(); menuElements[3][2][1][1][2][0] = "Abbonenten"; menuElements[3][2][1][1][2][1] = "/templates/admin/images/menu/icons/nl_subscribers.gif"; menuElements[3][2][1][1][2][2] = "/admin/newsletter/users/index.php"; menuElements[3][2][1][1][2][3] = ""; menuElements[3][2][1][1][3] = new Array(); menuElements[3][2][1][1][3][0] = "Mailing Listen"; menuElements[3][2][1][1][3][1] = "/templates/admin/images/menu/icons/nl_mailing_list.gif"; menuElements[3][2][1][1][3][2] = "/admin/newsletter/lists/index.php"; menuElements[3][2][1][1][3][3] = ""; menuElements[3][2][1][1][4] = new Array(); menuElements[3][2][1][1][4][0] = "Schablonen"; menuElements[3][2][1][1][4][1] = "/templates/admin/images/menu/icons/nl_templates.gif"; menuElements[3][2][1][1][4][2] = "/admin/newsletter/template/index.php"; menuElements[3][2][1][1][4][3] = ""; menuElements[3][2][1][1][5] = new Array(); menuElements[3][2][1][1][5][0] = "Formulare"; menuElements[3][2][1][1][5][1] = "/templates/admin/images/menu/icons/nl_forms.gif"; menuElements[3][2][1][1][5][2] = "/admin/newsletter/forms/index.php"; menuElements[3][2][1][1][5][3] = ""; menuElements[3][2][1][1][6] = new Array(); menuElements[3][2][1][1][6][0] = "Statistiken"; menuElements[3][2][1][1][6][1] = "/templates/admin/images/menu/icons/nl_statistics.gif"; menuElements[3][2][1][1][6][2] = "/admin/newsletter/archive/index.php"; menuElements[3][2][1][1][6][3] = ""; menuElements[3][2][1][1][7] = new Array(); menuElements[3][2][1][1][7][0] = "Attachments"; menuElements[3][2][1][1][7][1] = "/templates/admin/images/menu/icons/nl_attachments.gif"; menuElements[3][2][1][1][7][2] = "/admin/newsletter/attaches/index.php"; menuElements[3][2][1][1][7][3] = ""; menuElements[3][2][1][1][8] = new Array(); menuElements[3][2][1][1][8][0] = "SMTP Servers"; menuElements[3][2][1][1][8][1] = "/templates/admin/images/menu/icons/nl_smtp_servers.gif"; menuElements[3][2][1][1][8][2] = "/admin/newsletter/smtp_servers/index.php"; menuElements[3][2][1][1][8][3] = ""; menuElements[3][2][1][1][9] = new Array(); menuElements[3][2][1][1][9][0] = "Settings"; menuElements[3][2][1][1][9][1] = "/templates/admin/images/menu/icons/nl_settings.gif"; menuElements[3][2][1][1][9][2] = "/admin/newsletter/settings.php"; menuElements[3][2][1][1][9][3] = ""; menuElements[3][2][2] = new Array(); menuElements[3][2][2][0] = new Array(); menuElements[3][2][2][0][0] = "Ms-Analysis"; menuElements[3][2][2][0][1] = "/templates/admin/images/menu/icons/ms_analysis.gif"; menuElements[3][2][2][0][2] = "/admin/admin_msanalysis.php"; menuElements[3][2][2][0][3] = "item82"; menuElements[3][2][2][1] = new Array(); function menuInit() { tree = new YAHOO.widget.TreeView("treeDiv1"); tree.onExpand = function(node) { // alert(node.index + " was expanded"); } tree.onCollapse = function(node) { // alert(node.index + " was collapsed"); } nodes[1] = new YAHOO.widget.MenuNode({label: "Home", icon: "/templates/admin/images/menu/icons/home.gif", href: "/admin/index.php"}, tree.getRoot(), false); for (var i = 0; i < menuElements.length; i++) { var thisId = nodeIndex++; var thisLabel = menuElements[i][0]; var thisIcon = ""; // nodes[thisId] = new YAHOO.widget.TextNode({ label: thisLabel }, tree.getRoot(), false); // nodes[thisId] = new YAHOO.widget.MenuNode({label:thisLabel, href:"http://asdf"}, tree.getRoot(), false); icon: } nodes[thisId] = new YAHOO.widget.HTMLNode('
' + thisLabel + '
', tree.getRoot(), false); for (var j = 0; j < menuElements[i][2].length; j++) { thisId = nodeIndex++; thisLabel = menuElements[i][2][j][0][0]; var thisIcon = ""; var thisHref = ""; var thisCookieID = ""; if (menuElements[i][2][j][0][1]) { thisIcon = menuElements[i][2][j][0][1]; } if (menuElements[i][2][j][0][2]) { thisHref = menuElements[i][2][j][0][2]; } if (menuElements[i][2][j][0][3]) { thisCookieID = menuElements[i][2][j][0][3]; } var thisShowIdentifier = getCookie('show' + thisCookieID); var thisShow; if (thisShowIdentifier == "Y") { thisShow = true; } else { thisShow = false; } // nodes[thisId] = new YAHOO.widget.TextNode({ label: thisLabel }, p1, true); nodes[thisId] = new YAHOO.widget.MenuNode({label: thisLabel, icon: thisIcon, href: thisHref, cookieid: thisCookieID}, tree.getRoot(), thisShow); var p2 = nodes[thisId]; for (var k =0; k < menuElements[i][2][j][1].length; k++) { thisId = nodeIndex++; thisLabel = menuElements[i][2][j][1][k][0]; var thisIcon = ""; var thisHref = ""; var thisOnclick = ""; if (menuElements[i][2][j][1][k][1]) { thisIcon = menuElements[i][2][j][1][k][1]; } if (menuElements[i][2][j][1][k][2]) { thisHref = menuElements[i][2][j][1][k][2]; } if (menuElements[i][2][j][1][k][3]) { thisOnclick = menuElements[i][2][j][1][k][3]; } var data = { id: thisId, label: thisLabel, icon: thisIcon, href: thisHref, onclick: thisOnclick} nodes[thisId] = new YAHOO.widget.TextNode(data, p2, false); // nodes[thisId] = new YAHOO.widget.MenuNode(thisLabel, p2, false); } } } // nodes[0] = new YAHOO.widget.TextNode(tree.getRoot(), false, "label-0"); tree.draw(); } var selectedId = null; function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } function onLabelClick(id) { var node = tree.getNodeByProperty("id", id); // alert(node.label); var el = node.getLabelEl() el.style.backgroundColor = "#c5dbfc"; if (selectedId != null) { node = tree.getNodeByProperty("id", selectedId); node.getLabelEl().style.backgroundColor = "white"; } selectedId = id; }