/***********************************************************************************
*	(c) Ger Versluis 1800 version 5.411 24 December 1801 (updated Jan 31st, 1803 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='#3a68a8';			// Background color when mouse is not over
	var LowSubBgColor='#3a68a8';			// Background color when mouse is not over on subs
	var HighBgColor='#f5802a';			// Background color when mouse is over
	var HighSubBgColor='#f5802a';			// Background color when mouse is over on subs
	var FontLowColor='#ffffff';			// Font color when mouse is not over
	var FontSubLowColor='#ffffff';			// Font color subs when mouse is not over
	var FontHighColor='#ffffff';			// Font color when mouse is over
	var FontSubHighColor='#ffffff';			// Font color subs when mouse is over
	var BorderColor='#fcd9bf';			// Border color
	var BorderSubColor='#fcd9bf';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var BorderWidthBtwnElmnts=1;
	var FontFamily="verdana,arial,helvetica,sans-serif"	// 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='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.09;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=0;				// 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=5;				// 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=1000;			// 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=0;			// 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=['images/menuarrow_inact.gif',22,17,'images/menuarrow_hover.gif',22,17,'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("Vastag- és végbélrák","kolorectal_epidemiology.cfm?indication=1","",5,18,280);
Menu1=new Array("Program bemutatása", "","",4,18,240);
	Menu1_1=new Array("A Program célja","pg_programcelja.cfm?indication=1&L1=1&L2=1&L3=0","",0,18,235);	
	Menu1_2=new Array("Előzmények","pg_elozmenyek.cfm?indication=1&L1=1&L2=2&L3=0","",0,18,235);	
	Menu1_3=new Array("A konstrukció ismertetése","pg_konstrukcio.cfm?indication=1&L1=1&L2=3&L3=0","",0,18,235);	
	Menu1_4=new Array("A folyamat bemutatása","pg_folyamat.cfm?indication=1&L1=1&L2=4&L3=0","",0,18,235);	
Menu2=new Array("Gyakorlati tudnivalók","","",5,18,240);
	Menu2_1=new Array("Közbeszerzés-mentesség","pg_kozbesz.cfm?indication=1&L1=2&L2=1&L3=0","",0,18,235);	
	Menu2_2=new Array("Miért éppen a Szemünk Fénye?","pg_miertszfp.cfm?indication=1&L1=2&L2=2&L3=0","",0,18,235);	
	Menu2_3=new Array("Finanszírozási tudnivalók","pg_finance.cfm?indication=1&L1=2&L2=03&L3=0","",0,18,235);	
	Menu2_4=new Array("Fenntartói segédlet","pg_segedlet.cfm?indication=1&L1=2&L2=4&L3=0","",0,18,235);	
	Menu2_5=new Array("ÜGYFÉLSZOLGÁLAT","pg_custservice.cfm?indication=1&L1=2&L2=5&L3=0","",0,24,235);
Menu3=new Array("Tevékenységi köreink","","",2,18,240);
	Menu3_1=new Array("Világítás-korszerűsítés","pg_prod_vil.cfm?indication=1&L1=3&L2=1&L3=0","",0,18,235);
	Menu3_2=new Array("Fűtés-korszerűsítés","pg_prod_fut.cfm?indication=1&L1=3&L2=2&L3=0","",0,18,235);
Menu4=new Array("Letöltések","","",1,18,235);
	Menu4_1=new Array("Letölthető állományok","pg_downloads.cfm","",0,18,230);

var menuArray = new Array();
var menuItemArray = new Array();
var menuItem = "Menu";
var ind = 1;
var indFrst = 1;
var indArr = 0;
var menuMessage = "";

while ( indFrst <= NoOffFirstLineMenus ) {
	menuItemArray = eval(menuItem + indFrst);
	if (menuItemArray[2] != "") {
		menuItemArray.push(menuItem + indFrst);
		menuArray.push( menuItemArray );
		menuMessage += menuItemArray[6] + "\n";
	}
	if ( eval(menuItem + indFrst + "[3]") > 0) {
		buildMenuArray( menuItem + indFrst );
	}
	++indFrst;
	++indArr;
}
//alert(menuMessage + "\n" + "menuArray.length: " + menuArray.length);

function buildMenuArray( subMenuItem ) {
	var ind = 1;
	var menuItemArray = new Array();

	while ( ind <= eval( subMenuItem + "[3]" ) ) {
		menuItemArray = eval(subMenuItem + "_" + ind);
		if (menuItemArray[2] != "") {
			menuItemArray.push(menuItem + indFrst);
			menuArray.push( menuItemArray );
			menuMessage += menuItemArray[6] + "\n";
		}
		menuItemArray.push(subMenuItem + "_" + ind);
		menuArray.push( menuItemArray );
		menuMessage += menuItemArray[6] + "\n";
		if ( eval(subMenuItem + "_" + ind + "[3]") > 0) {
			buildMenuArray( subMenuItem + "_" + ind );
		}
		++ind;
		++indArr;
	}
}

