_menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150            // The time delay before menus open on mouse over
_subOffsetTop=0       // Sub menu top offset
_subOffsetLeft=-10      // Sub menu left offset

function openNewWindow(winURL,winWidth,winHeight,winConfig){

     var xMax = screen.width, yMax = screen.height;
     var xOffset = (xMax - winWidth)/2, yOffset = (yMax - winHeight)/2;
     mmConfig=""
     mmConfig="width="+winWidth+"," 
     mmConfig+="height="+winHeight+","
     mmConfig+="left="+xOffset+","
     mmConfig+="top="+yOffset+","

     mmConfig+=winConfig
     var mmWin=open(winURL,"يمن مول",mmConfig);
     mmWin.focus();
}

function openIFrame(iFrameId,winURL)
{
	ifId=gmobj(iFrameId)
	ifId.src=winURL
}


with(menuStyle2=new mm_style()){
align="right";

oncolor="#ffffff"//"#E6E7E8";

offcolor="#003399";//"#000000";
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
separatorcolor="#FFFFFF";
separatorsize="1";
padding=0;
fontsize=9;
fontstyle="normal";
fontweight="bold";
fontfamily="Tahoma";
pagecolor="#000000";
pagebgcolor="#009900";
headercolor="#3C3B62";//"#009900";
headerbgcolor="#D9E2DB";
subimage=mpath+"menus/arrow2.gif";
subimagepadding="0";
itemheight=25;
subimageposition="rigth";
alignment="rigth";
righttoleft=0;

}
with(stylesub2=new mm_style()){
align="right";
//onbgcolor="#009900";
oncolor="#ffffff"//"#E6E7E8";
//offbgcolor="#73CA55";
offcolor="#003399";//"#000000";
bordercolor="#ffffff";
borderwidth=0;
separatorcolor="#003399";//"#ffffff";
separatorsize="3";
padding=0;
fontsize=9;
fontstyle="normal";
fontweight="bold";
fontfamily="tahoma";
pagecolor="#000000";
pagebgcolor="#009900";//"#ffffff";
headercolor="#009900";
headerbgcolor="#000000";//"#ffffff";
subimage=mpath+"menus/arrow2.gif;"
subimagepadding="0";
overfilter="Alpha(opacity=95)"
itemheight=20;
subimageposition="rigth";
alignment="rigth";
righttoleft=1;


}

nbsp1="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
nbsp2="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
right_txt="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
myback_on=mpath+"menus/backmenu01on.gif";
myback_off=mpath+"menus/backmenu01off.gif";
overlinkM="bgimage="+myback_on+";overbgimage="+myback_off+";" ;
overlinkS="bgimage="+myback_on+";overbgimage="+myback_off+";" ;

with(milonic=new menuname("Main Menu2")){
openstyle="ltr";
//align="right";
style=menuStyle2;
//top=TopMenu;
if (screen.Height==600){
top=((screen.Height)/6)-11 
}
else{
top=((screen.Height)/8)-7  ;}
top=90;
itemwidth=124;
orientation="horizontal";
 left=  ((screen.width)/2)-383;
alwaysvisible=1;
screenposition="rigth";
//orientation="horizontal";
aI("text="+right_txt+"يمن مول"+nbsp1+";url="+mpath+"about.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+right_txt+"السوق التجاري"+nbsp1+";showmenu=complaint;"+ overlinkM +";separatorsize=0;")
aI("text="+right_txt+"خدماتنا"+nbsp1+";url="+mpath+"services.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+right_txt+"أخبار وأنشطة"+nbsp1+";url="+mpath+"activity.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+right_txt+"أعلانات"+nbsp1+";url="+mpath+"declaration.htm;"+ overlinkM +";separatorsize=0")
aI("text="+right_txt+"شكاوي ومقترحات"+nbsp1+";url="+mpath+"questionnaire.asp;"+ overlinkM +";separatorsize=0;")
}

with(milonic=new menuname("complaint")){
itemwidth=172;
style=stylesub2;
//left="offset=-72";  
left=  ((screen.width)/2)+50;
itemheight=20;
orientation="vertically";
aI("text="+nbsp1+"الطابق الأرضي" +nbsp1+";url="+mpath+"basement.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+nbsp1+"الطابق الأول"+nbsp1+";url="+mpath+"first.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+nbsp1+"الطابق الثاني"+nbsp1+";url="+mpath+"second.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+nbsp1+"ماجك بارك"+nbsp1+";url="+mpath+"magecbark.htm;"+ overlinkM +";separatorsize=0;")
aI("text="+nbsp1+"المطاعم"+nbsp1+";url="+mpath+"restaurant.htm;"+ overlinkM +";separatorsize=0;")

}





drawMenus();


