
function nav_menu(act_cat){
		var_home=""; var_firma=""; var_produkty=""; var_realizacje=""; var_aktualnosci=""; var_kontakt="";
		
		eval("var_"+ act_cat +"=\"_s\"");
		
		document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"760\">");
		document.writeln("<tr valign=\"center\">");
		document.writeln("<td width=\"294\" align=\"right\"><a href=\"index.html\" class=\"menu"+ var_home +"\">PAGINA PRINCIPALA</a></td>");
		document.writeln("<td width=\"20\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("<td width=\"17\" align=\"left\"><img src=\"images/dot-red.gif\" width=\"17\" height=\"17\" alt=\"*\"></td>");
		document.writeln("<td width=\"60\" align=\"left\"><a href=\"firma.html\" class=\"menu"+ var_firma +"\">FIRMĂ</a></td>");
		document.writeln("<td width=\"10\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("<td width=\"17\" align=\"left\"><img src=\"images/dot-red.gif\" width=\"17\" height=\"17\" alt=\"*\"></td>");
		document.writeln("<td width=\"80\" align=\"left\"><a href=\"produkty.html\" class=\"menu"+ var_produkty +"\">PRODUSE</a></td>");
		document.writeln("<td width=\"10\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("<td width=\"17\" align=\"left\"><img src=\"images/dot-red.gif\" width=\"17\" height=\"17\" alt=\"*\"></td>");
		document.writeln("<td width=\"90\" align=\"left\"><a href=\"realizacje.html\" class=\"menu"+ var_realizacje +"\">REALIZĂRI</a></td>");
		document.writeln("<td width=\"10\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("<td width=\"17\" align=\"left\"><img src=\"images/dot-red.gif\" width=\"17\" height=\"17\" alt=\"*\"></td>");
		document.writeln("<td width=\"45\" align=\"right\"><a href=\"kontakt.html\" class=\"menu"+ var_kontakt +"\">CONTACTE</a></td>");
		document.writeln("</tr>");
		document.writeln("</table>");
}

top_num=0;

