      (function($) {
        function init() {

                                                 
          $("#tank-location .effectContainer").fadeTransition({pauseTime: 0,
                                                  transitionTime: 500,
                                                  manualNavigation: true,
												  currentItem: true
												  });
                                                  
          var example3 = $("#tank-location .effectContainer").fadeTransition().fader();          
          $("#back").click(function(e) { example3.prev(); e.preventDefault(); });
          $("#next").click(function(e) { example3.next(); e.preventDefault(); });
        }
        
        
        $(document).ready(init);
      })(jQuery);
	  	$(document).ready(function(){
		$("#zemelapis").fancybox({
				'width'				: 880,
				'height'			: 570,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
		});	
		$("#myController").jFlow({
			slides: "#news",
			controller: ".tabs", 
			slideWrapper : "#jFlowSlide", 
			selectedWrapper: "jFlowSelected",  
			auto: true,		
			width: "510px",
			height: "140px",
			duration: 400,
			prev: ".jFlowPrev", 
			next: ".jFlowNext" 
		});
		
		$.ajax({
		  type: 'GET',
		  url: 'prices.php',
		  cache: false,
		  data: {sid : '1'},
		  success: function(data) {
			$('#show').html(data);
		  }
		});
		
		$("#tank-location .effectContainer a").click(function(event){
		var sid = $(this).attr("id");
		$('#next').click();
		$.ajax({
		  type: 'GET',
		  url: 'prices.php',
		  cache: false,
		  data: {'sid' : sid},
		  success: function(data) {
			$('#show').html(data);
		  }
		});
		});
		
		$("#card").fadeTo("slow", 0.6); 

		$("#card").hover(function(){
		$(this).fadeTo("slow", 1.0); 
		},function(){
		$(this).fadeTo("slow", 0.6);
		});
		});
