var nav_tree;
nav_tree=new Array();

function prepare_location_heb()
{
	nav_tree['heb']=new Array();
	nav_tree['heb']['About']=new Array();
	nav_tree['heb']['About']['text']='אודות';
	nav_tree['heb']['About']['0']=3;
	nav_tree['heb']['About']['1']='פרופיל חברה';
	nav_tree['heb']['About']['1url']='About-heb';
	nav_tree['heb']['About']['2']='מחקר ופיתוח';
	nav_tree['heb']['About']['2url']='About-heb';
	nav_tree['heb']['About']['3']='שירות לקוחות';
	nav_tree['heb']['About']['3url']='About-heb';
	//nav_tree['heb']['About']['4']='בין לקוחותינו';
	//nav_tree['heb']['About']['4url']='About-heb';
	
	nav_tree['heb']['Product-ITEM']=new Array();
	nav_tree['heb']['Product-ITEM']['text']='מוצרים > ITEM';
	nav_tree['heb']['Product-ITEM']['0']=5;
	nav_tree['heb']['Product-ITEM']['1']='רקע';
	nav_tree['heb']['Product-ITEM']['1url']='Product-ITEM-heb';
	nav_tree['heb']['Product-ITEM']['2']='מדוע לבחור במערכת ה-ITEM?';
	nav_tree['heb']['Product-ITEM']['2url']='Product-ITEM-heb';
	nav_tree['heb']['Product-ITEM']['3']='המבחנים במערכת';
	nav_tree['heb']['Product-ITEM']['3url']='Product-ITEM-heb';
	nav_tree['heb']['Product-ITEM']['4']='הדו"חות המופקים במערכת';
	nav_tree['heb']['Product-ITEM']['4url']='Product-ITEM-heb';
	nav_tree['heb']['Product-ITEM']['5']='מבחנים לדוגמא';
	nav_tree['heb']['Product-ITEM']['5url']='Product-ITEM-heb';
	
	nav_tree['heb']['Product-SecuriTIL']=new Array();
	nav_tree['heb']['Product-SecuriTIL']['text']='מוצרים > SecuriTIL';
	nav_tree['heb']['Product-SecuriTIL']['0']=4;
	nav_tree['heb']['Product-SecuriTIL']['1']='רקע';
	nav_tree['heb']['Product-SecuriTIL']['1url']='Product-SecuriTIL-heb';
	nav_tree['heb']['Product-SecuriTIL']['2']='מדוע לבחור במערכת ה-SecuriTIL?';
	nav_tree['heb']['Product-SecuriTIL']['2url']='Product-SecuriTIL-heb';
	nav_tree['heb']['Product-SecuriTIL']['3']='התכונות הנבדקות על ידי המערכת';
	nav_tree['heb']['Product-SecuriTIL']['3url']='Product-SecuriTIL-heb';
	nav_tree['heb']['Product-SecuriTIL']['4']='מבחנים לדוגמא';
	nav_tree['heb']['Product-SecuriTIL']['4url']='Product-SecuriTIL-heb';
	
	nav_tree['heb']['Product-EduTIL']=new Array();
	nav_tree['heb']['Product-EduTIL']['text']='מוצרים > EduTIL';
	nav_tree['heb']['Product-EduTIL']['0']=2;
	nav_tree['heb']['Product-EduTIL']['1']='רקע';
	nav_tree['heb']['Product-EduTIL']['1url']='Product-EduTIL-heb';
	nav_tree['heb']['Product-EduTIL']['2']='מדוע לבחור במערכת ה-EduTIL?';
	nav_tree['heb']['Product-EduTIL']['2url']='Product-EduTIL-heb';
	
	nav_tree['heb']['Service']=new Array();
	nav_tree['heb']['Service']['text']='שירותים פסיכולוגיים';
	nav_tree['heb']['Service']['0']=3;
	nav_tree['heb']['Service']['1']='מיון מורחב';
	nav_tree['heb']['Service']['1url']='Service-heb';
	nav_tree['heb']['Service']['2']='מרכזי הערכה';
	nav_tree['heb']['Service']['2url']='Service-heb';
	nav_tree['heb']['Service']['3']='יעוץ תעסוקתי';
	nav_tree['heb']['Service']['3url']='Service-heb';
	
	nav_tree['heb']['Candidate']=new Array();
	nav_tree['heb']['Candidate']['text']='מידע לנבחן';
	nav_tree['heb']['Candidate']['0']=4;
	nav_tree['heb']['Candidate']['1']='איך להגיע';
	nav_tree['heb']['Candidate']['1url']='Candidate-heb';
	nav_tree['heb']['Candidate']['2']='מידע כללי';
	nav_tree['heb']['Candidate']['2url']='Candidate-heb';
	nav_tree['heb']['Candidate']['3']='מבחנים לדוגמא';
	nav_tree['heb']['Candidate']['3url']='Candidate-heb';
	nav_tree['heb']['Candidate']['4']='העברת תוצאות';
	nav_tree['heb']['Candidate']['4url']='Candidate-heb';
	
}

