
var BorderColor='#8EA8B2';
var BorderSubColor='#8EA8B2';
var HighSubBgColor='#5F7077';
var StartLeft=0
var sRolloverImg
var ImagePath;
var ContentPath;

var TxtMenuOrganisation 		= "Organisatie";
var TxtMenuCareer	    		= "Vacatures";
var TxtMenuPartners     		= "Partners";
var TxtMenuAddress      		= "Adres gegevens";
var TxtMenuProductInfo 			= "Product informatie";
var TxtMenuProductInfoGeneral 	= "Inleiding";
var TxtMenuProductTour 			= "Rondleiding";
var TxtMenuProductFunctionList	= "Functie overzicht";
var TxtMenuProductPackage 		= "Pakketsamenstelling";
var TxtMenuProductWhyBackery    = "Waarom Compad Bakkerij?";
var TxtMenuProductEvaluation	= "Evaluatie";
var TxtMenuProductTour 			= "Rondleiding";
var TxtMenuProductBuy  		    = "Kopen";
var TxtMenuProductWhichPackage	= "Welk pakket?";
var TxtMenuProductPricelist 	= "Prijslijst";
var TxtMenuProductWhere2Buy 	= "Waar te koop?";
var TxtMenuProductOnlineshop	= "Online shop";
var TxtMenuProductSupport		= "Ondersteuning";
var TxtMenuProductOnlineHelp	= "Online help";
var TxtMenuProductFAQ			= "Meestgestelde vragen";
var TxtMenuProductKnownledgebase= "Vraagbaak";
var TxtMenuProductReference 	= "Referenties";
var TxtMenuProductDownloads 	= "Downloads";
var TxtMenuProductWhyStoreAutomation = "Waarom Compad Store Automation?";
var TxtMenuProductWhyBiz			 = "Waarom Compad.biz";

var TxtMenuCustomerServiceLogon				= "Aanmelden";
var TxtMenuCustomerServiceFolders 			= "Folders";
var TxtMenuCustomerServiceFAQ				= "Veelgestelde vragen"; 
var TxtMenuCustomerServiceQuestion 				= "Vraag stellen";
var TxtMenuCustomerServiceContact 					= "Contact";
var TxtMenuCustomerServiceGeneralConditions 		= "Algemene Voorwaarden";
var TxtMenuCustomerServiceTermsConditions 			= "termijnen & voorwaarden";
var TxtMenuCustomerServiceAccessibilityStatement 	= "Toegankelijkheid verklaring ";
var TxtMenuCustomerServicePrivacyPolicy			= "Privacy Beleid";

var TxtMenuContactGeneral 					= "Adresgegevens";
var TxtMenuContactForm						= "Contact";


/*Corrects Hposition for FireFox users*/
if (navigator.userAgent.indexOf("Firefox")!=-1){
	var sCorrectHpos;
	sCorrectHpos=-8
	StartLeft=sCorrectHpos;
}

