$(document).ready(function() {

	url = root + "json.php?arg0=get_tline&arg1=http://liverss.ru/currency/";
	$.getJSON(url,	function(data){ if (data.resp == '1') $(".div_top2_l").append(data.apnd);});
	
	$('.div_srch_btn').bind('click', function(){
		$('.div_srch_frm').show("slow");
	});
	
	$('div.jimgMenu ul li a').hover(function() {
	
	if ($(this).is(':animated')) {
	  $(this).stop().animate({width: "460px"}, {duration: 450, easing:"easeOutQuad"});
	} else {

	  $(this).stop().animate({width: "460px"}, {duration: 400, easing:"easeOutQuad"});
	}
	}, function () {

	if (true) {
		if ($(this).is(':animated')) {
		  $(this).stop().animate({width: "55px"}, {duration: 400, easing:"easeInOutQuad"})
		} else {

			$(this).stop('animated:').animate({width: "55px"}, {duration: 450, easing:"easeInOutQuad"});
		}
	}
	});

});

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;
    a.setAttribute('rel','sidebar'); 
    a.setAttribute('href',url); 
    a.setAttribute('title',title); 
    a.click(); 
  } 
  else return false; 
  
  return true; 
}