// JavaScript Document
$(function() {
    // run the code in the markup!
   $('ul.slide-auto').cycle({ 
    fx:    'fade', 
    speed:  2000 
 });
   $('ul.slide').after('<div class="slideNav">').cycle({ 
    fx:     'fade',
	pager:  '.slideNav',
	timeout: 0,
	speed:  1000 
});
  $("div.slideNav>a").prepend('0'); 
});

  $(function() {
    $('.error').hide();
    $(".button").click(function() {
      // validate and process form here
      
      $('.error').hide();
  	  var name = $("input#name").val();
  		if (name == "") {
        $("label#name_error").show();
        $("input#name").focus();
        return false;
      }
  		var email = $("input#email").val();
  		if (email == "") {
        $("label#email_error").show();
        $("input#email").focus();
        return false;
      }

    });
  });

