//
//  Меню сайта
//

var archmenu = [ 
	[ "it_news.html", 				"<B>НОВОСТИ</B><br>",                 		"news", 				0,	'' ],
 	[ "it_news.html", 				"Новости,&nbsp;события",        "new", 				4,	'' ],
	[ "learn/learn_graf.html", 				"Мероприятия",        "mer", 				4,	'' ],
	[ "act.html", 				"Акции",        "act", 				4,	'' ],
	[ "news_archiv.html", 				"Архив новостей",        				"archiv", 			4,	'' ],
    [ "", 								"&nbsp;", 								"nbsp", 				0, '' ],
    [ "po/prog.html", 			    "<B>ПРОГРАММНОЕ&nbsp;ОБЕСПЕЧЕНИЕ</B><br>", 	    "prog", 	    0,	'' ],
	[ "po/eng.html", 				"Инженерные&nbsp;решения", 			"eng", 			4,	'' ],
	[ "po/mech.html", 				"Машиностроение", 		  	      	"mech", 		4,	'' ],
	[ "po/tech.html", 			"Технология.&nbsp;Производство",   "tech",	4,	'' ],
	[ "po/electrica.html", 			"Электрика,&nbsp;КИП&nbsp;и&nbsp;А","electric",	4,	'' ],
	[ "po/arch.html", 				"Строительство,&nbsp;архитектура", 	"arch", 		4,	'' ],
	[ "po/gis.html", 				"Геоинформационные&nbsp;системы", 	"gis", 			4,	'' ],
	[ "po/doc.html", 				"Документооборот", 			  		"doc", 			4,	'' ],
	[ "po/viz.html", 				"Визуализация", 			  		"viz", 			4,	'' ],
	[ "freeware.html", 		"Downloads", 			  			"freeware", 	4,	'' ],
	[ "", 								"&nbsp;", 								"nbsp", 0,  '' ],
    [ "equipment/eq.html", 		"<B>АППАРАТНОЕ&nbsp;ОБЕСПЕЧЕНИЕ</B><br>", 	  		  "eq", 	0,	'' ],
	[ "equipment/rowe.html",    "Репрокомплексы", 			  "rowe", 			    4,	'' ],
	[ "equipment/scaners.html", 	  "Сканеры", 	 				  "scaners", 			4,	'' ],
	[ "equipment/work_station.html", 	              "Рабочие станции", 	  "hp",	                4,	'' ],
	[ "equipment/ups1.html", 	  "Источники питания", 	 				  "ups", 			4,	'' ],
	[ "equipment/frezer.html", 		"Гравиров.-фрез. станки", "frezer",     		4,	'' ],
	[ "equipment/3d_man.html", 		"3D-манипуляторы",            "cadman", 			4,	'' ],
	[ "equipment/cd_lib.html", 		"CD-DVD библиотеки", 		  "cd_lib", 			4,	'' ],
	[ "", 								"&nbsp;", 		   		"nbsp", 				0, '' ],
	[ "", 			    "<B>УСЛУГИ</B>", 	    		  "", 	  		    0,	'000000' ],
	[ "copy_center.html", 	"Копи-центр", 			  "copyc", 		4,	'' ],
	[ "learn/learn.html",		"Учебный центр", 		  	      "learn", 			4,	'' ],
	[ "", 								"&nbsp;", 								"nbsp", 				0, '' ],
	[ "",         "<B>О НАС</B>", 	    		  "", 	  		    0,	'' ],
	[ "about_k.html", 		"О компании", 		  	    "about_company", 			4,	'' ],
	[ "partners.html", 		"Партнеры", 	   			"partners", 			4,	'' ],
	[ "contact.html", 		"Контактные лица", 	        "contact", 			4,	'' ],
	[ "vakansii.html", 		"Вакансии", 	        "vakansii", 			4,	'' ],
	[ "proezd.html", 		    "Как нас найти", 	        "proezd", 			4,	'' ],
	[ "", 							"&nbsp;", 								"nbsp", 				0, '' ],
	[ "../forum/index.php",         "<B>ФОРУМ</B>", 	    		  "", 	  		    0,	'' ],
	[ "price.html",         "<B>ЦЕНЫ</B>", 	    		  "", 	  		    0,	'' ],
	[ "site_carta.html",         "<B>КАРТА САЙТА</B>", 	    		  "", 	  		    0,	'' ]
	
]


function AddMenu( level, id )
{
	for( i=0; i<archmenu.length; i++ )
	{
		if(archmenu[i][2] == id)
		{
			 str = '<div align="left" class="menuitem1" style="color:#cc0000">';
			 archmenu[i][0]="";
			 archmenu[i][4]="";
		}
		else
		{
			str = '<div align="left" class="menuitem1">';
		}
		if(archmenu[i][3]!=0)
		{
			for( k=0; k<archmenu[i][3]; k++ )
			{
				str = str + "&nbsp;";
			}
		}
		if( archmenu[i][0] != "" )
		{
			str = str + '<a href="/infot/';
			str = str + archmenu[i][0] + '" class="Article">';
			if(archmenu[i][4]!="")
			{
				str = str + '<font face="" color="' + archmenu[i][4] + '">' + archmenu[i][1] + '</font></a></div>';
			}
			else
			{
				str = str + archmenu[i][1] + '</a></div>';
			}
		}
		else
		{
			if(archmenu[i][4]!="")
			{
				str = str + '<font face="" color="' + archmenu[i][4] + '">' + archmenu[i][1] + '</font></div>';
			}
			else
			{
				str = str + archmenu[i][1] + '</div>';
			}
		}
		document.write( str );
	}
}

