/* Show / hide ingredients on products page */
$(document).ready(function() {
	$('div.ingredients-table-wrap').hide().addClass('js');
	var current_ingredients = null;
	$('a.ingredients').click(function() {
	  if (current_ingredients) {
		  current_ingredients.hide();	    
	  }
		current_ingredients = $(this).parents('div').children('div.ingredients-table-wrap');
		current_ingredients.show();
		return false;
	});
	$('a.close').click(function() {
	  if (current_ingredients) {
		  current_ingredients.hide();	    
	  }
		return false;
	});
});


/* Show / hide product info on lounge scene page */
$(document).ready(function() {
$('div.lounge-note dt').append('<a class="close" href="#" title="Close">Close</a>');
	var current_note = null;
	$('a.hover').mouseover(function() {
	  if (current_note) {
		  current_note.hide();	    
	  }
	  current_note = $(this).parents('li').children('div.lounge-note-wrapper');
		current_note.show();
	});
	$('div.lounge-note a.close').click(function() {
	  if (current_note) {
		  current_note.hide();	    
	  }
		current_note.hide();
		return false;
	});
});


/* Show / hide FAQs */
$(document).ready(function() {
	$('.note-box dd').hide();
	$('.note-box dd.open').show();
	
	var open_tip = $('.note-box dd.open');
	
	$('.note-box dt a').click(function() {
			open_tip.hide();
			$(this).parent('dt').next('dd').toggle();
			open_tip = $(this).parent('dt').next('dd');
			return false;
	});
});

$(document).ready(function() { 
  $('input#email').focus(function() {
    if (this.value == this.defaultValue) {
      this.value = '';
    }
  });
});

$(document).ready(function() {
  $('p.submit, p.btn').hover(function() {
    $(this).addClass('hover');
  },function() {
    $(this).removeClass('hover');
  });
});