/* script based on http://konigi.com */

$(document).ready(function() {

  /* search hint */
  // #search is the id of the textbox in this example
  // This still uses the value of the title attribute
  $('#footer input').focus(function() {
    // See if the input field is the default
    if ($(this).val() == $(this).attr('title')) {
      $(this).val('');
	  $(this).css({'color' : '#000', 'border' : '1px solid #ff4500'});
    }
  })
  .blur(function() {
    if ($(this).val() == '') {
      $(this).val($(this).attr('title'));
	  $(this).css({'color' : '#ddd', 'border' : '1px solid #ddd'});
    }
  });

  // This is for the footer links to change the tab currently showing
	$('#footer #fuelNav1 a.home').click(function() {
      $('#container-1').triggerTab(1);
      return false;
  });
	$('a.about').click(function() {
      $('#container-1').triggerTab(2);
      return false;
  });
	$('a.contact').click(function() {
      $('#container-1').triggerTab(9);
      return false;
  });
	$('a.personalTraining').click(function() {
      $('#container-1').triggerTab(3);
      return false;
  });
	$('a.sportsMassage').click(function() {
      $('#container-1').triggerTab(4);
      return false;
  });
	$('a.nutrition').click(function() {
      $('#container-1').triggerTab(5);
      return false;
  });
	$('a.kidsKarate').click(function() {
      $('#container-1').triggerTab(6);
      return false;
  });
	$('a.bootcamp').click(function() {
    $('#container-1').triggerTab(7);
    return false;
  });

});