/*
  --- menu level scope settins structure --- 
  note that this structure has changed its format since previous version.
  Now this structure has the same layout as Tigra Menu GOLD.
  Format description can be found in product documentation.
*/
	var isNav;
	var isIE;

var MacroX;
var MacroY;

	if(parseInt(navigator.appVersion) >=4)
	{

		if(navigator.appName.indexOf("Microsoft") == -1)
		{
			isNav = true;
		}
		else
		{
			isIE = true;
			coll = "all.";
			styleObj = ".style";
		}
	}

	function getObjHeight(obj)
	{
		if (isNav)
		{
			return obj.clip.height;
		}
		else
		{
			return obj.clientHeight;
		}
	}

	function getObjWidth(obj)
	{
		if(isNav)
		{
			return obj.clip.width;
		}
		else
		{
			return obj.clientWidth;
		}
	}

	function getInsideWindowWidth()
	{
		if(isNav)
		{
			return window.innerWidth;
		}
		else
		{
			return document.body.clientWidth;
		}
	}

	function getInsideWindowHeight()
	{
		if(isNav)
		{
			return window.innerHeight;
		}
		else
		{
			return document.body.clientHeight;
		}
	}

	function shiftTo(obj, x, y)
	{
		if(isNav)
		{
			obj.moveTo(x,y);
		}
		else
		{
			obj.pixelLeft = x;
			obj.pixelTop = 400;
		}
	}

	
	function centerIt()
	{
		//var obj = eval("document."+coll+"banner"+styleObj);

		//var contentObj = eval("document."+coll+"banner");

		//var x = Math.round((getInsideWindowWidth()/2)-(getObjWidth(contentObj)/2));
		//var y = Math.round((getInsideWindowHeight()/2)-(getObjHeight(contentObj)/2));

		//shiftTo(obj, x, y);
		//obj.visibility = "visible";

		MacroX = Math.round((getInsideWindowWidth()/2));
		MacroY = Math.round((getInsideWindowHeight()/2));

	}
	
	
	function handleResize()
	{

		if(isNav)
		{
			location.reload();
		}
		else
		{
			centerIt();
		}
	}
	
	
	if(Math.round(getInsideWindowWidth()<800))
	{
		MacroX = 220;	
	}
	else
	{
		MacroX = Math.round((getInsideWindowWidth()-800)/2+220);
	
	}
	
	MacroY = 320;


//////////////////////////////////////////////////////////////////////


///A_MENUS[this.n_id] = this     this.onclick     = menu_onclick;

function menu_onclick1 (n_id) {
	// don't go anywhere if item has no link defined
	
	if (this.a_index) {
	alert(this.a_index);
	return Boolean(this.a_index[n_id].a_config[1]);
	}
	else
	{
    return -1;
	}
}

this.n_id = A_MENUS.length;

this.onclick     = menu_onclick1;
//alert(this.a_children);
//////////////////////////////////////////////////////////////////////

var MENU_POS = [
{
	// item sizes
	'height': 15,
	'width': 140,
	// 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': MacroY,
	'block_left': MacroX,
	// offsets between items of the same level
	'top': 0,
	'left': 140,
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	'hide_delay': 300,
	'expd_delay': 200, 
	'css' : {
		'outer': ['m0l0oout', 'm0l0oover'],
		'inner': ['m0l0iout', 'm0l0iover']
	}
},
{
	'height': 15,
	'width': 140,
	'block_top': 23,
	'block_left': 0,
	'top': 21,
	'left': 0,
	'css': {
		'outer' : ['m0l1oout', 'm0l1oover'],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},
{
	'block_top': 5,
	'block_left': 130,
	'css': {
		'outer': ['m0l2oout', 'm0l2oover'], 
		'inner': ['m0l2iout', 'm0l2iover']
	}
}
]
