// calculates the position of the menu for different browsers
var a = 0;
if (parseInt(navigator.appVersion)>3)
	{
	if (navigator.appName=="Netscape")
		{
		a = window.innerWidth;}
	if (navigator.appName.indexOf("Microsoft")!=-1)
		{
		a = document.body.offsetWidth;}}

if (!a)
	{
	a = window.innerWidth;
	a = a + 15;}

var calculate;
if (a >= 797)
	{
	calculate = (a - 797) / 2;
	calculate = Math.floor(calculate);}
	else
	{
	calculate = 0;}

var distance;
	distance = calculate;

/* --- geometry and timing of the menu --- */
var MENU_POS2 = {
	// item sizes for different levels of menu
	'width': [188, 150, 150],
	'height': [20, 20, 20],
	// 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
	'block_top': [200, 0, 00],
	'block_left': [distance, 190, 149],
	// offsets between items of the same level
	'top': [21, 21, 21],
	'left': [0, 0, 0],
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	'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 = {
	// default item state when it is visible but doesn't have mouse over
	'onmouseout': [
		'color', ['#666666', '#666666', '#666666'], 
		'fontWeight', ['bold', 'normal', 'normal'],
		'background', ['#F4F4F4', '#ffffff', '#ffffff'],
		'filter', ['alpha(opacity=100)', 'alpha(opacity=90)', 'alpha(opacity=90)']
	],
	// state when item has mouse over it
	'onmouseover': [
		'color', ['#000000', '#000000', '#000000'], 
		'fontWeight', ['bold', 'bold', 'bold'],
		'background', ['#FEAA2B', '#FEAA2B', '#FEAA2B'],
		'filter', ['alpha(opacity=100)', 'alpha(opacity=95)', 'alpha(opacity=95)']
	],
	'onmousedown': [
		'color', ['#FFFFFF', '#FFFFFF', '#FFFFFF'], 
		'fontWeight', ['bold', 'bold', 'bold'],
		'background', ['#FEAA2B', '#FEAA2B', '#FEAA2B'],
		'filter', ['alpha(opacity=100)', 'alpha(opacity=100)', 'alpha(opacity=100)']		
	]
};
	

