_menuCloseDelay=50           // The time delay for menus to remain visible on mouse out
_menuOpenDelay=50            // The time delay before menus open on mouse over
_subOffsetTop=2               // Sub menu top offset
_subOffsetLeft=-10            // Sub menu left offset

var checkedItemBkgColor_Page_Top="#F8CE6A";
var checkedItemBorder_Page_Top="0px solid #000000";
var checkedItemImage_Page_Sub=menuthemesBase+"/menucheck.gif";

function menu_check(menuName, pageclass_itemid) {
menu_changeItemProperty(menuName,pageclass_itemid,29,menuthemesBase+'/menucheck.gif',true);
}

function menu_uncheck(menuName, pageclass_itemid) {
menu_changeItemProperty(menuName,pageclass_itemid,29,menuthemesBase+'/xpblank.gif',true);
}

function menuheading_check(menuName, pageclass_itemid) {
menu_changeItemProperty(menuName,pageclass_itemid,7,checkedItemBkgColor_Page_Top,true);
menu_changeItemProperty(menuName,pageclass_itemid,9,checkedItemBorder_Page_Top,true);
}

function menuheading_uncheck(menuName, pageclass_itemid) {
menu_changeItemProperty(menuName,pageclass_itemid,7,"transparent",true);
menu_changeItemProperty(menuName,pageclass_itemid,9,"0 solid transparent",true);
}

// menu styles cannot be built using js operations (at least not when I tried...)
// but typically menuitems can

// ********************* style for the typical menubar in listing pages *********************/
with(TopListingMenu=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=0;
separatorcolor="#C1D2EE";
separatorsize="0";
padding=2;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial,Tahoma,Helvetica,Verdana";
subimagepadding="1";
onborder="1px solid #000000";
menubgimage=menuthemesBase+"/bk_page_top.jpg";
}

//style for the submennus of the main menu
with(TopListingMenu_Sub=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
separatorcolor="#C1D2EE";
separatorpadding="2";
separatoralign="right";
separatorwidth="85%";
padding=3;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Tahoma,Helvetica,Verdana";
image=menuthemesBase+"/xpblank.gif";
onborder="1px solid #000000";
overfilter="Shadow(color='#777777', Direction=135, Strength=5)";
menubgimage=menuthemesBase+"/bk_page_sub.gif";
subimage=menuthemesBase+"/arrow.gif";
menuZIndex=20000; // this ensures that the menu is displayed over the cooldev tree
}

// ********************* style for the bottom menubar *********************/
//heading
with(BottomMenu=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=0;
separatorcolor="#C1D2EE";
separatorsize="0";
padding=2;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial,Tahoma,Helvetica,Verdana";
subimagepadding="1";
onborder="1px solid #000000";
menubgimage=menuthemesBase+"/bk_page_top.jpg";
//imageheight=24;
}

//style for the submennus of the bottom menubar
with(BottomMenu_Sub=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
separatorcolor="#C1D2EE";
separatorpadding="2";
separatoralign="right";
separatorwidth="85%";
padding=3;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Tahoma,Helvetica,Verdana";
image=menuthemesBase+"/xpblank.gif";
subimage=menuthemesBase+"/arrow.gif";
onborder="1px solid #000000";
overfilter="Shadow(color='#777777', Direction=135, Strength=5)";
menubgimage=menuthemesBase+"/bk_page_sub.gif";
}

// ********************* style for the status  *******menubar**************/
with(StatusMenu=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=0;
separatorcolor="#C1D2EE";
separatorsize="0";
padding=2;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial,Tahoma,Helvetica,Verdana";
subimagepadding="1";
onborder="1px solid #000000";
menubgimage=menuthemesBase+"/bk_page_top.jpg";
//imageheight=24;
}
with(StatusMenu_Sub=new mm_style()){
onbgcolor="#FFEFC6";
oncolor="#000000";
offbgcolor="transparent";
offcolor="#000000";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
separatorcolor="#C1D2EE";
separatorpadding="2";
separatoralign="right";
separatorwidth="85%";
padding=3;
imagepadding=3;
fontsize="12";
fontstyle="normal";
fontweight="normal";
fontfamily="Tahoma,Helvetica,Verdana";
image=menuthemesBase+"/xpblank.gif";
subimage=menuthemesBase+"/arrow.gif";
onborder="1px solid #000000";
overfilter="Shadow(color='#777777', Direction=135, Strength=5)";
menubgimage=menuthemesBase+"/bk_page_sub.gif";
}


