/***********************************************************************************
*	(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	          *		
***********************************************************************************/

	var NoOffFirstLineMenus=4;			// Number of first level items
	var LowBgColor='black';			// Background color when mouse is not over
	var LowSubBgColor='black';			// Background color when mouse is not over on subs
	var HighBgColor='black';			// Background color when mouse is over
	var HighSubBgColor='black';			// Background color when mouse is over on subs
	var FontLowColor='white';			// Font color when mouse is not over
	var FontSubLowColor='white';			// Font color subs when mouse is not over
	var FontHighColor='red';			// Font color when mouse is over
	var FontSubHighColor='red';			// Font color subs when mouse is over
	var BorderColor='black';			// Border color
	var BorderSubColor='white';			// Border color for subs
	var BorderWidth=0;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="Verdana"	// Font family menu items
	var FontSize=8;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='center';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.01;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=0;			// vertical overlap child/ parent
	
	
	var nVer = navigator.appVersion;
	var nAgt = navigator.userAgent;
	var browserName  = '';
	var fullVersion  = 0; 
	var majorVersion = 0;
	
	// In Internet Explorer, the true version is after "MSIE" in userAgent
	if ((verOffset=nAgt.indexOf("MSIE"))!=-1) {
	 browserName  = "Microsoft Internet Explorer";
	 fullVersion  = parseFloat(nAgt.substring(verOffset+5));
	 majorVersion = parseInt(''+fullVersion);
	}
	
	// In Opera, the true version is after "Opera" 
	else if ((verOffset=nAgt.indexOf("Opera"))!=-1) {
	 browserName  = "Opera";
	 fullVersion  = parseFloat(nAgt.substring(verOffset+6));
	 majorVersion = parseInt(''+fullVersion);
	}
	
	// In Firefox, the true version is after "Firefox" 
	else if ((verOffset=nAgt.indexOf("Firefox"))!=-1) {
	 browserName  = "Firefox";
	 fullVersion  = parseFloat(nAgt.substring(verOffset+8));
	 majorVersion = parseInt(''+fullVersion);
	}
	
	// In most other browsers, "name/version" is at the end of userAgent 
	else if ( (nameOffset=nAgt.lastIndexOf(' ')+1) < (verOffset=nAgt.lastIndexOf('/')) ) 
	{
	 browserName  = nAgt.substring(nameOffset,verOffset);
	 fullVersion  = parseFloat(nAgt.substring(verOffset+1));
	 if (!isNaN(fullVersion)) majorVersion = parseInt(''+fullVersion);
	 else {fullVersion  = 0; majorVersion = 0;}
	}
	
	// Finally, if no name and/or no version detected from userAgent...
	if (browserName.toLowerCase() == browserName.toUpperCase()
	 || fullVersion==0 || majorVersion == 0 )
	{
	 browserName  = navigator.appName;
	 fullVersion  = parseFloat(nVer);
	 majorVersion = parseInt(nVer);
	}
	
	if((browserName=='Firefox')&&(fullVersion<2))
	{
		var StartTop=90;
	}				// Menu offset x coordinate
	else
		var StartTop=73;
	
	var StartLeft=220;				// 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=2;				// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=200;			// delay before menu folds in
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame='navig';			// Frame where first level appears
	var SecLineFrame='space';			// Frame where sub levels appear
	var DocTargetFrame='space';			// Frame where target documents appear
	var TargetLoc='';				// 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=1;			// menu tree checking on or off 1 or 0
	var ShowArrow=1;				// Uses arrow gifs when 1
	var KeepHilite=1;				// Keep selected path highligthed
	var Arrws=['tri.gif',5,10,'tridown.gif',0,0,'trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}


// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to:  "rollover:Image1.jpg:Image2.jpg"
//Menu1=new Array(\"Produse\",\"index.php?page=Produse\",\"\",0,20,140); 

//IMPORTANT!!!
//page=page_title, where page title can be found in messages.PHP 
//subpage=categorii.idCategorie
if(jsCulture == 'en')
{
    Menu1 = new Array("Products","index.php?page=Products&culture=en","",6,20,160);
        Menu1_1 = new Array("General design","index.php?page=Products&subPage=2&culture=en","",0,20,180);
        Menu1_2 = new Array("Digital prototyping","index.php?page=Products&subPage=3&culture=en","",0,20,150);
        Menu1_3 = new Array("CAD Tools","index.php?page=Products&subPage=7&culture=en","",0,20,150);
        Menu1_4 = new Array("Lifecycle management","index.php?page=Products&subPage=9&culture=en","",5,20,170);
            Menu1_4_1 = new Array("Document management","index.php?page=Products&subPage=11&culture=en","",0,20,170);
            Menu1_4_2 = new Array("Product management","index.php?page=Products&subPage=12&culture=en","",0,20,170);
            Menu1_4_3 = new Array("M&M planning","index.php?page=Products&subPage=13&culture=en","",0,20,170);
            Menu1_4_4 = new Array("Resource planning","index.php?page=Products&subPage=14&culture=en","",0,20,170);
            Menu1_4_5 = new Array("Lifecycle management","index.php?page=Products&subPage=15&culture=en","",0,20,170);
        Menu1_5 = new Array("3D Connexion","index.php?page=Products&subPage=10&culture=en","",0,20,150);
        Menu1_6 = new Array("All products","index.php?page=Products&subPage=0&culture=en","",0,20,150);
    Menu2 = new Array("Downloads","index.php?page=Service&culture=en","",0,20,180);
    Menu3 = new Array("Forum","http://forum.matrix.ro","",0,20,120);
    Menu4 = new Array("Contact","index.php?page=Contact&culture=en","",0,20,70);
}
else
{
    Menu1 = new Array("Produse","index.php?page=Produse&culture=ro","",6,20,160);
        Menu1_1 = new Array("Proiectare generala","index.php?page=Produse&subPage=2&culture=ro","",0,20,180);
        Menu1_2 = new Array("Fabricatie asistata","index.php?page=Produse&subPage=3&culture=ro","",0,20,150);
        Menu1_3 = new Array("Utilitare CAD","index.php?page=Produse&subPage=7&culture=ro","",0,20,150);
        Menu1_4 = new Array("Lifecycle management","index.php?page=Produse&subPage=9&culture=ro","",5,20,150);
            Menu1_4_1 = new Array("Management documente","index.php?page=Produse&subPage=11&culture=ro","",0,20,200);
            Menu1_4_2 = new Array("Management produs","index.php?page=Produse&subPage=12&culture=ro","",0,20,150);
            Menu1_4_3 = new Array("M&M planning","index.php?page=Produse&subPage=13&culture=ro","",0,20,150);
            Menu1_4_4 = new Array("Resource planning","index.php?page=Produse&subPage=14&culture=ro","",0,20,150);
            Menu1_4_5 = new Array("Lifecycle management","index.php?page=Produse&subPage=15&culture=ro","",0,20,150);
        Menu1_5 = new Array("3D Connexion","index.php?page=Produse&subPage=10&culture=ro","",0,20,150);
        Menu1_6 = new Array("Toate produsele","index.php?page=Produse&subPage=0&culture=ro","",0,20,150);
    Menu2 = new Array("Downloads","index.php?page=Service&culture=ro","",0,20,180);
    Menu3 = new Array("Forum","http://forum.matrix.ro","",0,20,120);
    Menu4 = new Array("Contact","index.php?page=Contact&culture=ro","",0,20,70);
}