//
// mainMenu
//   iBASe_referencje
//   iBASe_wspolpraca
//     iBASe_sem
//     iBASe_sem_prog
//     iBASe_sem_model
//     iBASe_sem_relacja
//
// aut_przem
//  oferta_h
//  oferta_u
//  qnx
//  wdrozenia
//  referencje
//  publikacje
//
// dystrybucja
//

function makeMenu( active ){
	pnt_ys = "&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0>";
	pnt_rs = "&nbsp;<img src='img/pnt-rs.gif' width=11 height=10 border=0>";
	br_pnt_ys = "<br>" + pnt_ys;
	sp_br_pnt_rs = "<br>&nbsp;&nbsp;&nbsp;" + pnt_rs;
	spc6 = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	pnt_cs = "<img src='img/pnt-cs.gif' width=11 height=10 border=0>";
	spc6_pnt_cs = spc6 + pnt_cs;
	submenu="";
	iBASe_submenu="";
	if( active=="aut_przem" || active=="oferta_h" || active=="oferta_u" || active=="qnx" || active=="wdrozenia" || active=="referencje" || active=="publikacje" )
		submenu="aut_przem";

	if( active=="iBASe_sem" || active=="iBASe_sem_prog" || active=="iBASe_sem_model" || active=="iBASe_sem_relacja" )
		iBASe_submenu = "sem";
	if( active=="iBASe_idx" || active=="iBASe_referencje" || active=="iBASe_wspolpraca" || iBASe_submenu=="sem" )
		submenu="iBASe";

	menu = "<span style='font-size:9pt'>";

//
// iBASe
//
	
	if( submenu=="iBASe" ){
		menu += "<span style='color:Blue'><b>Automatyka Budynków</b></span>";
		menu += br_pnt_ys ;
		menu += "<a href='http://www.iBASe.com.pl/'><b>LonWorks i iBASe</b></a>";
		menu += br_pnt_ys ;
		if( active=="iBASe_referencje" )	menu += "<b><span style='color:blue;'>Referencje</span></b>";
		else								menu += "<a href='iBASe-referencje.html'><b>Referencje</b></a>";
		menu += br_pnt_ys ;
		if( active=="iBASe_wspolpraca" )	menu += "<b><span style='color:blue;'>Oferta współpracy</span></b>";
		else								menu += "<a href='iBASe-wspolpraca.html'><b>Oferta współpracy</b></a>";
//		menu += br_pnt_ys ;
//		if( iBASe_submenu=="sem" ){			menu += "<b><span style='color:blue;'>Seminarium</span></b><br>";
//			if( active=="iBASe_sem" )			menu += spc6_pnt_cs + "<span style='color:Blue'><b>Open Systems 2000</b></span><br>";
//			else								menu += spc6_pnt_cs + "<a href='seminarium.html'>Open Systems 2000</a><br>";
//			if( active=="iBASe_sem_prog" )		menu += spc6_pnt_cs + "<span style='color:Blue'><b>Program seminarium</b></span><br>";
//			else								menu += spc6_pnt_cs + "<a href='sem_program.html'>Program seminarium</a><br>";
//			if( active=="iBASe_sem_model" )		menu += spc6_pnt_cs + "<span style='color:Blue'><b>Model Demo</b></span><br>";
//			else								menu += spc6_pnt_cs + "<a href='sem_model.html'>Model Demo</a><br>";
//			if( active=="iBASe_sem_relacja" )	menu += spc6_pnt_cs + "<span style='color:Blue'><b>Relacja</b></span>";
//			else								menu += spc6_pnt_cs + "<a href='sem_sprawozd.html'>Relacja</a>";
//		} else {
//			menu += "<a href='seminarium.html'><b>Seminarium</b></a>";
//		}
	} else {
		menu += "<a href='/'><b>Automatyka Budynków</b></a>";
		menu += br_pnt_ys + "<a href='http://www.iBASe.com.pl/'>LonWorks i iBASe</a>";
		menu += br_pnt_ys + "<a href='iBASe-referencje.html'><b>Referencje</b></a>";
		menu += br_pnt_ys + "<a href='iBASe-wspolpraca.html'><b>Oferta współpracy</b></a>";
//		menu += br_pnt_ys + "<a href='seminarium.html'><b>Seminarium</b></a>";
	}
//	menu += br_pnt_ys + "<a href='OS-2002-iLon.html' style='font-weight: bold; color: Red'>Szkolenie nt. iLON</a>";
	menu += br_pnt_ys + "<b style='color: #a00000'>Dystrybucja</b>";
	menu += sp_br_pnt_rs + "<a href='LonWorksResale.html'><img src='img/EchelonLogo.gif' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='SysmikResale.html'><img src='img/sysmik/slogo.gif' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='CapelonResale.html'><img src='img/capelon/slogo.gif' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='CetelabResale.html'><img src='img/cetelab/slogo.gif' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='BTRResale.html'><img src='img/btr/slogo.png' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='LoytecResale.html'><img src='img/loytec/slogo.png' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='NL220TE.html'><img src='img/newron/slogo.png' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "&nbsp;<a href='ARCInfoResale.html'><img src='img/arc/sPcVue.png' border=0 align='absmiddle'><img src='img/arc/slogo.png' border=0 align='absmiddle'></a>";
	menu += sp_br_pnt_rs + "<a href='http://www.iBASe.com.pl/index.html#Lista'><img src='http://www.iBASe.com.pl/img/iBASe_slogo.png' border=0 align=absmiddle></a>";
	menu += br_pnt_ys + "<a href='http://www.plug.org.pl/' target='_blank' style='color: #a00000; font-weight: 900; font-stretch : wider;'>PLUG <img src='img/PlugLogoSmall.gif' border=0 align='absmiddle' hspace=15></a>";

	menu += "<br><br>";

//
// automatyka przemysłowa
//

	if( submenu=="aut_przem" ){
		menu += "<b><span style='color:Blue'>Automatyka przemysłowa</span></b>";
		menu += br_pnt_ys ;
		if( active=="oferta_h" )	menu += "<b><span style='color:blue;'>Oferta handlowa</span></b>" ;
		else						menu += "<a href='oferta_h.html'>Oferta handlowa</a>" ;
		menu += br_pnt_ys ;
		if( active=="oferta_u" )	menu += "<b><span style='color:blue;'>Oferta usług</span></b>" ;
		else						menu += "<a href='oferta_u.html'>Oferta usług</a>" ;
		menu += br_pnt_ys ;
		if( active=="qnx" )			menu += "<b><span style='color:blue;'>QNX</span></b>" ;
		else						menu += "<a href='qnx.html'>QNX</a>" ;
		menu += br_pnt_ys ;
		if( active=="wdrozenia" )	menu += "<b><span style='color:blue;'>Przykłady wdrożeń</span></b>" ;
		else						menu += "<a href='wdrozenia.html'>Przykłady wdrożeń</a>" ;
		menu += br_pnt_ys ;
		if( active=="referencje" )	menu += "<b><span style='color:blue;'>Referencje</span></b>" ;
		else						menu += "<a href='referencje.html'>Referencje</a>" ;
		menu += br_pnt_ys ;
		if( active=="publikacje" )	menu += "<b><span style='color:blue;'>Publikacje</span></b>" ;
		else						menu += "<a href='publikacje.html'>Publikacje</a>" ;
	} else {
		menu += "<b><a href='index2.html'>Automatyka przemysłowa</a></b>";
		menu += br_pnt_ys + "Oferta handlowa";
		menu += br_pnt_ys + "Oferta usług";
		menu += br_pnt_ys + "QNX";
		menu += br_pnt_ys + "Przykłady wdrożeń";
		menu += br_pnt_ys + "Referencje";
		menu += br_pnt_ys + "Publikacje";
	}

	menu += "<br><br>";

//
// dystrybucja
//

/*
	if( active=="dystrybucja" )
		menu += "<b><span style='color:Blue;'>Dystrybucja</span></b><br>";
	else
		menu += "<b><a href='dystrybucja.html'>Dystrybucja</a></b><br>";

menu += "\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> Advantech<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> Ampro<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> M-Systems<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> MOXA<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> Hilo<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> Walizki z ABS dla przemysłu<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> Komputery PC dla przemysłu<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> QNX RTOS<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> InTouch Wonderware<br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='LonWorksResale.html'><img src='img/EchelonLogo.gif' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='SysmikResale.html'><img src='img/sysmik/slogo.gif' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='CapelonResale.html'><img src='img/capelon/slogo.gif' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='CetelabResale.html'><img src='img/cetelab/slogo.gif' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='BTRResale.html'><img src='img/btr/slogo.png' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='LoytecResale.html'><img src='img/loytec/slogo.png' border=0 align='absmiddle'></a><br>\
&nbsp;<img src='img/pnt-ys.gif' width=11 height=10 border=0> <a href='http://www.iBASe.com.pl/index.html#Lista'><img src='http://www.iBASe.com.pl/img/iBASe_slogo.png' border=0 align=absmiddle></a>\
<br><br>";
*/

//
// footer
//

	menu += 
"<a href='info.html'><b>O firmie</b></a>\
<br><br>\
<a href='mailto:office@zdania.com.pl' title='office@zdania.com.pl'><b>Kontakt</b></a><br>\
<br style='font-size: 16pt;'></span>";

	document.write( menu );
}

function LonWorksReg(){
	document.write( "<span style='font-variant: small-caps;'>LonWorks</span><span style='vertical-align: super; font-size: 60%;'>&reg;</span>" );
}

function iLonTm(){
	document.write( "<span style='font-style: italic; font-weight: bold; font-family: Serif;'>i</span>.<b>LON&#153;</b>" );
}


