  function ieHomePage(url)
  {
    oHomePage.setHomePage(url);
    event.returnValue = false;
  }
//-----------------------------------------------------------------------------------------------------------------

  var s = navigator.userAgent.toLowerCase() ;
  var brsInfo =
  {
    IsIE    : /*@cc_on!@*/false,
    IsIE7   : /*@cc_on!@*/false && ( parseFloat( s.match( /msie ([\d|\.]+)/ )[1] ) >= 7 ),
    IsGecko : (s.indexOf('gecko/') > -1),
    IsSafari: (s.indexOf(' applewebkit/') > -1),
    IsOpera : !!window.opera,
    IsMac   : (s.indexOf('macintosh') > -1)
  }


//-----------------------------------------------------------------------------------------------------------------
  function getAjaxFunc()
  {
    if(typeof XMLHttpRequest != "undefined")
    { return new XMLHttpRequest();} 
    var msv= ["Msxml2.XMLHTTP.7.0", "Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0",
              "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]; 
    for(var i = 0; i < msv.length; i++)
    { 
      try { A = new ActiveXObject(msv[i]);
      if(A){return new ActiveXObject(msv[i]);} 
      } catch(e) { } 
    } 
    return false;
  }
//-------------------------------------------------------------------------------------------------------------------

  function getBodyHeight()
  {
    var height = document.body.scrollHeight;
    height = (height) ? height : document.height;
    height = (height) ? height : document.body.style.pixelHeight;
    return height;
  }  

//-------------------------------------------------------------------------------------------------------------------
  function getBodyScrollTop()
  {
    return self.pageYOffset || 
    (document.documentElement && document.documentElement.scrollTop) || 
    (document.body && document.body.scrollTop);
  } 
//-------------------------------------------------------------------------------------------------------------------
  function getBodyScrollLeft()
  {
    return self.pageXOffset || 
    (document.documentElement && document.documentElement.scrollLeft) || 
    (document.body && document.body.scrollLeft);
  }

  // Открытие ссылки без реферера
  function openEx(url)
  {
    w = window.open();
    w.document.write('<meta http-equiv="refresh" content="0;url='+url+'">');
    w.document.close();
    return false;
  }
