$(document).ready(function(){
			if ($("#s4").length) {
			$.fn.cycle.defaults.timeout = 6000;
					$(function() {
					// run the code in the markup!
					$('#s4').before('<div id="nav" class="nav">').cycle({
						fx:     'fade',
						speed:  '1500',
						autostopCount:   10,
						autostop:   10,
						timeout: 6000,
						prev:    '#prev',
                                                next:    '#next',
                                                pager:   '#nav'
					});
					});
				};
		    if ($("#featureCarousel").length) {
			$(document).ready(function() {
                        $("#featureCarousel").featureCarousel({
								});
			});
			};




						// jQuery('ul.ekens_menu').superfish();
						// DD_roundies.addRule('.ekens_button_small_rev, .ekens_button_small, .ekens_pagination a, .ekens_picture, .ekens_pagination, .ekens_act', '5px');
						function ajaxContact(theForm) {
		var $ = jQuery;
	
        $('#loader').fadeIn();
	
        $.ajax({
            type: "POST",
            url: "send.php",
            data: formData,
            success: function(response) {
				if ( note.height() ) {			
					note.fadeIn('fast', function() { $(this).hide(); });
				} else {
					note.hide();
				}

				$('#LoadingGraphic').fadeOut('fast', function() {
					//$(this).remove();
					if (response === 'success') {
						$(theForm).animate({opacity: 0},'fast');
					}

					// Message Sent? Show the 'Thank You' message and hide the form
					result = '';
					c = '';
					if (response === 'success') { 
						result = 'Your message has been sent. Thank you!';
						c = 'success';
					}

					note.removeClass('success').removeClass('error').text('');
					var i = setInterval(function() {
						if ( !note.is(':visible') ) {
							note.html(result).addClass(c).slideDown('fast');
							clearInterval(i);
						}
					}, 40);    
				});
            }
        });

        return false;
    }

	});
	