function prepare_location_eng()
{
	nav_tree['eng']=new Array();
	nav_tree['eng']['About']=new Array();
	nav_tree['eng']['About']['text']='About us';
	nav_tree['eng']['About']['0']=2;
	nav_tree['eng']['About']['1']='Company Profile';
	nav_tree['eng']['About']['1url']='About-eng';
	nav_tree['eng']['About']['2']='R & D';
	nav_tree['eng']['About']['2url']='About-eng';
	//nav_tree['heb']['About']['3']='שירות לקוחות';
	//nav_tree['heb']['About']['3url']='About-heb';
	//nav_tree['eng']['About']['3']='Clients';
	//nav_tree['eng']['About']['3url']='About-eng';
	
	nav_tree['eng']['Product-ITEM']=new Array();
	nav_tree['eng']['Product-ITEM']['text']='Products > ITEM';
	nav_tree['eng']['Product-ITEM']['0']=5;
	nav_tree['eng']['Product-ITEM']['1']='About ITEM';
	nav_tree['eng']['Product-ITEM']['1url']='Product-ITEM-eng';
	nav_tree['eng']['Product-ITEM']['2']='Why Choose ITEM?';
	nav_tree['eng']['Product-ITEM']['2url']='Product-ITEM-eng';
	nav_tree['eng']['Product-ITEM']['3']='The Tests In The System';
	nav_tree['eng']['Product-ITEM']['3url']='Product-ITEM-eng';
	nav_tree['eng']['Product-ITEM']['4']='The Reports In The System';
	nav_tree['eng']['Product-ITEM']['4url']='Product-ITEM-eng';
	nav_tree['eng']['Product-ITEM']['5']='Sample Tests';
	nav_tree['eng']['Product-ITEM']['5url']='Product-ITEM-eng';
	
	nav_tree['eng']['Product-SecuriTIL']=new Array();
	nav_tree['eng']['Product-SecuriTIL']['text']='Products > SecuriTIL';
	nav_tree['eng']['Product-SecuriTIL']['0']=3;
	nav_tree['eng']['Product-SecuriTIL']['1']='About SecuriTIL';
	nav_tree['eng']['Product-SecuriTIL']['1url']='Product-SecuriTIL-eng';
	nav_tree['eng']['Product-SecuriTIL']['2']='Why Choose SecuriTIL?';
	nav_tree['eng']['Product-SecuriTIL']['2url']='Product-SecuriTIL-eng';
	//nav_tree['eng']['Product-SecuriTIL']['3']='התכונות הנבדקות על ידי המערכת';
	//nav_tree['eng']['Product-SecuriTIL']['3url']='Product-SecuriTIL-eng';
	nav_tree['eng']['Product-SecuriTIL']['3']='Sample Tests';
	nav_tree['eng']['Product-SecuriTIL']['3url']='Product-SecuriTIL-eng';

	
	nav_tree['eng']['Product-EduTIL']=new Array();
	nav_tree['eng']['Product-EduTIL']['text']='Products > EduTIL';
	nav_tree['eng']['Product-EduTIL']['0']=2;
	nav_tree['eng']['Product-EduTIL']['1']='About EduTIL';
	nav_tree['eng']['Product-EduTIL']['1url']='Product-EduTIL-eng';
	nav_tree['eng']['Product-EduTIL']['2']='Why Choose EduTIL?';
	nav_tree['eng']['Product-EduTIL']['2url']='Product-EduTIL-eng';


/*
	nav_tree['eng']['Service']=new Array();
	nav_tree['eng']['Service']['text']='שירותים פסיכולוגיים';
	nav_tree['eng']['Service']['0']=3;
	nav_tree['eng']['Service']['1']='מיון מורחב';
	nav_tree['eng']['Service']['1url']='Service-eng';
	nav_tree['eng']['Service']['2']='מרכזי הערכה';
	nav_tree['eng']['Service']['2url']='Service-eng';
	nav_tree['eng']['Service']['3']='ייעוץ תעסוקתי';
	nav_tree['eng']['Service']['3url']='Service-eng';
*/

	nav_tree['eng']['Candidate']=new Array();
	nav_tree['eng']['Candidate']['text']='Candidate Information';
	nav_tree['eng']['Candidate']['0']=2;
	//nav_tree['eng']['Candidate']['1']='איך להגיע';
	//nav_tree['eng']['Candidate']['1url']='Candidate-eng';
	nav_tree['eng']['Candidate']['1']='General Information';
	nav_tree['eng']['Candidate']['1url']='Candidate-eng';
	nav_tree['eng']['Candidate']['2']='Sample Tests';
	nav_tree['eng']['Candidate']['2url']='Candidate-eng';
}



