$(document).ready(
	function() {
		createScroller("#cnt-search-forms .form-set-wrp", "#search-tabs li a", false);
		
		createScroller("#cnt-day-offers", "#day-offers-tabs li a:not(#day-offers-tabs li#day-offers-more a)", false);
		
		extendScrollerWithArrows("#day-offers-tabs li:not(#day-offers-tabs li#day-offers-more)", "#slider-left", "#slider-right");
		
		createArrowScroller({
					sScrollCntSelector: "#cnt-guarantee .guarantee-items-wrp",
					sItemsSelector: "#cnt-guarantee .guarantee-item",
					sLeftArrowSelector: "#guarantee-box .slider-small-left",
					sRightArrowSelector: "#guarantee-box .slider-small-right"
		});
		
		
		
		
		var oOpinionsList = $("#opinions-list-hp");
		
		if (oOpinionsList.length){
			$(oOpinionsList.find(".opinion-body-hp")).css("display", "block");
			
			oOpinionsList.accordion({
				autoHeight: false,
				event: "mouseover",
				changestart: function(event, ui) {
					var oOldLi = $(ui.oldContent.parents("li")),
						oNewLi = $(ui.newContent.parents("li"));
					
					oOldLi.css("backgroundColor", "");
					oOldLi.removeClass("opinion-full-hp");
					oNewLi.css("backgroundColor", "#fff");
				}
			});
		}
		
		
		
			
	}
);


