$(document).ready(function(){

<!--Slideshow-->

$.init_slide('imgstore','header_img',0,0,2000,1,5000,0,'_blank');

<!--Slideshow-->

<!--Kontakt-->

$.ajaxSetup ({   
	cache: false  
}); 

$('#kontakt').submit(function() {
       		
          // :input is a macro that grabs all input types, select boxes
          // textarea, etc
          var inputs = [];
          $(':input', this).each(function() {
            inputs.push(this.name + '=' + this.value);
          })
          
		  var submitButton = $(this, "input[type='submit']");
		
          // now if I join our inputs using '&' we'll have a query string
		  
		  $('#load').attr('innerHTML','');
		  $("#load").addClass('ajax-loading');
		  
          jQuery.ajax({
			scriptCharset: "utf-8" , 
            encoding:"utf-8", 		  
            data: inputs.join('&'),
            url: this.action,
            timeout: 0,
           
            success: function(r) {
			  $("#load").removeClass('ajax-loading');	
              $('#load').attr('innerHTML',r);
			  

            }
          }) // checkout http://jquery.com/api for more syntax and options on this method.
          
          // re-test...
          // by default - we'll always return false so it doesn't redirect the user.
          return false;
        })

<!--Kontakt-->
	
});	