function setVal(sLanguage,sPage){
	var sBaseColor;
	var sHiliteBaseColor;
	switch (sPage) {
	    case "gray":	/* welcome */
			sBaseColor='#8EA8B2';
			sHiliteBaseColor='#5F7077';
		break;
		case "purple":	/* about */ 
			sBaseColor='#67548D';
			sHiliteBaseColor='#3E3355';
		break;
		 case "blue":	/* nature */
			sBaseColor='#84ADF8';
			sHiliteBaseColor='#5C79AD';
		break;
		case "green": /* conservation */
			sBaseColor='#2F861B';
			sHiliteBaseColor='#1D5211';
		break;
		 case "red":	/* activities */
			sBaseColor='#CD4848';
			sHiliteBaseColor='#852F2F';
		break;
		case "orange": /* partners */
			sBaseColor='#F39437';
			sHiliteBaseColor='#B8702A';
		break;
		 case "light green": /* donations */
			sBaseColor='#A3CF7C';
			sHiliteBaseColor='#78995C';
		break;
		case "lightyellow":	/* news */
			sBaseColor='#D9C91D';
			sHiliteBaseColor='#9B9015';
		break;
		 case "brown": /* downloads */
			sBaseColor='#853E14';
			sHiliteBaseColor='#3F1D09';
		break;
		case "yellow":/* contact */
			sBaseColor='#E9B71C';
			sHiliteBaseColor='#B58F16';
		break;
	}
	BorderColor=sBaseColor;
	BorderSubColor=sBaseColor;
	HighSubBgColor=sHiliteBaseColor;
	ImagePath = "/images/"+sPage+"/"+sLanguage+"/";
	ContentPath = "/"+sLanguage+"/";
	
	switch (sLanguage) {
	    case "en":	/* welcome */
			TxtMenuOrganisation 		= "Company";
			TxtMenuCareer	    		= "Vacatures";
			TxtMenuPartners     		= "Partners";
			TxtMenuAddress      		= "Address";
			TxtMenuProductInfo 			= "Product information";
			TxtMenuProductInfoGeneral 	= "Overview";
			TxtMenuProductTour 			= "Tour";
			TxtMenuProductFunctionList	= "Functionlist";
			TxtMenuProductPackage 		= "Packagedeal";
			TxtMenuProductWhyBackery    = "Why Compad Backery?";
			TxtMenuProductEvaluation	= "To evaluate";
			TxtMenuProductBuy 		    = "Buy";
			TxtMenuProductWhichPackage	= "Which package?";
			TxtMenuProductPricelist 	= "Pricelist";
			TxtMenuProductWhere2Buy 	= "Where to buy?";
			TxtMenuProductOnlineshop	= "Online shop";
			TxtMenuProductSupport 		= "Support";
			TxtMenuProductOnlineHelp	= "Online help";
			TxtMenuProductFAQ			= "FQA";
			TxtMenuProductKnownledgebase= "Knownledge base";
			TxtMenuProductReference 	= "Customer references";
			TxtMenuProductDownloads 	= "Downloads";
			TxtMenuProductWhyStoreAutomation = "Why Compad Store Automation?";
			TxtMenuProductWhyBiz 					= "Why Compad.biz";
			TxtMenuCustomerServiceLogon				= "Logon";
			TxtMenuCustomerServiceFolders 			= "Folders";
			TxtMenuCustomerServiceFAQ						= "FAQ"; 
			TxtMenuCustomerServiceQuestion 				= "Ask your question";
			TxtMenuCustomerServiceContact 					= "Contact";
			TxtMenuCustomerServiceGeneralConditions 		= "General conditions";
			TxtMenuCustomerServiceTermsConditions 			= "Terms & conditions";
			TxtMenuCustomerServiceAccessibilityStatement 	= "Accessibility statement";
			TxtMenuCustomerServicePrivacyPolicy			= "Privacy Policy";			
			TxtMenuContactGeneral 					= "Address";
			TxtMenuContactForm						= "Contact";
			
		break;
	    case "de":	/* welcome */
			TxtMenuOrganisation 		= "Organisation";
			TxtMenuCareer	    		= "Joböffnungen";
			TxtMenuPartners     		= "Teilhaber";
			TxtMenuAddress      		= "Adresse Daten";
			TxtMenuProductInfo 			= "Produktinformation";
			TxtMenuProductInfoGeneral 	= "Einleitung";
			TxtMenuProductTour 			= "Tour";
			TxtMenuProductFunctionList	= "Funktion Überblick";
			TxtMenuProductPackage 		= "Paketaufbau";
			TxtMenuProductWhyBackery    = "Warum Compad Bäckerei?";
			TxtMenuProductEvaluation	= "Auswerten";
			TxtMenuProductBuy 		    = "Kaufen";
			TxtMenuProductWhichPackage	= "Welches Paket?";
			TxtMenuProductPricelist 	= "Preisliste";
			TxtMenuProductWhere2Buy 	= "Wo man kauft?";
			TxtMenuProductOnlineshop	= "Online shop";
			TxtMenuProductSupport		= "Unterstützung";
			TxtMenuProductOnlineHelp	= "On-line-Hilfe";
			TxtMenuProductFAQ			= "die meisten stellten Fragen";
			TxtMenuProductKnownledgebase= "Knownledge base suche";
			TxtMenuProductReference 	= "Kunde Hinweise";
			TxtMenuProductDownloads 	= "Downloads";
			TxtMenuProductWhyStoreAutomation = "Warum Compad Store Automation?";
			TxtMenuProductWhyBiz					= "Warum Compad.biz";
			TxtMenuCustomerServiceLogon				= "Logon";
			TxtMenuCustomerServiceFolders 			= "Hefte";
			TxtMenuCustomerServiceFAQ						= "FAQ"; 
			TxtMenuCustomerServiceQuestion 				= "Stellen Sie Ihre Frage";
			TxtMenuCustomerServiceContact 					= "Contact";
			TxtMenuCustomerServiceGeneralConditions 		= "Allgemeine Bedingungen";
			TxtMenuCustomerServiceTermsConditions 			= "Nutzungsbedingungen";
			TxtMenuCustomerServiceAccessibilityStatement 	= "Zugänglichkeit Aussage";
			TxtMenuCustomerServicePrivacyPolicy			= "Informationen zur Datensicherheit";			
			TxtMenuContactGeneral 					= "Adresse";
			TxtMenuContactForm						= "Kontakt";
		break;
	}
	ConfigureMenu();
}
//alert(sRolloverImg);
	var NoOffFirstLineMenus=8;			// Number of first level items
	var LowBgColor='white';			// Background color when mouse is not over
	var LowSubBgColor='white';			// Background color when mouse is not over on subs
	var HighBgColor='black';			// Background color when mouse is over
	//var HighSubBgColor='#5F7077';			// Background color when mouse is over on subs
	var FontLowColor='black';			// Font color when mouse is not over
	var FontSubLowColor='#444444';			// Font color subs when mouse is not over
	var FontHighColor='white';			// Font color when mouse is over
	var FontSubHighColor='white';			// Font color subs when mouse is over
	//var BorderColor='';					// Border color
	//var BorderSubColor='';			// Border color for subs
	var BorderWidth=1;				// Border width
	var BorderBtwnElmnts=1;			// Border between elements 1 or 0
	var FontFamily="Verdana, Arial, Helvetica, Geneva, sans-serif"	// 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
	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
	var MenuCentered='middle';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=.1;				// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=247;				// 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=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=500;			// 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='p_menubalk';				// 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=['http://www.compad-software.com/images/tri-right2.gif',9,9,'http://www.compad-software.com/images/tri-down2.gif',9,9,'http://www.compad-software.com/images/tri-right2.gif',9,9];	// Arrow source, width and height
	//

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

