

var w;

if (document.layers) {
     w = window.innerWidth;
     w = window.awailWidth;
}
if (document.all) {
     w = document.body.clientWidth;
}

var offsetBlockTop = 0;
var offsetBlockLeft1 = 22;
var offsetBlockLeft2 = 157;
var offsetBlockLeft3 = 287;
var offsetBlockLeft4 = 417;
var offsetBlockLeft5 = 547;

var totaloffset = (4*130)+22;
var pixelstomove = (w-655)/2;

if ((w-totaloffset) <= 0) {pixelstomove = 0;}

offsetBlockLeft1 = offsetBlockLeft1+pixelstomove;
offsetBlockLeft2 = offsetBlockLeft2+pixelstomove;
offsetBlockLeft3 = offsetBlockLeft3+pixelstomove;
offsetBlockLeft4 = offsetBlockLeft4+pixelstomove;
offsetBlockLeft5 = offsetBlockLeft5+pixelstomove;


/* --- geometry and timing of the menu --- */
var MENU_POS1 = new Array();
	// item sizes for different levels of menu
	MENU_POS1['height'] = [10, 10, 10];MENU_POS1['width'] = [135, 135, 130];
	// menu block offset from the origin:
	//	for root level origin is upper left corner of the page
	//	for other levels origin is upper left corner of parent item
	MENU_POS1['block_top'] = [offsetBlockTop, 20, 10];MENU_POS1['block_left'] = [offsetBlockLeft1, 0, 130];
	// offsets between items of the same level
	MENU_POS1['top'] = [0, 21, 21];MENU_POS1['left'] = [131, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	//MENU_POS1['hide_delay'] = [200, 200, 200];
	MENU_POS1['hide_delay'] = [0, 0, 0];
	
/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/
var MENU_STYLES1 = new Array();
	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES1['onmouseout'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#000000', '#333333', '#555555'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when item has mouse over it
	MENU_STYLES1['onmouseover'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#999966', '#999966', '#999966'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when mouse button has been pressed on the item
	MENU_STYLES1['onmousedown'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#999966', '#999966', '#999966'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];	

/* --- geometry and timing of the menu --- */
var MENU_POS2 = new Array();
	// item sizes for different levels of menu
	MENU_POS2['height'] = [10, 10, 10];MENU_POS2['width'] = [130, 130, 130];
	// menu block offset from the origin:
	//	for root level origin is upper left corner of the page
	//	for other levels origin is upper left corner of parent item
	MENU_POS2['block_top'] = [offsetBlockTop, 20, 5];MENU_POS2['block_left'] = [offsetBlockLeft2, 0, 128];
	// offsets between items of the same level
	MENU_POS2['top'] = [0, 21, 21];MENU_POS2['left'] = [131, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	//MENU_POS2['hide_delay'] = [200, 200, 200];
	MENU_POS2['hide_delay'] = [0, 0, 0];
	
/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/
var MENU_STYLES2 = new Array();
	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES2['onmouseout'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#000000', '#333333', '#555555'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when item has mouse over it
	MENU_STYLES2['onmouseover'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#FFCC66', '#FFCC66', '#FFCC66'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when mouse button has been pressed on the item
	MENU_STYLES2['onmousedown'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#FFCC66', '#FFCC66', '#FFCC66'],'fontWeight', ['normal', 'bold', 'normal'],'textDecoration', ['none', 'none', 'none'],];

/* --- geometry and timing of the menu --- */
var MENU_POS3 = new Array();
	// item sizes for different levels of menu
	MENU_POS3['height'] = [10, 10, 10];MENU_POS3['width'] = [130, 130, 130];
	// menu block offset from the origin:
	//	for root level origin is upper left corner of the page
	//	for other levels origin is upper left corner of parent item
	MENU_POS3['block_top'] = [offsetBlockTop, 20, 10];MENU_POS3['block_left'] = [offsetBlockLeft3, 0, 130];
	// offsets between items of the same level
	MENU_POS3['top'] = [0, 21, 21];MENU_POS3['left'] = [200, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	//MENU_POS3['hide_delay'] = [200, 200, 200];
	MENU_POS3['hide_delay'] = [0, 0, 0];
	
/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/
var MENU_STYLES3 = new Array();
	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES3['onmouseout'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#000000', '#333333', '#555555'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when item has mouse over it
	MENU_STYLES3['onmouseover'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#666699', '#666699', '#666699'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when mouse button has been pressed on the item
	MENU_STYLES3['onmousedown'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#666699', '#666699', '#666699'],'fontWeight', ['normal', 'bold', 'normal'],'textDecoration', ['none', 'none', 'none'],];

/* --- geometry and timing of the menu --- */
var MENU_POS4 = new Array();
	// item sizes for different levels of menu
	MENU_POS4['height'] = [10, 10, 10];MENU_POS4['width'] = [130, 130, 130];
	// menu block offset from the origin:
	//	for root level origin is upper left corner of the page
	//	for other levels origin is upper left corner of parent item
	MENU_POS4['block_top'] = [offsetBlockTop, 20, 10];MENU_POS4['block_left'] = [offsetBlockLeft4, 0, 130];
	// offsets between items of the same level
	MENU_POS4['top'] = [0, 21, 21];MENU_POS4['left'] = [200, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	//MENU_POS4['hide_delay'] = [200, 200, 200];
	MENU_POS4['hide_delay'] = [0, 0, 0];
	
/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/
var MENU_STYLES4 = new Array();
	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES4['onmouseout'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#000000', '#333333', '#555555'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when item has mouse over it
	MENU_STYLES4['onmouseover'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#CC0000', '#CC0000', '#CC0000'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when mouse button has been pressed on the item
	MENU_STYLES4['onmousedown'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#CC0000', '#CC0000', '#CC0000'],'fontWeight', ['normal', 'bold', 'normal'],'textDecoration', ['none', 'none', 'none'],];

/* --- geometry and timing of the menu --- */
var MENU_POS5 = new Array();
	// item sizes for different levels of menu
	MENU_POS5['height'] = [10, 10, 10];MENU_POS5['width'] = [130, 130, 130];
	// menu block offset from the origin:
	//	for root level origin is upper left corner of the page
	//	for other levels origin is upper left corner of parent item
	MENU_POS5['block_top'] = [offsetBlockTop, 20, 10];MENU_POS5['block_left'] = [offsetBlockLeft5, 0, 130];
	// offsets between items of the same level
	MENU_POS5['top'] = [0, 21, 21];MENU_POS5['left'] = [200, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	//MENU_POS5['hide_delay'] = [200, 200, 200];
	MENU_POS5['hide_delay'] = [0, 0, 0];
	
/* --- dynamic menu styles ---
note: you can add as many style properties as you wish but be not all browsers
are able to render them correctly. The only relatively safe properties are
'color' and 'background'.
*/
var MENU_STYLES5 = new Array();
	// default item state when it is visible but doesn't have mouse over
	MENU_STYLES5['onmouseout'] = ['color', ['#ffffff', '#ffffff', '#ffffff'],'background', ['#000000', '#333333', '#555555'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when item has mouse over it
	MENU_STYLES5['onmouseover'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#339933', '#339933', '#339933'],'fontWeight', ['bold', 'bold', 'bold'],'textDecoration', ['none', 'none', 'none'],];
	// state when mouse button has been pressed on the item
	MENU_STYLES5['onmousedown'] = ['color', ['#ffffff', '#000000', '#000000'],'background', ['#339933', '#339933', '#339933'],'fontWeight', ['normal', 'bold', 'normal'],'textDecoration', ['none', 'none', 'none'],];



