$(document).ready(function(){

  
/*
  $("#home").cycle({ 
    fx: 'turnLeft', 
    speed: 500, 
    timeout: 4000, 
    next: '#next', 
    prev: '#prev',
    pause: 1 
  });*/


  
/*
  setTimeout( function() { 
    
    $("#content").fadeIn(3000);  
    $("#contentbg").fadeIn(2000);
    
    }, 2000); */

  
  var swap_text_boxes = [];

  function init_swap_text_boxes(){
    //Store the default value for each box
    var target = $('input[type=text][value].swaptextbox,textarea.swaptextbox');
    target.each(function() {
      swap_text_boxes[$(this).attr('id')] = $(this).attr('value');
    });
    //Add focus and blur events to set or clear the value
    target.bind('focus', function() {
      if($(this).val() == swap_text_boxes[$(this).attr('id')]) {
        $(this).val('');
      }
    });
    target.bind('blur', function() {
      if($(this).val() == '') {
        $(this).val(swap_text_boxes[$(this).attr('id')]);
      }
    });
  }

  init_swap_text_boxes();
  
  
});