/*
  --- 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.
*/


viewport =
{
   getIECanvas: function ()
   {
      var canv = null;
      if (!window.opera && document.all && typeof document.body.clientWidth != "undefined")
      {
         var cm = document.compatMode && document.compatMode == "CSS1Compat";
         canv = cm ? document.documentElement : document.body;
      }
      return canv;
   },

   getWinWidth: function ()
   {
      var canv;
      if ( canv = this.getIECanvas() )
         this.width = canv.clientWidth;
      else
         this.width = window.innerWidth - 18;
   },

   getWinHeight: function ()
   {
      var canv;
      if (canv = this.getIECanvas())
         this.height = canv.clientHeight;
      else
         this.height = window.innerHeight - 18;
   },

   getScrollX: function ()
   {
      var canv;
      if (canv = this.getIECanvas())
         this.scrollX = canv.scrollLeft;
      else if (window.pageXOffset)
         this.scrollX = window.pageXOffset;
      else if (window.scrollX)
         this.scrollX = window.scrollX;
      else
         this.scrollX = 0;
   },

   getScrollY: function ()
   {
      var canv;
      if (canv = this.getIECanvas())
         this.scrollY = canv.scrollTop;
      else if (window.pageYOffset)
         this.scrollY = window.pageYOffset;
      else if (window.scrollY)
         this.scrollY = window.scrollY;
      else
         this.scrollY = 0;
   },

   getAll: function ()
   {
      this.getWinWidth();
      this.getWinHeight();
      this.getScrollX();
      this.getScrollY();
   }
};


viewport.getWinWidth();

var iWidthVal;
iWidthVal = (viewport.width-920) / 2;
if (iWidthVal < 0) {iWidthVal=0};


var MENU_POS = [{
	// item sizes
	'height': 24,
	'width': 153.5,
	// 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': 275,
	'block_left': iWidthVal,
	// offsets between items of the same level
	'top': 0,
	'left': 153.5,
	// time in milliseconds before menu is hidden after cursor has gone out
	// of any items
	'hide_delay': 200,
	'expd_delay': 50,
	'css' : {
		'outer' : ['m0l0oout', 'm0l0oover'],
		'inner' : ['m0l0iout', 'm0l0iover']
	}
},{  
	'height': 24,
	'width': 190,
	'block_top': 25,
	'block_left': 0,
	'top': 23,
	'left': 0,
	'css' : {
		'outer' : ['m0l1oout', 'm0l1oover'],
		'inner' : ['m0l1iout', 'm0l1iover']
	}
},{
	'block_top': 5,
	'block_left': 160
}
]


