﻿version = navigator.appVersion.toLowerCase();
agent = navigator.userAgent.toLowerCase();
ie = (version.indexOf('msie')>-1);
ie50 = (version.indexOf('msie 5.0')>-1);
win = (version.indexOf('windows')>-1);
opera = (agent.indexOf('opera')>-1);

function prn(text) {
document.write(' ~ \074a href=\"javascript:goprn();\"\076'+text+'\074/a\076');
}
function goprn() {
window.print();
}
function fav(text) {
if ((opera) && (win)) return false;
else if ((ie) && (win)) document.write(' ~ \074a href=\"javascript:gofav();\"\076'+text+'\074/a\076');
}
function gofav() {
window.external.addFavorite('http://www.pametihodnosti.cz/','Pamětihodnosti.cz - památky Čech, Moravy a Slezska');
}

/* Copyright (c) 2001-2005, Pavel Kout [WEBface - www.webface.cz]; e-mail: pavel.kout@webface.cz */

startList = function() {
if ((ie50) && (win)) return false;
else if (document.all&&document.getElementById) {
navRoot = document.getElementById("dropdown");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
