
var MenuH = 20;
var MenuW = 90; /*unused*/

/* Script found on http://www.quirksmode.org/ */
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function GetMenuStartX () {
	a = document.getElementById("menu");
	return findPosX(a);
}

function GetMenuStartY () {
	a = document.getElementById("menu");
	return findPosY(a);
}


/***********************************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	For info write to menus@burmees.nl		          *
*	You may remove all comments for faster loading	          *		
*	Adapted By Publinet
*	Vars for menu-instance 1 (main menu)
***********************************************************************************/

//	var NoOffFirstLineMenus=8;		// Number of first level items
	var MenuTextCentered='left';	// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';		// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';	// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=0;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=0;		// vertical overlap child/ parent
	var StartTop=8;					// Menu offset x coordinate
	var StartLeft=0;				// Menu offset y coordinate
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=3;				// Top padding
	var FirstLineHorizontal=1;		// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=0;		// Frames in cols or rows 1 or 0
	var DissapearDelay=400;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='evotop';	// Frame where first level appears
	var SecLineFrame='evotop';		// Frame where sub levels appear
	var DocTargetFrame='evotop';	// Frame where target documents appear
	var TargetLoc='menu';			// span id for relative positioning
	var HideTop=0;					// Hide first level when loading new document 1 or 0
	var MenuWrap=1;					// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
	var ShowArrow=0;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['/_pimsites/_model/52/menu_arrow.gif',10,10,'',1,1,'',1,1];	// Arrow source, width and height

	var LowBgColor='white';			// Background color when mouse is not over = light1
	var LowSubBgColor='white';		// Background color when mouse is not over on subs = light1
	var HighBgColor='white';			// Background color when mouse is over = dark1
	var HighSubBgColor='white';		// Background color when mouse is over on subs = dark1
	var FontLowColor='#000000';			// Font color when mouse is not over = dark1
	var FontSubLowColor='#000000';		// Font color subs when mouse is not over = dark1
	var FontHighColor='#000000';			// Font color when mouse is over
	var FontSubHighColor='#000000';		// Font color subs when mouse is over
	var BorderColor='';					// Border color ** LEAVE BLANK FOR NO BORDER !!
	var BorderSubColor='';			// Border color for subs
	var BorderWidth=0;					// Border width
	var BorderOn1=0;					// Border on first line
	var BorderBtwnElmnts=0;				// Border between elements 1 or 0
	var FontFamily="Verdana, Arial, Helvetica"	// Font family menu items
	var FontSize=8;						// Font size menu items
	var FontBold=0;						// Bold menu items 1 or 0
	var FontItalic=0;					// Italic menu items 1 or 0
	SubMenuMarginLeft=5;			// PIMCODE - correction for underlying IFRAME in IE, corrects for margins in stylesheet
	SubMenuMarginTop = 7;			//You guessed it

	navst = true;