function AddFavorite() {
  if(/MSIE/.test(navigator.userAgent)) {
    window.external.AddFavorite(document.location.href,document.title);
    return false;
  }
  else if(/Mozilla/.test(navigator.userAgent)){
    if (typeof window.sidebar == "object")
      window.sidebar.addPanel (document.title, document.location.href, "");
    return false;
  }
  else if(/Opera/.test(navigator.userAgent)) {
    var a = document.createElement('A');
    if (!a) return false;
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',document.location.href);
    a.setAttribute('title',document.title);
    a.click();
    return true;
  }
  else
    return false;
}

function SetHome(o) {
  o.style.behavior='url(#default#homepage)';
  o.setHomePage('http://www.articles.kompass.ua');
  return false;
}

function setLanguage_static (f) {
var language, country, temp;
temp = f;
language = temp.substr(0,2);
if (temp.substr(2,1) == "-") country = temp.substr(3,2);
if (temp == 'ru') country = "ua";
document.cookie = "LANG" + "=" + escape(language) + '; path=/; domain=kompass.com;' ;
switch (country) {
 case "cz":
 case "fr":
 case "ru":
 window.location = "http://www.kompass." + country;
 break;
 default:
 window.location = "http://portal.kompass.com/kinl/" + language;
 break;
 return(true);
}}