

browser_name = navigator.appName;
browser_version = parseFloat(navigator.appVersion);
if (browser_name == "Netscape" && browser_version >= 3.0) { roll = 'true'; }
else if (browser_name == "Microsoft Internet Explorer" && browser_version >= 3.0) {
     roll = 'true'; }
else { roll = 'false'; }
function over(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
function out(img,ref) { if (roll == 'true') { document.images[img].src = ref; } }
if (roll == 'true') {
    menu_catalog    = new Image; menu_catalog.src    = "images/menu/catalog_over.gif";
    menu_contact    = new Image; menu_contact.src    = "images/menu/contact_over.gif";
    menu_forum      = new Image; menu_forum.src      = "images/menu/forum_over.gif";
    menu_magazin    = new Image; menu_magazin.src    = "images/menu/magazin_over.gif";
    menu_news       = new Image; menu_news.src       = "images/menu/news_over.gif";
    menu_partners   = new Image; menu_partners.src   = "images/menu/partners_over.gif";
    menu_support    = new Image; menu_support.src    = "images/menu/support_over.gif";
}


function bookmarksite(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;
 
  //Gecko
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel ("AllCCTV.com.ua - Всеукраинский портал по системам безопасности", "http://www.allcctv.com.ua", "");
  //IE4+
  else if (typeof window.external == "object") window.external.AddFavorite("http://www.allcctv.com.ua", "AllCCTV.com.ua - Всеукраинский портал по системам безопасности");
  //Opera7+
  else if (window.opera && document.createElement)
  {
    var a = document.createElement('A');
    if (!a) return false; //IF Opera 6
    a.setAttribute('rel','sidebar');
    a.setAttribute('href',url);
    a.setAttribute('title',title);
    a.click();
  }
  else return false;

}

