

HM_DOM = (document.getElementById) ? true : false;
HM_NS4 = (document.layers) ? true : false;
HM_IE = (document.all) ? true : false;
HM_IE4 = HM_IE && !HM_DOM;
HM_Mac = (navigator.appVersion.indexOf("Mac") != -1);
HM_IE4M = HM_IE4 && HM_Mac;
HM_Opera = (navigator.userAgent.indexOf("Opera")!=-1);
HM_Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

HM_IsMenu = !HM_Opera && !HM_Konqueror && !HM_IE4M && (HM_DOM || HM_NS4 || HM_IE4);

HM_BrowserString = HM_NS4 ? "NS4" : HM_DOM ? "DOM" : "IE4";
HM_LeftPos = 230;
if (screen.width == 1024){HM_LeftPos = 225;}
if (screen.width == 800){HM_LeftPos = 115;}
HM_VIE = (navigator.userAgent.indexOf("MSIE")!=-1)? true: false;
HM_MENUHEIGHT = 115;
if(!HM_VIE) HM_MENUHEIGHT = 115;

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


HM_GL_MenuWidth          = 150;
HM_GL_FontFamily         = "verdana";
HM_GL_FontSize           = 8;
HM_GL_FontBold           = true;
HM_GL_FontItalic         = false;
HM_GL_FontColor          = "7290AC";
HM_GL_FontColorOver      = "990033";
HM_GL_BGColor            = "transparent";
HM_GL_BGColorOver        = "transparent";
HM_GL_ItemPadding        = 2;

HM_GL_BorderWidth        = 1;
HM_GL_BorderColor        = "red";
HM_GL_BorderStyle        = "solid";
HM_GL_SeparatorSize      = 1;
HM_GL_SeparatorColor     = "yellow";

HM_GL_ImageSrc = "includes/scripts/HM_More_dblue_right.gif";
HM_GL_ImageSrcLeft = "../includes/scripts/HM_More_blue_left.gif";

HM_GL_ImageSrcOver = "../includes/scripts/HM_More_dblue_right.gif";
HM_GL_ImageSrcLeftOver = "../includes/scripts/HM_More_white_left.gif";

HM_GL_ImageSize          = 5;
HM_GL_ImageHorizSpace    = 5;
HM_GL_ImageVertSpace     = 2;

HM_GL_KeepHilite         = false;
HM_GL_ClickStart         = false;
HM_GL_ClickKill          = 0;
HM_GL_ChildOverlap       = 0;
HM_GL_ChildOffset        = 1;
HM_GL_ChildPerCentOver   = null;
HM_GL_TopSecondsVisible  = .5;
HM_GL_ChildSecondsVisible = .3;
HM_GL_StatusDisplayBuild = 0;
HM_GL_StatusDisplayLink  = 1;
HM_GL_UponDisplay        = null;
HM_GL_UponHide           = null;

HM_GL_RightToLeft      = false;
HM_GL_CreateTopOnly      = HM_NS4 ? true : false;
HM_GL_ShowLinkCursor     = true;
//begin get mouse position location

function checkmousepos() {
var IE = document.all? true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;

}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}  
}
}

if(HM_IsMenu) {
	
//this array creates the 'about our center' submenu
//commented out about sub-categories per client request
HM_Array1 = [
[200,      // menu width
HM_LeftPos,       // left_position
HM_MENUHEIGHT,       // top_position
,   // font_color
"#ffffff",   // mouseover_font_color
"#F0EEEE",   // background_color
"#998ED1",   // mouseover_background_color
"#acacac",   // border_color
"#7290AC",    // separator_color
0,         // top_is_permanent
0,         // top_is_horizontal
0,         // tree_is_horizontal
1,         // position_under
1,         // top_more_images_visible
1,         // tree_more_images_visible
"null",    // evaluate_upon_tree_show
"null",    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
["Program Control Templates", "", 1, 0, 1],
["Program Control Software", "", 1, 0, 1]
]



HM_Array1_1 = [
[,      // menu width
,       // left_position
,       // top_position
,   // font_color
,   // mouseover_font_color
,   // background_color
,   // mouseover_background_color
,   // border_color
,    // separator_color
0,         // top_is_permanent
0,         // top_is_horizontal
0,         // tree_is_horizontal
1,         // position_under
1,         // top_more_images_visible
1,         // tree_more_images_visible
"null",    // evaluate_upon_tree_show
"null",    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click

["Renovation", "products/renovation.asp", 1, 0, 0],
["Construction", "products/Construction.asp", 1, 0, 0],
["Web", "products/Web.asp", 1, 0, 0],
["Software", "products/Software.asp", 1, 0, 0],
["Amortization", "products/Amort.asp", 1, 0, 0],
["PMO Documents", "http://www.e-projectmanagers.com/", 1, 0, 0],
["Integration", "products/Integration.asp", 1, 0, 0],
["Financial Statement", "products/Financial.asp", 1, 0, 0]
]
	

HM_Array1_2 = [
[,      // menu width
,       // left_position
,       // top_position
,   // font_color
,   // mouseover_font_color
,   // background_color
,   // mouseover_background_color
,   // border_color
,    // separator_color
0,         // top_is_permanent
0,         // top_is_horizontal
0,         // tree_is_horizontal
1,         // position_under
1,         // top_more_images_visible
1,         // tree_more_images_visible
"null",    // evaluate_upon_tree_show
"null",    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click


['Contract Management Database', "products/Contract.asp", 1, 0, 0],
['Inventory Management Database', "products/Inv.asp", 1, 0, 0],
['Purchase Order Tracking Database', "products/ExpCtl.asp", 1, 0, 0],
]

HM_Array2 = [
[150,      // menu width
750,       // left_position
115,       // top_position
,   // font_color
"#ffffff",   // mouseover_font_color
"#F0EEEE",   // background_color
"#998ED1",   // mouseover_background_color
"#acacac",   // border_color
"#7290AC",    // separator_color
0,         // top_is_permanent
0,         // top_is_horizontal
0,         // tree_is_horizontal
1,         // position_under
1,         // top_more_images_visible
1,         // tree_more_images_visible
"null",    // evaluate_upon_tree_show
"null",    // evaluate_upon_tree_hide
,          // right_to_left
],     // display_on_click
//["<a href='mailto:memonaq@cov.com'>EXPENSE CONTROL <a>", 1, 0, 0],
["EXPENSE CONTROL", "http://www.Expensecontrolllc.com", 1, 0, 0], 
["PMFORUM", "http://www.pmforum.org/", 1, 0, 0],
["True Solution", "http://www.true-solution.com", 1, 0, 0],
["ProjectSmart", "http://www.projectsmart.co.uk/", 1, 0, 0],
["Synergest", "http://www.synergest.com/", 1, 0, 0],
["Project Magazine", "http://www.projectmagazine.com/", 1, 0, 0],
["Pay Pal", "https://www.paypal.com/affil/pal=mail@programcontrol.com", 1, 0, 0],
["Amazon", "http://www.amazon.com/exec/obidos/tg/browse/-/3/002-5675384-7083248", 1, 0, 0],
]

//arrays HM_Array2_2 thru HM_Array2_19 generate sub-menus for main menu

//end generation of all menus
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='includes/scripts/HM_Script"+ HM_BrowserString +".js' TYPE='text/javascript'><\/SCR" + "IPT>");

}
