

TheLayId=document.getElementById('topYellow');
TheWidth=TheLayId.offsetWidth;

if(TheLayId.offsetParent)
	{
    	for( var posX = -1, posY = -10; TheLayId.offsetParent; TheLayId = TheLayId.offsetParent )
		{
			posX += TheLayId.offsetLeft;
			posY += TheLayId.offsetTop;
			//alert(posX+'=='+posY);
	    }
	}

if(navigator.appVersion.indexOf("MSIE")==-1)
{
	posX=posX-5;
	posY=posY+10;
	submenuHeight=23;
	submenuTop=23;
}
else
{
	
	if(document.body.offsetWidth >= 1250)
	{
		posX=posX+127;
		posY=posY+110;			
	}
	else
		posY=posY+110;
	
	submenuHeight=28;
	submenuTop=24;
}	

// level scope settins structure
var MENU_TPL = [
// root level configuration (level 0)
{
	// item sizes
	'height': 20,
	'width': 129,
	// absolute position of the menu on the page (in pixels)
	// with centered content use Tigra Menu PRO or Tigra Menu GOLD
	
	
	//alert(TheWidth)
	/*if(TheHref.offsetParent)
	{
    	for( var posX = -1, posY = -10; TheHref.offsetParent; TheHref = TheHref.offsetParent )
		{
			posX += TheHref.offsetLeft;
			posY += TheHref.offsetTop;
	    }
	}*/
	
	'block_top':  posY,
	'block_left': posX,
	// offsets between items of the same level (in pixels)
	'top':  0,
	'left': 131,
	// time delay before menu is hidden after cursor left the menu (in milliseconds)
	'hide_delay': 200,
	// submenu expand delay after the rollover of the parent 
	'expd_delay': 200,
	// names of the CSS classes for the menu elements in different states
	// tag: [normal, hover, mousedown]
	'css' : {
		'outer' : ['m0l0oout', 'm0l0oover'],
		'inner' : ['m0l0iout', 'm0l0iover']
	}
},
// sub-menus configuration (level 1)
// any omitted parameters are inherited from parent level
{
	'height': submenuHeight,
	'width': 250,
	// position of the submenu relative to top left corner of the parent item
	'block_top': 30,
	'block_left': 0,
	'top': submenuTop,
	'left': 0,
	'css' : {
		'outer' : ['m0l1oout', 'm0l1oover'],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},
// sub-sub-menus configuration (level 2)
{
	'block_top': 5,
	'block_left': 250
}
// the depth of the menu is not limited
// make sure there is no comma after the last element
];