function prepare_start_side_menu(lang)
{
document.write("<td background=\"img/til-bg.jpg\" >");
	document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"");

		if (lang == "heb")
			document.write("style=\"direction:RTL;\" >");
		else
			document.write("style=\"direction:LTR;\" >");
			
		document.write("<tr>");
			//<!-- Blank Seperator -->
			document.write("<td width=\"15\" valign=\"top\">");
				document.write("<div align=\"center\" ></div>");
			document.write("</td>");
			//<!-- End Blank Sepecator -->	
			//<!-- SIDE MENU -->
			document.write("<td width=\"130\" valign=\"top\">");
				document.write("<div class=\"side_menu\">");
					document.write("<table class=\"side_menu\">");
}

function add_to_side_menu(highlight, option_number, text, url)
{
document.write("<tr>");
	document.write("<td>");
		document.write("<img src=\"img/menu-icon.jpg\" style=\"vertical-align: middle;\">");
	document.write("</td>");
	document.write("<td>");

		//Create the Link
		document.write("<a id=\"om"+option_number+"\"  ");
		if (highlight == option_number)
			document.write("style=\"color:rgb(255,0,0);\" ");
		document.write("href=\""+url+"@"+option_number+".html\"");
		document.write("> ");
		document.write(text+"</a>");

	document.write("</td>");
document.write("</tr>");
document.write("<tr>");
	document.write("<td>");
		document.write("<br class=\"side_menu_br\"/>");
	document.write("</td>");
document.write("</tr>");

}

function prepare_end_side_menu()
{
		document.write("</table>");
	document.write("</div>");
document.write("</td>");
//<!-- END OF SIDE MENU -->
//<!-- Seperator -->
document.write("<td width=\"10\" valign=\"top\">");
	document.write("<div align=\"center\" >");
		document.write("<img src=\"img/text-border.jpg\">");
	document.write("</div>");
document.write("</td>");
//<!-- End Sepecator -->	

}

function prepare_side_menu(option, lang, category)
{
	var length;
	length=nav_tree[lang][category]['0'] + 1;
	for (i=1; i < length; i++)
	{
		add_to_side_menu(option, i, nav_tree[lang][category][i], nav_tree[lang][category][i+'url'] );
	}
}

function prepare_location(option, lang, category)
{
document.write("<table width=\"770\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"");

		if (lang == "heb")
			document.write("style=\"direction:RTL;\" >");
		else
			document.write("style=\"direction:LTR;\" >");

	document.write("<tr>");
		//<!-- Blank Seperator -->
		document.write("<td width=\"170\" valign=\"top\">");
			document.write("<div align=\"center\" ></div>");
		document.write("</td>");
		document.write("<td class=\"location\">");				

			//document.write("<br class=\"side_menu_br\"/>");
			document.write("<br>");
			document.write(nav_tree[lang][category]['text']);
			document.write(" > ");
			document.write(nav_tree[lang][category][option]);
			document.write("<br>");			
			document.write("<br>");
			//document.write("<br class=\"side_menu_br\"/>");
	
		document.write("</td>");
	document.write("</tr>");
document.write("</table>");
}