fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=100;
_menuOpenDelay=10;
_subOffsetTop=2;
_subOffsetLeft=-2;


with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#000000";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="10pt";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
itemwidth=85;
itemheight=25;
offcolor="#AADAAF";
offbgcolor="#242D44";
oncolor="#ffffff";
xoutfilter="fade(duration=0.5)";
xoverfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
xrawcss="padding-top:6px;padding-bottom:3px;";
separatorcolor="#000000";
separatorwidth=12;
separatorimage="/menu/imgs/vide.gif";
xsubimagepadding=2;
xsubimage="/menu/imgs/orange_7x4.gif";
image="/menu/imgs/orangedots.gif";
xximagepadding=2; 
}

with(submenuStyle=new mm_style()){
bordercolor="#404040";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="10pt";
fontstyle="normal";
fontweight="normal";
minitemwidth=150;

headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#242D44";
offcolor="#AADAAF";
onbgcolor="#000000";
oncolor="#ffffff";
xoutfilter="fade(duration=0.5)";
xoverfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=5)";
padding=6;
pagecolor="orange";
separatorsize=1;
separatorcolor="#404040";
subimage="/menu/imgs/white_7x7.gif";
subimagepadding=8;
closeonclick=1;
}

with(milonic=new menuname("Login")){
style=submenuStyle;
aI("text=Login;url=/login.php");
aI("text=Logout;url=/logout.php");
aI("text=Register;url=/new.php");
aI("text=Change password;url=/chpass.php");
aI("text=I have lost my password;url=/lost.php");
aI("text=Upgrade to donator;url=/donate.php");
aI("text=Credits;url=/credit.php");
}


with(milonic=new menuname("Weapons")){
style=submenuStyle;
aI("text=Bow;url=/items.php?fam=W&type=bow");
aI("text=Dagger;url=/items.php?fam=W&type=dagger");
aI("text=Greatsword;url=/items.php?fam=W&type=greatsword");
aI("text=Mace;url=/items.php?fam=W&type=mace");
aI("text=Orb;url=/items.php?fam=W&type=orb");
aI("text=Polearm;url=/items.php?fam=W&type=polearm");
aI("text=Spellbook;url=/items.php?fam=W&type=spellbook");
aI("text=Stave;url=/items.php?fam=W&type=staff");
aI("text=Sword;url=/items.php?fam=W&type=sword");
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";;
style=menuStyle;
aI("align=center;showmenu=Login;url=/login.php;text=Account;");
aI("align=center;showmenu=Items;text=Items;");
aI("align=center;showmenu=Recipes;text=Recipes;");
aI("align=center;showmenu=Npc;text=Npc;");
aI("align=center;showmenu=Quests;text=Quests;");
aI("align=center;showmenu=Skills;text=Skills;");
aI("align=center;showmenu=AH;text=AH Prices;");
aI("align=center;showmenu=Tools;text=Tools;");
aI("align=center;showmenu=Download;text=Download;");
aI("align=center;showmenu=DbInfo;text=Db Info;");
aI("align=center;url=http://www.l2wh.com/forum;target=forum;text=Forum;");
}

with(milonic=new menuname("DbInfo")){
left="offset=0";
style=submenuStyle;
aI("text=Top uploaders;url=/upload/top.php");
aI("text=Database stats;url=/upload/stats.php");
}

with(milonic=new menuname("Tools")){
left="offset=0";
style=submenuStyle;
aI("text=Upload your drops;url=/upload/uploader.php");
aI("text=Servers status;url=/servers.php");
aI("text=Grind Optimizer;url=/tools/grind.php");
aI("text=Warehouse Manager;url=/wh.php");
aI("text=XP Graphs;url=/tools/xp.php");
}

with(milonic=new menuname("Download")){
left="offset=0";
style=submenuStyle;
aI("text=Sniffer Download;url=/down/sniffer.php");
aI("text=AionWh Database Download;url=/down/aionwhdb.php");
}

with(milonic=new menuname("Quests")){
left="offset=0";
style=submenuStyle;
aI("text=Campaign Quests;url=/quests.php?type=mission");
aI("text=Normal Quests;url=/quests.php?type=normal");
aI("text=Work Orders;url=/quests.php?type=task");
}

