jQuery.noConflict();

//Округление цен в y.e.	
var i = 0;
var price =[1];
var stake = 100;
jQuery(".price_ye span").each(function(){
i++;
	var get_price = jQuery(this).html();
	var rewrite_price = parseFloat(get_price);
	var pushed = 10.00;
	if (rewrite_price < 1){
	pushed = price.push(rewrite_price);
	}
	else {
	pushed = price.push(Math.round(rewrite_price));
	}
	jQuery(this).empty();
	jQuery(this).text(price[i]);
	
});
//Перерасчет цен в рубли с учетом округления
i=0;
jQuery(".price span").each(function(){
i++;
	var get_stake = jQuery(this).html();
	var stake = parseFloat(get_stake);
	var price_res = stake*price[i];
	jQuery(this).empty();
	jQuery(this).html(price_res);
	
	
});
//Добавляем пробелы	
jQuery(".price span").each(function(){
	var get_content = jQuery(this).html();
	jQuery(this).empty();
	var price_by = get_content.replace(/(\d{1,3})(?=(?:\d{3})+$)/g, '$1 ');
	jQuery(this).html(price_by);
});	


jQuery(document).ready(function() {
//Прячем в панельке  слово "Поделится"
jQuery('.b-share a:eq(0)').hide();
jQuery('.b-share').css({'float':'right', 'marginRight':'-15px', 'marginTop':'27px', 'marginBottom':'-30px'});
jQuery('.b-share span').css({'marginRight':'4px'});
jQuery('.b-share a').hover(
	function(){
		jQuery(this).css({'marginTop':'2px'});
		},
	function(){
		jQuery(this).css({'marginTop':'0px'});
	});
		
		
//Замена пустой корзины на полную
//Замена при добавлении товара
jQuery(".ovalbutton_small").click(function(){
	jQuery("#snow a:eq(0)").empty();
	jQuery("#snow a:eq(0)").html("<img src = '/images/basket_full_2.png'/>");
	
});
//Корзина остаётся полной при прыжках по сайту
var get_cart_sum = jQuery('#cart_sum').html();
var cart_sum = Math.round(parseFloat(get_cart_sum));
if(cart_sum !=0) {
	jQuery("#snow a:eq(0)").empty();
	jQuery("#snow a:eq(0)").html("<img src = '/images/basket_full_2.png'/>");
	jQuery("#cart_sum").html(cart_sum);
}

//Округеление цены под корзинойabove


//Прячем баннеры внизу страницы
jQuery("#banners").hide();



});	




			