function page_gen(){
	a=page_gen.arguments; if(a.length>0){
	
	if(a[0]==1){
		//	page_gen(a0,a1)
		//	a0 - typ = 1
		//	a1 - nazwa nad kreska
		
		top_num++;

//		document.write("<span></span><br>");
		document.write("<table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">");
		document.writeln("	<tr valign=\"bottom\">");
		document.write("<td width=\"538\" class=\"pageSubHeadline\">"+ a[1] +"</td>");
		document.write("<td width=\"12\" align=\"left\"><script language=\"javascript1.2\">");
		document.writeln("	<!--");
		document.writeln("		hover_img(\"#top\",\"item_"+ top_num +"\",\"images/arrow_t\",\"gif\", 12, 12, \"Top\");");
		document.writeln("	//-->");
		document.writeln("	</script>");
		document.write("</td>");
		document.write("</tr>");
		document.write("<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"4\" alt=\"\"></td></tr>");
		document.writeln("	<tr><td width=\"550\" class=\"line00\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"1\" alt=\"\"></td></tr>");
		document.writeln("	<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"2\" alt=\"\"></td></tr>");
		document.writeln("</table>");
	}
	
	if(a[0]==2){
		//	page_gen(a0,a1,a2,a3,a4)
		//	a0 - typ = 2
		//	a1 - nazwa nad kreska
		//	a2 - nazwa pod kreska
		//	a3 - numer dla hovera (kolejne)
		//	a4 - dodac odstep = 1
		
		document.writeln("<table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr>");
		document.writeln("	<td width=\"538\" class=\"pageSubHeadline\">"+ a[1] +"</td>");
		document.writeln("	<td width=\"12\" align=\"right\"><script language=\"javascript1.2\">");
		document.writeln("	<!--");
		document.writeln("		hover_img(\"#top\",\"item_"+ a[3] +"\",\"images/arrow_t\",\"gif\", 12, 12, \"Top\");");
		document.writeln("	//-->");
		document.writeln("	</script>");
		document.write("</td>");
		document.writeln("</tr><tr>");
		document.writeln("	<td width=\"538\"><img src=\"images/pix.gif\" width=\"533\" height=\"5\" alt=\"\"></td>");
		document.writeln("	<td width=\"12\"><img src=\"images/pix.gif\" width=\"12\" height=\"1\" alt=\"\"></td>");
		document.writeln("	");
		document.writeln("</tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\" class=\"line00\"><img src=\"images/pix.gif\" width=\"550\" height=\"1\" alt=\"\"></td></tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"2\" alt=\"\"></td></tr>");
		document.writeln("<tr>");
		document.writeln("	<td width=\"538\" class=\"sTxt2\">"+ a[2] +"</td>");
		document.writeln("	<td width=\"12\"><img src=\"images/pix.gif\" width=\"12\" height=\"1\" alt=\"\"></td>");
		document.writeln("	");
		document.writeln("</tr></table>");
		
		if(a[4]==1) document.writeln("<br>&nbsp;<br>");
	}
	
	if(a[0]==3){
		//	page_gen(a0,a1,a2,a3,a4,a5,a6)
		//	a0 - typ = 2
		//	a1 - nazwa nad kreska
		//	a2 - nazwa pod kreska
		//	a3 - numer dla hovera (kolejne)
		//	a4 - ma byc napis zdjecia = 1
		//	a5 - ma byc strzalka more = 1
		//	a6 - page_name
		
		if(a[2]=="") a[2]="&nbsp;";
		
		document.writeln("<a name=\""+ a[6] +"\"></a><table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr>");
		document.writeln("	<td width=\"467\" class=\"pageSubHeadline\">"+ a[1] +"</td>");
		document.writeln("	<td width=\"83\" align=\"right\" valign=\"bottom\"><script language=\"javascript1.2\">");
		document.writeln("	<!--");
		document.writeln("		hover_img(\"#top\",\"item_r_"+ a[3] +"\",\"images/arrow_t\",\"gif\", 12, 12, \"Top\");");
		document.writeln("	//-->");
		document.writeln("	</script>");
		document.write("</td>");
		document.writeln("</tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"5\" height=\"5\" alt=\"\"></td></tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\" class=\"line00\"><img src=\"images/pix.gif\" width=\"550\" height=\"1\" alt=\"\"></td></tr>");
//		document.writeln("<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"5\" alt=\"\"></td></tr>");
//		document.writeln("<tr>");
//		document.writeln("	<td width=\"467\" class=\"sTxt2\">"+ a[2] +"</td>");
//		document.writeln("	<td width=\"83\" align=\"right\">");
//		document.write("<script language=\"javascript1.2\">");
//		document.writeln("	<!--");
//		
//		win_open="javascript:;\\\" onClick=\\\" window.open('/galeria.html?artid="+ a[6] +"&n=0','"+ a[6] +"','status=yes,width=650,height=520');";
//		if(a[4]==1) document.writeln("		hover_img(\""+ win_open +"\",\"item_p_"+ a[3] +"\",\"images/ro/img/more-photo\",\"gif\", 71, 12, \"More photos...\");");
//		if(a[5]==1) document.writeln("		hover_img(\""+ win_open +"\",\"item_m_"+ a[3] +"\",\"images/arrow\",\"gif\", 12, 12, \"More photos...\");");
//		
//		document.writeln("	//-->");
//		document.writeln("	</script>");
//		
//		if(a[4]!=1 && a[5]!=1){ document.writeln("&nbsp;");}
//		
//		document.write("</td>");
//		document.writeln("</tr></table><br>");
                document.writeln("</table>");

                if(a[4]==1 || a[5]==1){
			document.writeln("<table align=\"right\" border=0 width=142 cellpadding=0 cellspacing=0>");
			document.writeln("	<tr><td width=\"142\"><img src=\"images/pix.gif\" width=\"142\" height=\"5\" alt=\"\"></td></tr>");
			document.writeln("	<tr><td width=\"142\" align=\"right\">");
			document.write("<script language=\"javascript1.2\">");
			document.writeln("	<!--");

			win_open="javascript:;\\\" onClick=\\\" window.open('gallery/galeria"+a[6] +".html','"+ a[6] +"','status=yes,width=650,height=520');";
			if(a[4]==1) document.writeln("		hover_img(\""+ win_open +"\",\"item_p_"+ a[3] +"\",\"images/ro/img/more-photo\",\"gif\", 120, 12, \"Mai multe fotografii...\");");
			if(a[5]==1) document.writeln("		hover_img(\""+ win_open +"\",\"item_m_"+ a[3] +"\",\"images/arrow\",\"gif\", 12, 12, \"Mai multe fotografii...\");");

			document.writeln("	//-->");
			document.writeln("	</script>");
			document.writeln("	</td>");
			document.writeln("</tr></table>");

                };
		
	}
	
	if(a[0]==4){
		//	a0 = 4
		//	a1 - nad kreska napis z lewej
		//	a2 - pod kreska napis z lewej
		//	a3 - pod kreska mail (z prawej)
		//	a4 - nad kreska napis z prawej
		document.write("<table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr valign=\"bottom\">");
		document.writeln("	<td width=\"340\" class=\"pName\">"+ a[1] +"</td>");
		document.writeln("	<td width=\"210\" class=\"sTxt2\" align=\"right\">"+ a[4] +"</td>");
		document.writeln("	");
		document.writeln("</tr><tr>");
		document.writeln("	<td width=\"340\"><img src=\"images/pix.gif\" width=\"30\" height=\"5\" alt=\"\"></td>");
		document.writeln("	<td width=\"210\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("	");
		document.writeln("</tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\" class=\"line00\"><img src=\"images/pix.gif\" width=\"550\" height=\"1\" alt=\"\"></td></tr>");
		document.writeln("<tr><td width=\"550\" colspan=\"2\"><img src=\"images/pix.gif\" width=\"550\" height=\"2\" alt=\"\"></td></tr>");
		document.writeln("<tr valign=\"top\">");
		document.writeln("	<td width=\"340\" class=\"sTxt3\">"+ a[2] +"</td>");
		document.writeln("	<td width=\"210\" class=\"sTxt4\" align=\"right\" nowrap>");
		if(a[3]!="") document.write("e-mail:");
		document.write("&nbsp;");
		if(a[3]!="") document.write("<a href=\"mailto:"+ a[3] +"\">"+ a[3] +"</a>");
		document.write("</td>");
		document.writeln("	");
		document.writeln("</tr></table>");
		
		if(a[5]==1) document.writeln("<br><img src=\"images/pix.gif\" width=\"1\" height=\"20\" alt=\"\"><br>");
		
	}
	
	
	if(a[0]==5){
		//	a0 = 5
		//	a1 - napis na belce
		//	a2 - kotwica
		//	a3 - strona
		document.write("<table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr>");
		document.writeln("	<td width=\"10\" class=\"contact\"><img src=\"images/pix.gif\" width=\"10\" height=\"20\" alt=\"\"></td>");
		document.writeln("	<td width=\"465\" class=\"contact\"><a href=\""+ a[3] +"#"+ a[2] +"\" onMouseover=\"javascript: s_roll_on('go_"+ a[2] +"','images/arrow_f2.gif');\" onMouseOut=\"javascript: s_roll_off();\">"+ a[1] +"</a></td>");
		document.writeln("	<td width=\"53\" class=\"contact\"><img src=\"images/pix.gif\" width=\"53\" height=\"5\" alt=\"\"></td>");
		document.writeln("	<td width=\"12\" class=\"contact\" align=\"right\"><script language=\"javascript1.2\">");
		document.writeln("	<!--");
		document.writeln("		hover_img(\""+ a[3] +"#"+ a[2] +"\",\"go_"+ a[2] +"\",\"images/arrow\",\"gif\", 12, 12, \""+ a[1] +"\");");
		document.writeln("	//-->");
		document.writeln("	</script>");
		document.write("</td>");
		document.writeln("	<td width=\"10\" class=\"contact\"><img src=\"images/pix.gif\" width=\"10\" height=\"5\" alt=\"\"></td>");
		document.writeln("</tr><tr>");
		document.writeln("	<td width=\"10\" class=\"line00\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"465\" class=\"line00\"><img src=\"images/pix.gif\" width=\"465\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"53\" class=\"line00\"><img src=\"images/pix.gif\" width=\"53\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"12\" class=\"line00\" align=\"right\"><img src=\"images/pix.gif\" width=\"12\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"10\" class=\"line00\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("</tr></table>");
		document.writeln("<br><img src=\"images/pix.gif\" width=\"1\" height=\"10\" alt=\"\"><br>");
		
	}


	if(a[0]==6){
		//	a0 = 5
		//	a1 - napis na belce

		top_num++;
		document.write("<table width=\"550\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr>");
		document.writeln("	<td width=\"10\" class=\"contact\"><img src=\"images/pix.gif\" width=\"10\" height=\"20\" alt=\"\"></td>");
		document.writeln("	<td width=\"465\" class=\"contact\">"+ a[1] +"</td>");
		document.writeln("	<td width=\"53\" class=\"contact\"><img src=\"images/pix.gif\" width=\"53\" height=\"5\" alt=\"\"></td>");
		document.writeln("	<td width=\"12\" class=\"contact\" align=\"right\"><script language=\"javascript1.2\">");
		document.writeln("	<!--");
		document.writeln("		hover_img(\"#top\",\"go_"+ top_num +"\",\"images/arrow_t\",\"gif\", 12, 12, \"Top`\");");
		document.writeln("	//-->");
		document.writeln("	</script>");
		document.write("</td>");
		document.writeln("	<td width=\"10\" class=\"contact\"><img src=\"images/pix.gif\" width=\"10\" height=\"5\" alt=\"\"></td>");
		document.writeln("</tr><tr>");
		document.writeln("	<td width=\"10\" class=\"line00\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"465\" class=\"line00\"><img src=\"images/pix.gif\" width=\"465\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"53\" class=\"line00\"><img src=\"images/pix.gif\" width=\"53\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"12\" class=\"line00\" align=\"right\"><img src=\"images/pix.gif\" width=\"12\" height=\"1\" alt=\"\"></td>");
		document.writeln("	<td width=\"10\" class=\"line00\"><img src=\"images/pix.gif\" width=\"10\" height=\"1\" alt=\"\"></td>");
		document.writeln("</tr></table>");
		document.writeln("<br><img src=\"images/pix.gif\" width=\"1\" height=\"10\" alt=\"\"><br>");
		
	}

	
	}
}

