////Функция добавляет страницу в закладки(избранное)
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;
}

/*
window.onload=function(){
	$('.object_img').each(function(){
		h=$(this).height();
		ih=$(this).children('a').children('img').height();
		$(this).children('a').children('img').css('margin-top', (h-ih)/2);
	});
}
*/
$(function(){
	$('#inindexmenu > .item').mouseover(function(){
		$('#'+$(this).attr('id').replace('indexmenu', 'popup')).show();
	});
	$('#inindexmenu > .item').mouseout(function(){
		$('#'+$(this).attr('id').replace('indexmenu', 'popup')).hide();
	});
});
