﻿fixMozillaZIndex = true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay = 500;
_menuOpenDelay = 150;
_subOffsetTop = 0;
_subOffsetLeft = -20;

with(background=new mm_style()){
zindex = 1000;
//  align = "right";
//  borderstyle="solid";
//  fontfamily="Tahoma";
//  fontsize="110%";
//  fontstyle="normal";
//  fontweight="normal";
//  imagepadding=4;
//  itemheight=28;
//  itemwidth=200;
//  offcolor = "#ffffff";
//  oncolor = "#ffffff";
////  bgimage="/ES_MelonicMenu/TopMenuSubTrans.gif";
////  overbgimage="/ES_MelonicMenu/TopMenuSubTrans.gif";
//  image="/ES_MelonicMenu/transparent.gif";
  subimage="/ES_MelonicMenu/TopMenuSubArrowFa.gif";
//  subimagepadding=8;
  subimageposition="right";
//  outfilter="randomdissolve(duration=0.3)";
//  overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#899F3F', Direction=135, Strength=3)";
//  bordercolor="#999999";
//  borderstyle="solid";
//  borderwidth=1;

  align = "right";
  bordercolor="#415212";
  borderstyle="solid";
  borderwidth=1;
  fontfamily="Tahoma";
  fontsize="110%";
  fontstyle="normal";
  fontweight="normal";
  itemheight=20;
  itemwidth=200;
  headerbgcolor="#ffffff";
  headercolor="#000000";
  offbgcolor="#718A23";
  offcolor="#ffffff";
  onbgcolor="#8BA04B";
  oncolor="#ffffff";
  //outfilter="randomdissolve(duration=0.3)";
  overfilter="Fade(duration=0.2);Alpha(opacity=85);";
  // Shadow(color=#728434', Direction=45, Strength=2)
  padding=4;
  //pagebgcolor="#82B6D7";
  //pagecolor="black";
  separatorcolor="#999999";
  separatorsize=0;
  //subimage="http://img.milonic.com/arrow.gif";
  subimagepadding=2;
}

with (mainmenuStyle = new mm_style()) {
zindex = 1000;
    align = "center";
    fontfamily = "Arial, Verdana, Tahoma";
    fontsize = "110%";
    fontstyle = "normal";
    fontweight = "bold";
    headerbgcolor = "#ffffff";
    headercolor = "#000000";
    imagepadding = 3;
    itemwidth = "170";
//    offbgcolor="#404040";
    offcolor = "#2F4C04";
//    onbgcolor="#545454";
    oncolor = "#2F4C04";
    //onsubimage="/ES_MelonicMenu/black_9x7right.gif";
    padding = 6;
    //pagebgcolor="#82B6D7";
    //pagecolor="Yellow";
    subimage="/ES_MelonicMenu/TopMenuSubArrowFa.gif";
    subimagepadding = 6;
    subimageposition="right";
}

with (milonic = new menuname("Professional")) {
zindex = 1000;
    openstyle = "rtl";
    style = background;
    menuwidth = "200";
    aI("text=اخبار;url=/Fa/?Page=NewsList;");
    aI("text=بذر و پیاز گل;url=/Fa/?Page=BulbsSeeds;");
    aI("text=نشاهای فصلی;url=/Fa/?Page=BeddingPlants;");
    aI("text=تجهیزات کشاورزی;showmenu=Equipments;url=;");
    aI("text=محصولات کشاورزی;showmenu=Productions;url=;");
    aI("text=فايلها;url=/Fa/?Page=Downloads;");
}

with (milonic = new menuname("Equipments")) {
zindex = 1000;
    openstyle = "rtl";
    style = background;
    menuwidth = "170";
    aI("text=گلخانه و تجهیزات گلخانه ای;url=/Fa/?Page=GreenHouse;");
    aI("text=خاك;url=/Fa/?Page=Soil;");
    aI("text=گلدان و سینی کشت;url=/Fa/?Page=PotsTrays;");
    aI("text=پرده سايبان;url=/Fa/?Page=Shades;");
    aI("text=پرده مالچ;url=/Fa/?Page=Mulch;");
}

with (milonic = new menuname("Productions")) {
zindex = 1000;
    openstyle = "rtl";
    style = background;
    menuwidth = "170";
    aI("text=گلهاي شاخه اي;url=/Fa/?Page=Shakhei;");
    aI("text=گلهاي پيازي;url=/Fa/?Page=Piyazi;");
    aI("text=گياهان آپارتماني تزييني;url=/Fa/?Page=Tazini;");
}

with (milonic = new menuname("Shop")) {
zindex = 1000;
    openstyle = "rtl";
    style = background;
    menuwidth = "170";
//    aI("text=فروشگاه مجازي;url=/Fa/FShop/;");
    aI("text=گل آرايي مجازي;url=/Fa/FDesign/;");
    aI("text=نحوه نگهداري گياهان زينتي;url=/Fa/?Page=HowTo;");
    aI("text=گردش مجازي;url=/Fa/?Page=Tour;");
}

drawMenus();