with(milonic=new menuname("Craft")){
style=submenuStyle;
aI("text=Alchemy;url=/items.php?fam=craft&type=jalchemy");
aI("text=Armor Smithing;url=/items.php?fam=craft&type=jarmor");
aI("text=Conversion;url=/items.php?fam=craft&type=jconversion");
aI("text=Cooking;url=/items.php?fam=craft&type=jcook");
aI("text=Handcrafting;url=/items.php?fam=craft&type=jcraft");
aI("text=Tailoring;url=/items.php?fam=craft&type=jtailor");
aI("text=Weapon Smithing;url=/items.php?fam=craft&type=jweapon");
}

with(milonic=new menuname("Armors")){
style=submenuStyle;
aI("text=Cloth Armor;showmenu=Cloth;");
aI("text=Leather Armor;showmenu=Leather;");
aI("text=Chain Armor;showmenu=Chain;");
aI("text=Plate Armor;showmenu=Plate;");
aI("text=Jewelry;showmenu=Jewel;");
aI("text=Belts;url=/items.php?type=belt");
aI("text=Helms;url=/items.php?type=helm");
aI("text=Shields;url=/items.php?type=shield");
aI("text=Wings;url=/items.php?type=wing");
}

with(milonic=new menuname("Jewel")){
style=submenuStyle;
aI("text=Earrings;url=/items.php?type=ear");
aI("text=Necklaces;url=/items.php?type=neck");
aI("text=Rings;url=/items.php?type=ring");
}

with(milonic=new menuname("Cloth")){
style=submenuStyle;
aI("text=Jacket;url=/items.php?type=jacket&fam=cloth");
aI("text=Gloves;url=/items.php?type=gloves&fam=cloth");
aI("text=Pauldron;url=/items.php?type=pauldron&fam=cloth");
aI("text=Pants;url=/items.php?type=pants&fam=cloth");
aI("text=Shoes;url=/items.php?type=shoes&fam=cloth");
}

with(milonic=new menuname("Leather")){
style=submenuStyle;
aI("text=Jacket;url=/items.php?type=jacket&fam=leather");
aI("text=Gloves;url=/items.php?type=gloves&fam=leather");
aI("text=Pauldron;url=/items.php?type=pauldron&fam=leather");
aI("text=Pants;url=/items.php?type=pants&fam=leather");
aI("text=Shoes;url=/items.php?type=shoes&fam=leather");
}


with(milonic=new menuname("Chain")){
style=submenuStyle;
aI("text=Jacket;url=/items.php?type=jacket&fam=chain");
aI("text=Gloves;url=/items.php?type=gloves&fam=chain");
aI("text=Pauldron;url=/items.php?type=pauldron&fam=chain");
aI("text=Pants;url=/items.php?type=pants&fam=chain");
aI("text=Shoes;url=/items.php?type=shoes&fam=chain");
}


with(milonic=new menuname("Plate")){
style=submenuStyle;
aI("text=Jacket;url=/items.php?type=jacket&fam=plate");
aI("text=Gloves;url=/items.php?type=gloves&fam=plate");
aI("text=Pauldron;url=/items.php?type=pauldron&fam=plate");
aI("text=Pants;url=/items.php?type=pants&fam=plate");
aI("text=Shoes;url=/items.php?type=shoes&fam=plate");
}

with(milonic=new menuname("Items")){
left="offset=0";
style=submenuStyle;
aI("text=By Name;url=/items.php?type=search");
aI("showmenu=Weapons;text=Weapons;");
aI("showmenu=Armors;text=Armors;");
aI("showmenu=Enhance;text=Enhancement items;");
aI("showmenu=Craft;text=Crafting material;");
aI("align=left;showmenu=Conso;text=Consumable items;");
aI("align=left;showmenu=Gather;text=Gathering ressources;");
aI("text=Quest items;url=/items.php?type=quest");
}

with(milonic=new menuname("Conso")){
style=submenuStyle;
aI("text=Potions;url=/items.php?type=pot");
aI("text=Food;url=/items.php?type=food");
aI("text=Odella;url=/items.php?type=odel");
}

