  $(document).ready(function() { 
			 var options = { 
			 target:        '#alert'
			 }; 
			 $('#contactForm').ajaxForm(options); 
			 
			 
			 ///slideout
			 $('.contactForm').tabSlideOut({
                 tabHandle: '.handle',                              //class of the element that will be your tab
                 pathToTabImage: 'img/kontakt.png',          //path to the image for the tab (optionaly can be set using css)
                 imageHeight: '122px',                               //height of tab image
                 imageWidth: '40px',                               //width of tab image    
                 tabLocation: 'left',                               //side of screen where tab lives, top, right, bottom, or left
                 speed: 300,                                        //speed of animation
                 action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
                 topPos: '10%',                                   //position from the top
                 fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
             });
             
             $('.newsletter').tabSlideOut({
                 tabHandle: '.handle2',                              //class of the element that will be your tab
                 pathToTabImage: 'img/news.png',          //path to the image for the tab (optionaly can be set using css)
                 imageHeight: '122px',                               //height of tab image
                 imageWidth: '40px',                               //width of tab image    
                 tabLocation: 'left',                               //side of screen where tab lives, top, right, bottom, or left
                 speed: 300,                                        //speed of animation
                 action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
                 topPos: '10%',                                   //position from the top
                 fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
             });
             
             
         });
         
         
          
         $.fn.clearForm = function() {
           $('.slide-out-div').pause(3000).animate({left:'-328px'}).removeClass('open');
           
           return this.each(function() {
         	var type = this.type, tag = this.tagName.toLowerCase();
         	if (tag == 'form')
         	  return $(':input',this).clearForm();
         	if (type == 'text' || type == 'password' || tag == 'textarea')
         	  this.value = '';
         	else if (type == 'checkbox' || type == 'radio')
         	  this.checked = false;
         	else if (tag == 'select')
         	  this.selectedIndex = -1;
           });
           	
         };
          
