/* --- geometry and timing of the menu --- */
var StoreWidth = screen.width;

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
	return myWidth;
}
StoreWidth=alertSize();

//alert(StoreWidth);
if ((((StoreWidth/2)-375)+20)<20){
StoreWidth=20;
}
else
{
StoreWidth=(((StoreWidth/2)-375)+20);

}



var MENU_POS2 = new Array();
	// item sizes for different levels of menu
	MENU_POS2['height'] = [14, 16, 16];
	MENU_POS2['width'] = [100, 110, 110];
	// 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'] = [102, 20, 0];
	MENU_POS2['block_left'] = [StoreWidth, 0, 110];
	// offsets between items of the same level
	MENU_POS2['top'] = [0, 20, 20];
	MENU_POS2['left'] = [100, 0, 0];
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	MENU_POS2['hide_delay'] = [200, 200, 200];
	
/* --- 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', ['#330066', '#330066', '#330066'], 
	//	'background', ['#B1A3C0', '#B1A3C0', '#B1A3C0'],
	//	'borderColor', ['white', 'white', 'white'],
	//];
	
		MENU_STYLES2['onmouseout'] = [
		'color', ['#EBE8CE', '#EBE8CE', '#EBE8CE'], 
		'background', ['#26213F', '#26213F', '#26213F'],
		'borderColor', ['#26213F', '#26213F', '#26213F'],
	];
	
	// state when item has mouse over it
	MENU_STYLES2['onmouseover'] = [
		'color', ['#EBE8CE', '#EBE8CE', '#EBE8CE'], 
		'background', ['#26213F', '#26213F', '#26213F'],
		'borderColor', ['#EBE8CE', '#EBE8CE', '#EBE8CE'],
		'cursor', ['hand', 'hand', 'hand'],
	];
	MENU_STYLES2['onmousedown'] = [
		'color', ['red', 'red', 'red'], 
		'background', ['black', 'black', 'black'],
		'borderColor', ['white', 'white', 'white'],
	];
	