with(milonic=new menuname("Enhance")){
style=submenuStyle;
aI("text=Stigma Stone;url=/items.php?type=stigma");
aI("text=Power Shard;url=/items.php?type=power");
aI("text=God Stones;url=/items.php?type=god");
aI("text=Mana Stones;url=/items.php?type=mana");
}

with(milonic=new menuname("NpcLevel")){
left="offset=0";
style=submenuStyle;
aI("text=1-9;url=/mobs.php?hide=1&lvl=1");
aI("text=10-19;url=/mobs.php?hide=1&lvl=2");
aI("text=20-29;url=/mobs.php?hide=1&lvl=3");
aI("text=30-39;url=/mobs.php?hide=1&lvl=4");
aI("text=40-49;url=/mobs.php?hide=1&lvl=5");
aI("text=50-59;url=/mobs.php?hide=1&lvl=6");
}

with(milonic=new menuname("NpcZone")){
left="offset=0";
style=submenuStyle;
aI("text=Altgard;url=/mobs.php?hide=1&zone=220030000");
aI("text=Beluslan;url=/mobs.php?hide=1&zone=220040000");
aI("text=Brusthonin;url=/mobs.php?hide=1&zone=220050000");
aI("text=Eltnen;url=/mobs.php?hide=1&zone=210020000");
aI("text=Heiron;url=/mobs.php?hide=1&zone=210040000");
aI("text=Ishalgen;url=/mobs.php?hide=1&zone=220010000");
aI("text=Morheim;url=/mobs.php?hide=1&zone=220020000");
aI("text=Pandaemonium;url=/mobs.php?hide=1&zone=120010000");
aI("text=Poeta;url=/mobs.php?hide=1&zone=210010000");
aI("text=Reshanta;url=/mobs.php?hide=1&zone=400010000");
aI("text=Sanctum;url=/mobs.php?hide=1&zone=110010000");
aI("text=Theobomos;url=/mobs.php?hide=1&zone=210060000");
aI("text=Verteron;url=/mobs.php?hide=1&zone=210030000");
}

with(milonic=new menuname("NpcRank")){
left="offset=0";
style=submenuStyle;
aI("text=Novice;url=/mobs.php?hide=1&rank=1");
aI("text=Disciplined;url=/mobs.php?hide=1&rank=2");
aI("text=Seasoned;url=/mobs.php?hide=1&rank=3");
aI("text=Expert;url=/mobs.php?hide=1&rank=4");
aI("text=Veteran;url=/mobs.php?hide=1&rank=5");
aI("text=Master;url=/mobs.php?hide=1&rank=6");
}

with(milonic=new menuname("NpcRace")){
left="offset=0";
style=submenuStyle;
aI("text=Beast;url=/mobs.php?hide=1&race=1");
aI("text=Construct;url=/mobs.php?hide=1&race=2");
aI("text=Demi Humanoid;url=/mobs.php?hide=1&race=3");
aI("text=Dragon;url=/mobs.php?hide=1&race=4");
aI("text=Drakan;url=/mobs.php?hide=1&race=5");
aI("text=Elemental;url=/mobs.php?hide=1&race=6");
aI("text=Krall;url=/mobs.php?hide=1&race=7");
aI("text=Lizardman;url=/mobs.php?hide=1&race=8");
aI("text=Lycan;url=/mobs.php?hide=1&race=9");
aI("text=Magical Monster;url=/mobs.php?hide=1&race=10");
aI("text=Naga;url=/mobs.php?hide=1&race=11");
aI("text=Ratman;url=/mobs.php?hide=1&race=12");
aI("text=Shugo;url=/mobs.php?hide=1&race=13");
aI("text=Shulack;url=/mobs.php?hide=1&race=14");
aI("text=Teleporter;url=/mobs.php?hide=1&race=15");
aI("text=Undead;url=/mobs.php?hide=1&race=16");
}


with(milonic=new menuname("NpcRating")){
left="offset=0";
style=submenuStyle;
aI("text=Junk;url=/mobs.php?hide=1&rate=1");
aI("text=Normal;url=/mobs.php?hide=1&rate=2");
aI("text=Elite;url=/mobs.php?hide=1&rate=3");
aI("text=Hero;url=/mobs.php?hide=1&rate=4");
aI("text=Legendary;url=/mobs.php?hide=1&rate=5");
}

