/*jQuery(function(){
jQuery("#a_fade_away").click(function () {
       $("#img_fade_away").fadeOut(600, function () {


         JsHttpRequest.query(
            '/show_results.php', // backend
            {
               // pass a text value
               'pnt1':'1',
               'pnt2':'2'
            },
            // Function is called when an answer arrives.
            function (result,errors)
            {
               $strout = '';
               if (result)
               {
                  document.getElementById("ajax_div").innerHTML = result;



          $("div.gallery").fadeIn(600, function () {

                  jQuery(".gallery").jCarouselLite({
                          btnNext: ".next",
                          btnPrev: ".prev",
                          visible: 1
                 });
          });


               }
            },
            false
         )


       });
    });
});

*/

/*jQuery(function(){
jQuery("#a_fade_away").click(function () {
       $("#img_fade_away").fadeOut(600, function () {


         JsHttpRequest.query(
            '/show_results.php', // backend
            {
               // pass a text value
               'pnt1':'1',
               'pnt2':'2'
            },
            // Function is called when an answer arrives.
            function (result,errors)
            {
               $strout = '';
               if (result)
               {
                  document.getElementById("ajax_div").innerHTML = result;

                  jQuery(".gallery").jCarouselLite({
                          btnNext: ".next",
                          btnPrev: ".prev",
                          visible: 1
                 });


               }
            },
            false
         )


       });
    });
});*/

jQuery(function(){
jQuery("#a_fade_away").click(function () {
       $("#img_fade_away").fadeOut(600);

         JsHttpRequest.query(
            '/show_results.php', // backend
            {
               // pass a text value
               'pnt1':'1',
               'pnt2':'2'
            },
            // Function is called when an answer arrives.
            function (result,errors)
            {
               $strout = '';
               if (result)
               {
                  document.getElementById("ajax_div").innerHTML = result;

                  jQuery(".gallery").jCarouselLite({
                          btnNext: ".next",
                          btnPrev: ".prev",
                          visible: 1
                 });


               }

			$(function()
			{
				$('.scroll-pane').jScrollPane({showArrows:true, scrollbarWidth:19, dragMaxHeight:43});
			});
            },
            false
         )


    });
});
