function favorite(){
        { if (navigator.appName=="Netscape") {
              alert("Ваш броузер не поддерживает эту функцию, нажмите 'Ctrl+D'"); }
              else { window.external.AddFavorite('http://zapmet.ru','Западная Металлобаза');
              }
      }
}


var popupWindow = null;

function popup(url,width,height) {

 if(popupWindow!=null)
  {
  if (typeof(popupWindow) == "object")
   popupWindow.close();
//   popupWindow = null;
  }
        var width=width;
        var height=height;
        var top  = (screen.height - height) / 2;
        var left = (screen.width  - width)  / 2;
        $popup='popup'+width+'x'+height;
    popupWindow = window.open(url,$popup,'toolbar=no,menubar=no,scrollbars=no,resize=no,titlebar=no,resizable=no,width='+width+',height='+height+',top='+top+',left='+left+'');
        popupWindow.focus();
}

function popup_email(width,height) {

 if(popupWindow!=null)
  {
  if (typeof(popupWindow) == "object")
   popupWindow.close();
//   popupWindow = null;
  }
        var width=width;
        var height=height;
        var top  = (screen.height - height) / 2;
        var left = (screen.width  - width)  / 2;
        $popup='popup'+width+'x'+height;
    popupWindow = window.open('/tpl/email.php',$popup,'toolbar=no,menubar=no,scrollbars=yes,resize=no,titlebar=no,resizable=no,width='+width+',height='+height+',top='+top+',left='+left+'');
        popupWindow.focus();
}


im_start0 = new Image();
im_about0 = new Image();
im_news0 = new Image();
im_service0 = new Image();
im_base0 = new Image();
im_price0 = new Image();
im_gost0 = new Image();
im_realty0 = new Image();
im_contacts0 = new Image();

im_start0.src = "/img/menu_start_act.jpg";
im_about0.src = "/img/menu_about_act.jpg";
im_news0.src = "/img/menu_news_act.jpg";
im_service0.src = "/img/menu_service_act.jpg";
im_base0.src = "/img/menu_base_act.jpg";
im_price0.src = "/img/menu_price_act.jpg";
im_gost0.src = "/img/menu_gost_act.jpg";
im_realty0.src = "/img/menu_realty_act.jpg";
im_contacts0.src = "/img/menu_contacts_act.jpg";

im_start = new Image();
im_about = new Image();
im_news = new Image();
im_service = new Image();
im_base = new Image();
im_price = new Image();
im_gost = new Image();
im_realty = new Image();
im_contacts = new Image();

im_start.src = "/img/menu_start.jpg";
im_about.src = "/img/menu_about.jpg";
im_news.src = "/img/menu_news.jpg";
im_service.src = "/img/menu_service.jpg";
im_base.src = "/img/menu_base.jpg";
im_price.src = "/img/menu_price.jpg";
im_gost.src = "/img/menu_gost.jpg";
im_realty.src = "/img/menu_realty.jpg";
im_contacts.src = "/img/menu_contacts.jpg";
