/**
 * @author Deon
 */
		  $(function() {
		  	
	    var options = { 
	        target:        '#sendinfo',   // target element(s) to be updated with server response 
	        beforeSubmit:  showRequest,  // pre-submit callback 
	        success:       showResponse  // post-submit callback 
		    }; 
	    // bind form using 'ajaxForm' 
    	$('#sendinfo').ajaxForm(options); 
		function showRequest(formData, jqForm, options) { 
  		  var queryString = $.param(formData); 
		  return true; 
			} 
 
	// post-submit callback 
	function showResponse(responseText, statusText)  { 
	
} 
	
		  });



        $(function() {
            $('#buttons img').animate({"opacity": .7 });

            $('#buttons img').hover(function() {
                $(this).stop().animate({ "opacity": 1 });
            }, function() {
                $(this).stop().animate({ "opacity": .7 });
            });
			
			
        });


jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){
$('#slideshow').serialScroll({
		items:'li',
		prev:'#screen2 a.prev',
		next:'#screen2 a.next',
		offset:-159, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:1, //as we are centering it, start at the 2nd
		duration:1200,
		force:true,
		stop:true,
		lock:false,
		cycle:true, //don't pull back once you reach the end
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false //click on the images to scroll to them
	});
	
	/**
	 * The call below, is just to show that you are not restricted to prev/next buttons
	 * In this case, the plugin will react to a custom event on the container
	 * You can trigger the event from the outside.
	 */
	
	
});

$(document).ready(function() {
    $('img').error(function() {
        $(this).attr({
        src: 'images/missing.png',
        style:'border:3px solid #999;width:144px;height:144px;'
        });
    });
});