function ConfigureMenu() {
	// 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("rollover:"+ImagePath+"button_welcome.gif:"+ImagePath+"button_welcome1.gif",ContentPath+"/index.html","",0,18,91);
	
	Menu2=new Array("rollover:"+ImagePath+"button_about.gif:"+ImagePath+"button_about1.gif",ContentPath+"about/index.html","",5,18,91);
		Menu2_1=new Array(TxtMenuOrganisation,ContentPath+"about/organisation.html","",0,20,140);
		Menu2_2=new Array(TxtMenuCareer,ContentPath+"about/career.html","",0,20,140);
		Menu2_3=new Array(TxtMenuPartners,ContentPath+"about/partners.html","",0,20);
		Menu2_4=new Array(TxtMenuContactGeneral,ContentPath+"about/address.html","",0,20);
		Menu2_5=new Array(TxtMenuContactForm,ContentPath+"about/contact.html","",0,20);
	
	Menu3=new Array("rollover:"+ImagePath+"button_bakery.gif:"+ImagePath+"button_bakery1.gif",ContentPath+"products/bakery/index.html","",7,18,91);
		Menu3_1=new Array(TxtMenuProductInfo,ContentPath+"products/bakery/index.html","",4,20,160);
			Menu3_1_1=new Array(TxtMenuProductInfoGeneral,ContentPath+"products/bakery/introduction.html","",0,20,140);
			Menu3_1_2=new Array(TxtMenuProductTour,ContentPath+"products/bakery/tour/index.html","",0,20);	
			Menu3_1_3=new Array(TxtMenuProductFunctionList,ContentPath+"products/bakery/functionlist.html","",0,20);	
			Menu3_1_4=new Array(TxtMenuProductPackage,ContentPath+"products/bakery/composition.html","",0,20);	
		Menu3_2=new Array(TxtMenuProductEvaluation,ContentPath+"products/bakery/evaluate.html","",0,20);
		Menu3_3=new Array(TxtMenuProductReference,ContentPath+"products/bakery/reference/","",0,20);
		Menu3_4=new Array(TxtMenuProductWhyBackery,ContentPath+"products/bakery/why.html","",0,20);
		Menu3_5=new Array(TxtMenuProductBuy,ContentPath+"products/bakery/buy/index.html","",4,20);
			Menu3_5_1=new Array(TxtMenuProductWhichPackage,ContentPath+"products/bakery/buy/whichlicense.html","",0,20,140);	
			Menu3_5_2=new Array(TxtMenuProductPricelist,ContentPath+"products/bakery/buy/pricelist.html","",0,20);	
			Menu3_5_3=new Array(TxtMenuProductWhere2Buy,ContentPath+"products/bakery/buy/wheretobuy.html","",0,20);	
			Menu3_5_4=new Array(TxtMenuProductOnlineshop,"/shop/index.html","",0,20);	
		Menu3_6=new Array(TxtMenuProductSupport,ContentPath+"products/bakery/support/index.html","",2,20);
			Menu3_6_1=new Array(TxtMenuProductOnlineHelp,ContentPath+"products/bakery/support/help/index.html","",0,20,140);	
			Menu3_6_2=new Array(TxtMenuProductFAQ,ContentPath+"news/helpdesk.html#compadbakkerij","",0,20);	
		Menu3_7=new Array(TxtMenuProductDownloads,ContentPath+"products/bakery/download/index.html","",0,20);
	
	
	Menu4=new Array("rollover:"+ImagePath+"button_vectron.gif:"+ImagePath+"button_vectron1.gif",ContentPath+"products/vectron/index.html","",6,18,91);
		Menu4_1=new Array(TxtMenuProductInfo,ContentPath+"products/vectron/index.html","",2,20,160);
			Menu4_1_1=new Array(TxtMenuProductTour,ContentPath+"products/vectron/tour/","",0,20,140);	
			Menu4_1_2=new Array(TxtMenuProductFunctionList,ContentPath+"products/vectron/functionoverview.html","",0,20);	
		Menu4_2=new Array(TxtMenuProductReference,ContentPath+"products/vectron/reference.html","",0,20);
		Menu4_3=new Array(TxtMenuProductWhyStoreAutomation,ContentPath+"products/vectron/why.html","",0,20);
		Menu4_4=new Array(TxtMenuProductBuy,ContentPath+"products/vectron/buy/index.html","",2,20);
			Menu4_4_1=new Array(TxtMenuProductPricelist,ContentPath+"products/vectron/buy/pricelist.html","",0,20,140);	
			Menu4_4_2=new Array(TxtMenuProductWhere2Buy,ContentPath+"products/vectron/buy/wheretobuy.html","",0,20);	
		Menu4_5=new Array(TxtMenuProductSupport,ContentPath+"products/vectron/support/index.html","",2,20);
			Menu4_5_1=new Array(TxtMenuProductOnlineHelp,ContentPath+"products/vectron/support/help/index.html","",0,20,140);	
			Menu4_5_2=new Array(TxtMenuProductFAQ,ContentPath+"news/helpdesk.html#csa","",0,20);	
		Menu4_6=new Array(TxtMenuProductDownloads,ContentPath+"products/vectron/download/index.html","",0,20);
		
		
	Menu5=new Array("rollover:"+ImagePath+"button_biz.gif:"+ImagePath+"button_biz1.gif",ContentPath+"products/biz/index.html","",0,18,91);
	
	Menu6=new Array("rollover:"+ImagePath+"button_webdesign.gif:"+ImagePath+"button_webdesign1.gif",ContentPath+"webdesign/index.html","",0,18,91);
	
	Menu7=new Array("rollover:"+ImagePath+"button_tailor-made.gif:"+ImagePath+"button_tailor-made1.gif",ContentPath+"products/tailor-made/index.html","",0,18,91);
		
	Menu8=new Array("rollover:"+ImagePath+"button_customerservice.gif:"+ImagePath+"button_customerservice1.gif",ContentPath+"customerservice/index.html","",9,18,91);
		Menu8_1=new Array(TxtMenuCustomerServiceLogon,ContentPath+"customerservice/logon.html","",0,20,160);
		Menu8_2=new Array(TxtMenuCustomerServiceFolders,ContentPath+"customerservice/folders.html","",0,20);
		Menu8_3=new Array(TxtMenuCustomerServiceFAQ,ContentPath+"customerservice/faq.html","",0,20);
		Menu8_4=new Array(TxtMenuCustomerServiceQuestion,ContentPath+"customerservice/question.html","",0,20);
		Menu8_5=new Array(TxtMenuCustomerServiceContact,ContentPath+"customerservice/contact.html","",0,20);
		Menu8_6=new Array(TxtMenuCustomerServiceGeneralConditions,ContentPath+"customerservice/general%20conditions.html","",0,20);
		Menu8_7=new Array(TxtMenuCustomerServiceTermsConditions,ContentPath+"customerservice/terms_conditions.html","",0,20);
		Menu8_8=new Array(TxtMenuCustomerServiceAccessibilityStatement,ContentPath+"customerservice/accessibility%20statement.html","",0,20);
		Menu8_9=new Array(TxtMenuCustomerServicePrivacyPolicy,ContentPath+"customerservice/privacy%20policy.html","",0,20);
	
		
	return
}