with(milonic=new menuname("Npc")){
left="offset=0";
style=submenuStyle;
aI("text=By Name;url=/mobs.php?type=name");
aI("text=By Rating;showmenu=NpcRating");
aI("text=By Rank;showmenu=NpcRank");
aI("text=By Race;showmenu=NpcRace");
aI("text=By Level;showmenu=NpcLevel");
aI("text=By Zone;showmenu=NpcZone");
aI("text=By Map Area;url=/zone.php");
}

with(milonic=new menuname("Skills")){
left="offset=0";
style=submenuStyle;

aI("text=Common skills;url=/skills.php?type=all");

aI("offcolor=white;offbgcolor=#21182c;onbgcolor=#21182c;text=<b>Base classes</b>;");
aI("text=Mage;url=/skills.php?type=mage&base=1");
aI("text=Priest;url=/skills.php?type=cleric&base=1");
aI("text=Scout;url=/skills.php?type=scout&base=1");
aI("text=Warrior;url=/skills.php?type=warrior&base=1");

aI("offcolor=white;offbgcolor=#21182c;onbgcolor=#21182c;text=<b>Main classes</b>;");
aI("text=Assassin;url=/skills.php?type=assassin");
aI("text=Chanter;url=/skills.php?type=chanter");
aI("text=Cleric;url=/skills.php?type=priest");
aI("text=Gladiator;url=/skills.php?type=fighter");
aI("text=Ranger;url=/skills.php?type=ranger");
aI("text=Sorcerer;url=/skills.php?type=wizard");
aI("text=Spiritmaster;url=/skills.php?type=elementallist");
aI("text=Templar;url=/skills.php?type=knight");
}

with(milonic=new menuname("Recipes")){
left="offset=0";
style=submenuStyle;
aI("text=Alchemy;url=/recipes.php?type=alchemy");
aI("text=Armor Smithing;url=/recipes.php?type=armor");
aI("text=Conversion;url=/recipes.php?type=conversion");
aI("text=Cooking;url=/recipes.php?type=cook");
aI("text=Handcrafting;url=/recipes.php?type=craft");
aI("text=Tailoring;url=/recipes.php?type=tailor");
aI("text=Weapon Smithing;url=/recipes.php?type=weapon");
aI("align=center;showmenu=Gather;text=Gathering ressources;");
}


with(milonic=new menuname("Gather")){
left="offset=0";
style=submenuStyle;
aI("text=Aether;url=/gather.php?type=11");
aI("text=Fishs;url=/gather.php?type=1");
aI("text=Fruits;url=/gather.php?type=2");
aI("text=Gems;url=/gather.php?type=3");
aI("text=Herbs;url=/gather.php?type=4");
aI("text=Noble Metal;url=/gather.php?type=5");
aI("text=Ore;url=/gather.php?type=6");
aI("text=Plants;url=/gather.php?type=7");
aI("text=Shells;url=/gather.php?type=8");
aI("text=Vegetables;url=/gather.php?type=9");
aI("text=Wood;url=/gather.php?type=10");
aI("text=All;url=/gather.php?type=0");
}



// Auction House

with(milonic=new menuname("AH")){
left="offset=0";
style=submenuStyle;
aI("text=By Name;url=/ah.php?type=search");
aI("showmenu=AHWeapons;text=Weapons;");
aI("showmenu=AHArmors;text=Armors;");
aI("showmenu=AHEnhance;text=Enhancement items;");
aI("showmenu=AHCraft;text=Crafting material;");
aI("text=Quest items;url=/ah.php?type=quest");
aI("text=Gatherable items;url=/ah.php?type=gather");
}

