$(document).ready(function(){
    $("#content_area font.productnamecolorLARGE + br").css("display", "none").val();
    $("input[name=btnaddtowishlist]").css("float", "right").val();
    $("td.smalltext.colors_background_main.colors_text table tr:gt(6)").css("display", "none");
    $("font.carttext.colors_text:contains('$0.00')").css("visibility", "hidden");
	$('font[color="#999999"]').addClass("c-999");
	$("textarea + br + font.c-999").css("display", "none");
	$("span#span_Shopping_Cart_UnEditable td table td:contains('$0.00')").text("-");
    $("table").attr({cellpadding: 0, cellspacing: 0, border: 0});
	$("nobr:contains('Show gift options during checkout')").prependTo('form[name="Proceed_To_Checkout_Form"]');
	$("nobr:contains('Show gift options during checkout')").addClass("addGift");
	$("#v_Wrapper_Top_Border").prev("font").css("display", "none");
	$("#span_paymentfields_credit_card").next().appendTo('form[name="OnePageCheckoutForm"]');
	$('img[src="/v/vspfiles/templates/lupicia/images/clear1x1.gif"]').next("br").css("display", "none");
});

$(function(){
	$("#gNaviFind").hover(
	function() {
	// mousehover
      $(this).find("ul").show();
    }, 
      function () {
	  // mouseout
        $(this).find("ul").hide();
    });
});

$(document).ready(function(){
	$('form[name="OnePageCheckoutForm"]').validate({
	rules: {
	   ShipPostalCode: {
			rangelength: [5, 5]
	   }
	},
	messages: {
	
	   ShipPostalCode: {
		rangelength: jQuery.format("Please enter US zip codes as a {0} digit number only.")
	   }
	}
	});
});

function hcWindow() {
	hcWindow = window.open("/v/static/about/handy-cooler.html","hc","toolber=0,location=0,directions=0,status=1,menuber=0,scrollbars=1,resizable=1,width=580,height=460");
    hcWindow.focus();
}

function dscWindow() {
	dscWindow = window.open("/v/static/about/discount_list.html","dsc","toolber=0,location=0,directions=0,status=1,menuber=0,scrollbars=1,resizable=1,width=580,height=460");
    dscWindow.focus();
}











