
$(document).ready(function($){
	
	// if js is enabled, then use the local js type search
	$("#cse-search-box").attr('action', '/search');
	// also, unset the additional input terms
	$('input[name="cx"]').remove();
	$('input[name="ie"]').remove();
	
	// set up the focus blur inputs
	$('.focusblur').focus(function() {
		if ($(this).val() === $(this).attr('defaultValue')) {
		// if it's the default value, empty it
			$(this).val('');
		}
	});
	$('.focusblur').blur(function() {
		if ($(this).val() === '') {
		// if it's empty, set to default
			$(this).val($(this).attr('defaultValue'));
		}
	});
	$('li').mouseover(function() {
		$(this).addClass('hover');
	});
	$('li').mouseout(function() {
		$(this).removeClass('hover');
	});
	
	$(".landing_grid[title]").tooltip({
		position: "center right",
		offset: [-40, -40],
		tipClass: 'tooltip-store',
		effect:	'toggle'
	});
	
	/*
	$('.color select').change(function() {
		var str = $(this).val();
		$('.color select').val(str);
	});
	
	$('.store-info .main-item-quantity select').change(function() {
		var str = $(this).val();
		$('.store-info .main-item-quantity select').val(str);
	});
	*/
	

	// FATHERS DAY SALE	//
	
	$('#navigation_01').click(function() {
	  $('.target_panel').fadeOut();
		$('#panel_01').fadeIn();
		return false;
	});
	
	$('#navigation_02').click(function() {
	  $('.target_panel').fadeOut();
		$('#panel_02').fadeIn();
		return false;
	});
	
	$('#navigation_03').click(function() {
	  $('.target_panel').fadeOut();
		$('#panel_03').fadeIn();
		return false;
	});
	
	$('#navigation_04').click(function() {
	  $('.target_panel').fadeOut();
		$('#panel_04').fadeIn();
		return false;
	});
	
});
