var x_displacement = 0;
var offset = 10;

function x_position(mouse_x_position) {
	var MAX_X_POSITION = 800;
	for (i=0; i <= CELLS_WIDTH.length-1; i++) {
		var next_cell_x_position = 0;
		if (i == CELLS_WIDTH.length-1) {
			next_cell_x_position = MAX_X_POSITION;
		}
		else {
			next_cell_x_position = x_displacement + CELLS_WIDTH[i+1];
		}
		
		var curr_cell_x_position = CELLS_WIDTH[i] + x_displacement;
		
		if (mouse_x_position < next_cell_x_position) {
			return curr_cell_x_position + offset;
		}
	}
}

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Tahoma";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "black";
HM_PG_FontColorOver = "white";
HM_PG_BGColor = "#C9B88A";
HM_PG_BGColorOver = "#FF6000";
HM_PG_ItemPadding = 2;

HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#F7E7C6";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 1;
HM_PG_SeparatorColor = "#F7E7C6";

HM_PG_ImageSrc 			= "/inc_js/HM4/HM_More_black_right.gif";
HM_PG_ImageSrcLeft 		= "/inc_js/HM4/HM_More_black_left.gif";

HM_PG_ImageSrcOver 		= "/inc_js/HM4/HM_More_light_right.gif";
HM_PG_ImageSrcLeftOver 	= "/inc_js/HM4/HM_More_white_left.gif";

HM_PG_ImageSize = 5;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 3;

HM_PG_KeepHilite = true;
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 15;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild = 0;
HM_PG_StatusDisplayLink = 1;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = false;

HM_PG_CreateTopOnly = 1;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;
