function genIcons(info_name, google, map_name) {

	document.write("<div id=\"icons\">");
	document.write("<table border=\"0\" cellspacing=\"4\" cellpadding=\"0\">");
	document.write("<tr><td colspan=\"2\" height=\"50\">");
	document.write("<a target=\"_blank\" class=\"icon_text\" href=\"http://www.google.com/search?ie=UTF-8&hl=en&lr=lang_en&q='" + google + "'\">find in internet</a>");
//	document.write("<a target=\"_blank\" class=\"icon_text\" href=\"http://www.ubytovani.cz/accommodation/index.php?partner=9\">accommodation on-line</a>");
	document.write("</td></tr>");
	document.write("<tr><td>");

	if (map_name) document.write("<a href=\"../../map/show_loc.htm?en," + map_name + "\"><img src=\"../bg/icons/map_on.gif\"></a>");
	else document.write("<img src=\"../bg/icons/map_off.gif\">");

	document.write("</td><td>");

//	if (info_name) document.write("<a href=\"javascript: openInfo('" + info_name + "');\"><img src=\"../bg/icons/info_on.gif\"></a>");
	if (isInfo()) document.write("<a href=\"javascript: openInfo('" + infoFile + "');\"><img src=\"../bg/icons/info_on.gif\"></a>");
	else document.write("<img src=\"../bg/icons/info_off.gif\">");

	document.write("</td></tr></table>");
	document.write("</div>");

}

// infocentres
var thisFile = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
thisFile = thisFile.substr(0, thisFile.indexOf("."));
var infoFile;

function isInfo () {
	if (inf[thisFile]) {
		infoFile = inf[thisFile];
		return true;
	 }
	 else return false;
}

var inf = new Array();
inf["bechyne"] = "tabor";
inf["blatna"] = "strakoni";
inf["breznice"] = "pribram";
inf["ck"] = "ck";
inf["clhota"] = "jhradec";
inf["dacice"] = "dacice";
inf["hluboka"] = "hluboka";
inf["horazdov"] = "horazdov";
inf["jhradec"] = "jhradec";
inf["kratoch"] = "prachat";
inf["lnare"] = "horazdov";
inf["orlik"] = "milevsko";
inf["telc"] = "telc";
inf["trebon"] = "trebon";
inf["vimperk"] = "vimperk";
inf["zirovnic"] = "pelhrim";
