var hmenu = new Array("../uvod/uvod.html","ÚVOD",
//	                 "../kola/kola.html","KOLA",
//	                 "../team/team.html","TEAM",
	                 "http://www.mapeicyklokankovsky.cz","TEAM",
	                 "../zavody/propozice.html","ZÁVODY",
	                 "../foto/tour_de_bier_podzim_2009.html","FOTOGALERIE",
	                 "../kontakty/kontakty.html","KONTAKTY");

var hpages=hmenu.length/2;

function h_menu(actualpage) {
	document.open();
	document.write("<div align=center>");
	document.write("<table width=795 border=0 cellpadding=0 cellspacing=0 align=center>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td bgcolor=white> </td>");
	document.write("	<td bgcolor=white> </td>");
	document.write("	<td bgcolor=#007ac0 width=5> </td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td><img src=\"../images/layout/2-2.gif\" width=172 height=61 border=0></td>");
	document.write("	<td background=\"../images/layout/2-3.gif\" align=right valign=bottom>");
	document.write("	<A HREF=\"http://www.olomouc.eu\" target='_blank'><img src=\"../images/loga/logo-mestoolomouc.jpg\" border=1 class=\"tblogo\" align=left style='margin-left:25px;'></A>");
	document.write("	<A HREF=\"http://www.kr-olomoucky.cz\" target='_blank'><img src=\"../images/loga/logo-olomouckykraj.jpg\" border=1 class=\"tblogo\"></A><br></td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td><img src=\"../images/layout/3-2.gif\" width=172 height=27 border=0></td>");
	document.write("	<td bgcolor=#007ac0>");
	document.write("		<div align=center>");
	document.write("		<table class=\"h-tab\" width=\"95%\" border=0 height=19 cellspacing=0 cellpadding=0>");
	document.write("		<tr>");

	for(var i=0; i<hpages; i++) {
   		document.write("			<td width=1 bgcolor=#ffffff></td>");
        if (i==actualpage) {
			document.write("			<td class=\"h-tabactive\" align=center>");
			document.write("				<span class='head0'>"+hmenu[2*i+1]+"</span>");
		} else {
			document.write("			<td class=\"h-tab\" align=center>");
			document.write("				<a class=\"head0\" onmouseover=\"this.className = 'head1';\" onmouseout=\"this.className = 'head0';\" href=\""+hmenu[2*i]+"\">"+hmenu[2*i+1]+"</a>");
	    }
		document.write("			</td>");
	}
	document.write("			<td width=1 bgcolor=#ffffff></td>");

	document.write("		</tr>");
	document.write("		</table>");
	document.write("		</div>");
	document.write("	</td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td><img src=\"../images/layout/4-2.gif\" width=172 height=20 border=0></td>");
	document.write("	<td><img src=\"../images/layout/4-3.gif\" width=613 height=20 border=0></td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("</table>");
}

function h_menuend() {
	document.write("<table width=795 border=0 cellpadding=0 cellspacing=0 align=center>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td colspan=2>");
	document.write("		<table width=\"100%\" border=0 cellspacing=0 cellpadding=0 bgcolor=black>");
	document.write("		<tr>");
	document.write("			<td valign=middle>");
	document.write("				<div class=\"txtir\">");
	document.write("				<img src=\"../images/layout/line.gif\" height=30 width=2 align=left border=0>Dukelská 3, 772 00 Olomouc<br>tel.: 776 359 678</div></td>");
	document.write("			<td valign=middle><span class=\"txtir\"><img src=\"../images/layout/line.gif\" height=30 width=2 align=left border=0>Chválkovická 44, 772 00 Olomouc<br>tel.: 608 888 521, fax: 585 396 836</span></td>");
	document.write("			<td><img src=\"../images/layout/6-3-1.gif\" width=203 height=57 border=0></td>");
	document.write("		</tr>");
	document.write("		</table>");
	document.write("	</td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</div>");
	document.close();
}

function z_menu(actualpage) {
	document.write("<table width=795 border=0 cellpadding=0 cellspacing=0 align=center>");
	document.write("<tr>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td bgcolor=#fdccac width=22> </td>");
	document.write("	<td bgcolor=#fdccac><csobj h=33 occur=24 t=\"Component\" w=\"763\" csref=\"../../web-data/Components/zav-menu.html\">");
	document.write("		<div align=center>");
	document.write("		<table class=\"z-tab\" width=\"95%\" border=0 cellspacing=0 cellpadding=2>");	
	document.write("		<tr>");
	
	for(var i=0; i<zpages; i++) {
        if (zmenu[2*i]!="") {
	        if (i==actualpage) {
				document.write("			<td class=\"z-tabactive\" align=center valign=center>");
				document.write("				<span class=\"z-head0\">"+zmenu[2*i+1]+"</span></div>");
			} else {
				document.write("			<td class=\"z-tab\" align=center valign=center>");
				document.write("				<a class=\"z-head0\" onmouseover=\"this.className = 'z-head1';\" onmouseout=\"this.className = 'z-head0';\" href=\""+zmenu[2*i]+"\">"+zmenu[2*i+1]+"</a></div>");
			}
        } else {
			document.write("			<td class=\"z-tab\" align=right valign=bottom>");
			document.write("				<span class=\"z-head\">"+zmenu[2*i+1]+" &nbsp;</span></div>");
        }
		document.write("			</td>");
	}
	document.write("		</tr>");
	document.write("		</table>");
	document.write("		</div>");
	document.write("	</csobj></td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("<tr height=387>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("	<td bgcolor=#fdccac width=22></td>");
	document.write("	<td  class=\"txpole\" align=center valign=top>");
}

function z_menuend() {
	document.write("	</td>");
	document.write("	<td bgcolor=#007ac0 width=5></td>");
	document.write("</tr>");
	document.write("</table>");
}

function s_menu(actualpage) {
	document.write("<TABLE class=\"txpole\" width=\"100%\">");
	document.write("<TR height=530>");
	document.write("	<TD width=200 class=\"s-tab\" valign=top align=center><BR>");
	document.write("		<table class=\"s-tab\" width=\"95%\" border=0 cellspacing=0 cellpadding=10>");

	for(var i=0; i<spages; i++) {
		document.write("		<tr>");
		document.write("			<td class=\"s-tab\" align=center valign=bottom>");
        if (i==actualpage)
			document.write("				<span class=\"s-head1\">"+smenu[2*i+1]+"</span></div>");
        else
			document.write("				<a class=\"s-head0\" onmouseover=\"this.className = 's-head1';\" onmouseout=\"this.className = 's-head0';\" href=\""+smenu[2*i]+"\">"+smenu[2*i+1]+"</a></div>");
		document.write("			</td>");
		document.write("		</tr>");
    }

	document.write("		</table>");
	document.write("	</TD>");
	document.write("	<TD valign=top>");
}

function s_menuend() {
	document.write("	<div align=center><a href=\"http://www.kocian.net\" target=_blank><img src=\"../images/loga/kocian.jpg\" height=65 border=0></a></div>");
	document.write("	</TD></TR>");
	document.write("</TABLE>");
}
