sfHover = function() {
	var sfEls = document.getElementById("cssmenu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; ++i) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
function ustaw(s){
		if (s == '') {s = "http://www.vega-xp.com";}
		if(frames){if(top.frames.length>0)top.location = s;}
		window.location = s;
}
function trans(l1, l2) {
l1 = document.getElementById(l1).value;
if (l1 == "" || l2 =="" || l1 == l2) return;
document.getElementById("strona").value = location.href;
document.getElementById("langpair").value = l1 + "|" + l2;
document.trans.submit();
}
function bookmark(){
    var title="vega-xp.com"
    var url="http://www.vega-xp.com/"

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }
    else if( document.all ) window.external.AddFavorite( url, title);
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
