function jss ()
 {
		$('#jss1').cycle({
			fx:      'scrollHorz',
			next:    '#jss-rarr1',
			timeout: 0,
			speed:    700
		});

		$('#jss2').cycle({
			fx:      'scrollHorz',
			next:    '#jss-rarr2',
			timeout: 0,
			speed:    700
		});

		$('#jss3').cycle({
			fx:      'scrollHorz',
			next:    '#jss-rarr3',
			timeout: 0,
			speed:    700
		});
  }
jss();
		var MM = 0;
		$(document).ready(function() {



            $(".jslideshow-cont").mousemove(function(e){
             if (MM==0)
              {
                MM = 1;
                $.post('/111/write_foto_gallery_min.php', { 'id':1 }, function(data) {
			     	 $(".jslideshow-cont").html(data);
			     	 jss();
			     	 $("a[rel=foto]").fancybox({
						'transitionIn'		: 'none',
						'transitionOut'		: 'none',
						'titlePosition' 	: 'over',
						'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
							return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
						}
					 });
			     });
		       }
   			})

			/*
			*   Examples - images
			*/

			$("a.fancybox").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});

			$("a[rel=foto]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});

		    $('#mycarousel').jcarousel({scroll:1});



		    $('.left-menu-2 li:first').addClass('no-border-top');
			$('.left-menu-2 .active').addClass('no-border');
			$('.left-menu-2 .active').next().addClass('no-border-top');
			$('.left-menu-2 .active').prev().addClass('no-border-bottom');

			$('.food-menu tr').find('td:first').addClass('dish-photo-cell');
			$('.food-menu tr').find('td:eq(2)').addClass('weight-cell');
			$('.food-menu tr').find('td:eq(3)').addClass('price-cell');

			$('.food-menu tr').hover(function(){
				$(this).find('td').addClass('td-hover');

			},function(){
				$(this).find('td').removeClass('td-hover');

			})


		});
$('.slideshow').cycle({
	fx:      'fade',
	speed:    1000,
	timeout:  3000
});
// fixPNG(); http://www.tigir.com/js/fixpng.js (author Tigirlas Igor)


function fixPNG(element)
{
	//alert("Внутри функции fixPNG");
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
	{
		var src;

		if (element.tagName=='IMG')
		{
			if (/\.png$/.test(element.src))
			{
				src = element.src;
				element.src = "/images/blank.gif";
			}
		}
		else
		{
			src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i)
			if (src)
			{
				src = src[1];
				element.runtimeStyle.backgroundImage="none";
			}
		}
		//alert("Осел внутри");
		if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
	}
}




