////Функция добавляет страницу в закладки(избранное)
function addBookmark(url, title)
{
  if (!url) url = location.href;
  if (!title) title = document.title;
  
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
  else if (typeof window.external == "object") window.external.AddFavorite(url, title);
  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;
  
  return true;
}

$(document).ready(function(){
  $('a[rel="popup"]').click(function(){
	return hs.expand(this, {src: $(this).attr("href"), wrapperClassName: 'highslide-white', outlineType: 'rounded-white', dimmingOpacity: 0.75, align: 'center' });
  });
});
