$(document).ready(function() {
   
    // set up variables
    var searchId = 'searchfield';
    var defaultText = "enter email";
   
    // when the input gets focus
    $('#' + searchId).focus(function() {
       
        // if the value in the input equals the default text
        if(this.value == defaultText) {
           
            // clear the input value
            this.value = '';
        }
       
    // when the input loses focus
    }).blur(function() {
       
        // if the value is empty
        if(this.value == '') {
           
            // set the input value to the default text
            this.value = defaultText;
        }
       
    });
});

$(document).ready(function() {
    // set a variable to track the click events
    var i = 0;
   
    // listen for when the link is clicked
    $('p.continue a').click(function() {

       
        // create a jquery "this" value
        var $this = $(this);
      
        // initial click
        if(i == 0) {
          
            // change the text value for the link
            $this.text('Hide');
           
            // set the background position to show the hide image
            $this.css('backgroundPosition', 'bottom left');
          
            // fade in the div
            $('.more').fadeIn("slow");

          
            // set the "i" value to 1
            i = 1;
          
        // next click
        } else {
          
            // reset our link text
            $this.text('Continue');
           
            // reset the background position
            $this.css('backgroundPosition', 'top left');
          
            // fade out the div
            $('.more').fadeOut("slow");

          
            // reset our "i" value
            i = 0;
        }
      
        // return false so the link doesn't link-through
        return false;
    });
   
});

