var $ = jQuery.noConflict();
$(document).ready(function(){
    $('#slider').easySlider({
        auto:true,
        continuous:true,
        speed:500,
        pause:7000
    });
    
    $('#feed').rssfeed('http://feeds.feedburner.com/eatingwell_make_it_tonight?format=xml', {}, function(e) {
        $(e).find('div.rssBody').vTicker({
            showItems: 6
        });
    });
	
	$('#formFields').validate({
        submitHandler: function(form) {
            // do other stuff for a valid form
            $.post('email_process.php', $("#formFields").serialize(), function(data) {
                alert('Sent! Thank you for contacting us.');
                $(':input','#formFields').not(':button, :submit, :reset, :hidden').val('').removeAttr('checked').removeAttr('selected');
            });
        },
		
		errorPlacement: function(error, element) {}
    });
	
	$('a[rel=lightbox]').fancybox();
});
