var tempalignLeft = 0; var intScreenWidth = document.body.clientWidth; var intTableWidth = 780; var intpercentTable = (intTableWidth/intScreenWidth)*100 function checkSize(){ var PageWidthPrecent; PageWidthPrecent = parseInt((intScreenWidth/100)*intpercentTable) tempChar = intScreenWidth-PageWidthPrecent; tempChar = tempChar/2; return parseInt(tempChar) } tempalignLeft = checkSize(); HM_Array1 = [ [150, // Menu Width "tempalignLeft+50", // Position From Left "166", // Position From Top "#000000","000000", // font_color | mouseover_font_color "#e7e7e7","#c6c6c6", // background_color | mouseover_background_color "black","#000000", // border_color | separator_color 0,0,0,1,1,1, // top_is_permanent | top_is_horizontal | tree_is_horizontal | position_under | top_more_images_visible | tree_more_images_visible "null","null", // evaluate_upon_tree_show | evaluate_upon_tree_hide false, // right-to-left ], // display_on_click // display_on_click // display_on_click ["Background","pages/about_content.asp?intGlobalId=1",1,0,0], //["Organization","pages/about_content.asp?intGlobalId=3",1,0,0], ["Our History","pages/about_content.asp?intGlobalId=4",1,0,0], ["Magazine","pages/about_content.asp?intGlobalId=5",1,0,0], ["Board of Directors","pages/board.asp",1,0,0], ,] HM_Array2 = [ [210, // Menu Width "tempalignLeft+129", // Position From Left "166", // Position From Top "#000000","000000", // font_color | mouseover_font_color "#e7e7e7","#c6c6c6", // background_color | mouseover_background_color "black","#000000", // border_color | separator_color 0,0,0,1,1,1, // top_is_permanent | top_is_horizontal | tree_is_horizontal | position_under | top_more_images_visible | tree_more_images_visible "null","null", // evaluate_upon_tree_show | evaluate_upon_tree_hide false, // right-to-left ], // display_on_click // display_on_click // display_on_click ["Hashmira Company","pages/companies.asp?intGlobalId=7",1,0,0], ["Hashmira Security Technologies","pages/companies.asp?intGlobalId=1",1,0,0], ["Other Companies","pages/companies.asp?intGlobalId=3",1,0,0], ,] HM_Array3 = [ [180, // Menu Width "tempalignLeft+264", // Position From Left "166", // Position From Top "#000000","000000", // font_color | mouseover_font_color "#e7e7e7","#c6c6c6", // background_color | mouseover_background_color "black","#000000", // border_color | separator_color 0,0,0,1,1,1, // top_is_permanent | top_is_horizontal | tree_is_horizontal | position_under | top_more_images_visible | tree_more_images_visible "null","null", // evaluate_upon_tree_show | evaluate_upon_tree_hide false, // right-to-left ], // display_on_click // display_on_click // display_on_click ["Overview","pages/services.asp",1,0,0], ["Security","pages/services_content.asp?intGlobalId=1",1,0,0], ["Electronic Security","pages/services_content.asp?intGlobalId=2",1,0,0], ,] HM_Array4 = [ [160, // Menu Width "tempalignLeft+407", // Position From Left "166", // Position From Top "#000000","000000", // font_color | mouseover_font_color "#e7e7e7","#c6c6c6", // background_color | mouseover_background_color "black","#000000", // border_color | separator_color 0,0,0,1,1,1, // top_is_permanent | top_is_horizontal | tree_is_horizontal | position_under | top_more_images_visible | tree_more_images_visible "null","null", // evaluate_upon_tree_show | evaluate_upon_tree_hide false, // right-to-left ], // display_on_click // display_on_click // display_on_click ["Security","pages/branches.asp?intGlobalId=1",1,0,0], ["Electronic Security","pages/branches.asp?intGlobalId=2",1,0,0], //["Cleaning & Maintenance","pages/branches.asp?intGlobalId=3",1,0,0], ["Medical Services","pages/branches.asp?intGlobalId=4",1,0,0], ,] HM_Array5 = [ [130, // Menu Width "tempalignLeft+422", // Position From Left "166", // Position From Top "#000000","000000", // font_color | mouseover_font_color "#e7e7e7","#c6c6c6", // background_color | mouseover_background_color "black","#000000", // border_color | separator_color 0,0,0,1,1,1, // top_is_permanent | top_is_horizontal | tree_is_horizontal | position_under | top_more_images_visible | tree_more_images_visible "null","null", // evaluate_upon_tree_show | evaluate_upon_tree_hide false, // right-to-left ], // display_on_click // display_on_click // display_on_click ["Press Releases","pages/news.asp?intGlobalId=1",1,0,0], ["In The News","pages/news.asp?intGlobalId=2",1,0,0], ,]