jsHover = function(id, tag) {
var hEls = document.getElementById(id).getElementsByTagName(tag);
for (var i=0, len=hEls.length; i<len; i++) {
hEls[i].onmouseover=function() { this.className+=" jshover"; }
hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
}
}
function menu() { // run only for IE6
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) 
jsHover("menu", "li");
}

function add_favorite(a) {
title=document.title;
url=document.location;
try {
// Internet Explorer
window.external.AddFavorite(url, title);
}
catch (e) {
try {
// Mozilla
window.sidebar.addPanel(title, url, "");
}
catch (e) {
// Opera
if (typeof(opera)=="object") {
a.rel="sidebar";
a.title=title;
a.url=url;
return true;
}
else {
// Unknown
alert('Нажмите Ctrl+D чтобы добавить страницу в закладки');
}
}
}
return false;
}