with(milonic=new menuname("AHWeapons")){
style=submenuStyle;
aI("text=Bow;url=/ah.php?fam=W&type=bow");
aI("text=Dagger;url=/ah.php?fam=W&type=dagger");
aI("text=Greatsword;url=/ah.php?fam=W&type=greatsword");
aI("text=Mace;url=/ah.php?fam=W&type=mace");
aI("text=Orb;url=/ah.php?fam=W&type=orb");
aI("text=Polearm;url=/ah.php?fam=W&type=polearm");
aI("text=Spellbook;url=/ah.php?fam=W&type=spellbook");
aI("text=Stave;url=/ah.php?fam=W&type=staff");
aI("text=Sword;url=/ah.php?fam=W&type=sword");
}


with(milonic=new menuname("AHCraft")){
style=submenuStyle;
aI("text=Alchemy;url=/ah.php?fam=craft&type=jalchemy");
aI("text=Armor Smithing;url=/ah.php?fam=craft&type=jarmor");
aI("text=Conversion;url=/ah.php?fam=craft&type=jconversion");
aI("text=Cooking;url=/ah.php?fam=craft&type=jcook");
aI("text=Handcrafting;url=/ah.php?fam=craft&type=jcraft");
aI("text=Tailoring;url=/ah.php?fam=craft&type=jtailor");
aI("text=Weapon Smithing;url=/ah.php?fam=craft&type=jweapon");
}


with(milonic=new menuname("AHEnhance")){
style=submenuStyle;
aI("text=Stigma Stone;url=/ah.php?type=stigma");
aI("text=Power Shard;url=/ah.php?type=power");
aI("text=God Stones;url=/ah.php?type=god");
aI("text=Mana Stones;url=/ah.php?type=mana");
}


with(milonic=new menuname("AHArmors")){
style=submenuStyle;
aI("text=Cloth Armor;showmenu=AHCloth;");
aI("text=Leather Armor;showmenu=AHLeather;");
aI("text=Chain Armor;showmenu=AHChain;");
aI("text=Plate Armor;showmenu=AHPlate;");
aI("text=Jewelry;showmenu=AHJewel;");
aI("text=Belts;url=/ah.php?type=belt");
aI("text=Helms;url=/ah.php?type=helm");
aI("text=Shields;url=/ah.php?type=shield");
aI("text=Wings;url=/ah.php?type=wing");
}

with(milonic=new menuname("AHJewel")){
style=submenuStyle;
aI("text=Earrings;url=/ah.php?type=ear");
aI("text=Necklaces;url=/ah.php?type=neck");
aI("text=Rings;url=/ah.php?type=ring");
}

with(milonic=new menuname("AHCloth")){
style=submenuStyle;
aI("text=Jacket;url=/ah.php?type=jacket&fam=cloth");
aI("text=Gloves;url=/ah.php?type=gloves&fam=cloth");
aI("text=Pauldron;url=/ah.php?type=pauldron&fam=cloth");
aI("text=Pants;url=/ah.php?type=pants&fam=cloth");
aI("text=Shoes;url=/ah.php?type=shoes&fam=cloth");
}

with(milonic=new menuname("AHLeather")){
style=submenuStyle;
aI("text=Jacket;url=/ah.php?type=jacket&fam=leather");
aI("text=Gloves;url=/ah.php?type=gloves&fam=leather");
aI("text=Pauldron;url=/ah.php?type=pauldron&fam=leather");
aI("text=Pants;url=/ah.php?type=pants&fam=leather");
aI("text=Shoes;url=/ah.php?type=shoes&fam=leather");
}


with(milonic=new menuname("AHChain")){
style=submenuStyle;
aI("text=Jacket;url=/ah.php?type=jacket&fam=chain");
aI("text=Gloves;url=/ah.php?type=gloves&fam=chain");
aI("text=Pauldron;url=/ah.php?type=pauldron&fam=chain");
aI("text=Pants;url=/ah.php?type=pants&fam=chain");
aI("text=Shoes;url=/ah.php?type=shoes&fam=chain");
}

with(milonic=new menuname("AHPlate")){
style=submenuStyle;
aI("text=Jacket;url=/ah.php?type=jacket&fam=plate");
aI("text=Gloves;url=/ah.php?type=gloves&fam=plate");
aI("text=Pauldron;url=/ah.php?type=pauldron&fam=plate");
aI("text=Pants;url=/ah.php?type=pants&fam=plate");
aI("text=Shoes;url=/ah.php?type=shoes&fam=plate");
}

drawMenus();


