function m1SliderInit(){
$("div.card-foto").not(".reloaded").each(function(settings){
settings = jQuery.extend({easeFunc:"expoinout",easeTime:750,toolTip:false},settings);
var container=$(this);
var flag=false;
if (container.css('display')=='none') {container.show();var flag=true;}
var panelWidth=container.find("div.panel").width();
var panelCount=container.find("div.panel").size();
var sliderViewerWidth=panelWidth*panelCount;
if (flag) container.hide();
if (sliderViewerWidth!=0) {
	container.addClass("reloaded");
	container.find("div.sliderWrap").css("width",sliderViewerWidth);

	if(container.parent().parent().attr('class')=="programs-box") {
		container.find('.preview a').hover(function(){
			var pos=$(this).parent().parent().parent().find("div.cell a").index($(this)[0]);
			var vleft=pos*89+43;
			container.find('.sliderPopup').css("left",vleft).find('.pcnt').html($(this).parent().next('.popup-text').html()).parent().fadeIn(100);

		},function(){
			container.find('.sliderPopup').hide();
		});
		container.find('.panel').mouseout(function(){container.find('.sliderPopup').hide()});
		container.find('.sliderPopup').hover(function(){$(this).hide();},function(){$(this).hide();});
		container.find('.sliderLeft').hover(function(){$(this).hide();},function(){$(this).hide();});
		container.find('.sliderRight').hover(function(){$(this).hide();},function(){$(this).hide();});
	};

	var cPanel=1;


	var temp = container.find("div.sliderMore").html();

	container.append("<div class=\"sliderLeft\" title=\"назад\"></div><div class=\"sliderRight\" title=\"вперед\"></div>");


	container.find("div.sliderLeft").click(function(){
		if (cPanel==2) {$(this).css("cursor","default");}
		if (cPanel==panelCount-1) {container.find("div.sliderRight").css("cursor","pointer");}
		if (cPanel!=1) {
			cPanel -= 1;
			var cnt = - (panelWidth*(cPanel - 1));
			$(this).parent().find('div.sliderWrap').animate({ left: cnt}, settings.easeTime, settings.easeFunc).end().find('div.sliderPopup').hide();
		};
		return false;
	});

	container.find("div.sliderRight").click(function(){
		if (cPanel==panelCount-2) {$(this).css("cursor","default");}
		if (cPanel==1) {container.find("div.sliderLeft").css("cursor","pointer");}
		if (cPanel!=panelCount-1) {
			var cnt=-(panelWidth*cPanel);
			cPanel+=1;
			$(this).parent().find('div.sliderWrap').animate({ left: cnt}, settings.easeTime, settings.easeFunc).end().find('div.sliderPopup').hide();
		};
		return false;
	});
}


});
}
