$(document).ready(function() {    $(".picture a[rel=fb]").fancybox({        'titleShow'    : true,        'transitionIn' : 'none',        'transitionOut': 'none',        'titlePosition': 'over'    });})function display_obj (disp_obj, this_obj, text_show, text_hidden){ if(disp_obj.style.display == 'block'){	$(disp_obj).hide('slow');	if(this_obj && text_show && text_hidden)		this_obj.innerHTML = text_hidden; } else {	$(disp_obj).toggle('slow');	if(this_obj && text_show && text_hidden)		this_obj.innerHTML = text_show; }}/*******************КОРЗИНА***********************/function cart_action (obj, item_id, action) {    var url = '/cart/?ajax=1&action='+action+'&item_id='+item_id;    if(action == 'itemAdd'){          obj.style.display = 'none';          obj.previousSibling.style.display = 'block';    } else if (action == 'itemRemove') {          obj.style.display = 'none';          obj.nextSibling.style.display = 'block';    }    $('#cart').load(url);}function edit_price (item_id, obj) {	var count_items = obj.value * 1;	var o_summ_cart_prices = $('#summ_cart_prices');	var o_summ_price = $('#summ_price_'+item_id);	var o_item_price = $('#item_price_'+item_id);	var url = '/cart/';	if(isNaN(count_items)){		obj.nextSibling.style.display = 'block';	} else {		obj.nextSibling.style.display = 'none';        if (count_items != '') {          $(o_summ_cart_prices).load(              url,              {item_id: ""+item_id+"", qty: ""+count_items+"", ajax:1, action:'itemQtyChange'},              function(){                  o_summ_price.html(''+(o_item_price.text() * count_items));              }          );        }	}}
