$(function(){$("button[name=sendSplash]","body.js").hide();var b=$("#circle1, #circle2, #circle3","body.js");b.hover(function(){$(this).addClass("over");$(this).find("ul").filter(":not(:animated)").slideDown(300)},function(){$(this).removeClass("over");$(this).find("ul").fadeOut(150)});$(".selectedItem",b).mouseenter(function(){$(this).prev().filter(":not(:animated)").slideDown(300)});$("ul",b).mouseleave(function(){$(this).fadeOut(150)});b=$("ul a","#splash");$("input[type=checkbox]","#splash"); var c=$("a#continueBtn","#splash");b.bind("click",function(a){a.preventDefault();a=$(this).attr("rel");a!=0?$(this).text().substr(9):$(this).text();$(this).blur().closest("ul").prev().val(a);$(this).closest("ul").next().find("strong").hide();$(this).closest("ul").next().find("strong.selectedText"+a).show();$(this).closest("ul").fadeOut(150);checkHpSelect(c)});$("#continueBtn").click(function(a){a.preventDefault()});checkHpSelect(c)}); function checkHpSelect(b){var c=$("#childAge","#circle1").val(),a=$("#feed","#circle2").val(),d=$("#allergy","#circle3").val(),e,f=false;if(c!="-"){$(".selectedItem strong","#circle1").hide();$(".selectedItem > .selectedText"+c,"#circle1").show();e=true}if(a!="-"){$(".selectedItem strong","#circle2").hide();$(".selectedItem > .selectedText"+a,"#circle2").show();f=true}if(d!="-"){$(".selectedItem strong","#circle3").hide();$(".selectedItem > .selectedText"+d,"#circle3").show()}if(e&&f){b[0].className= "btnContinue";$(".btnContinue").click(function(){location.href=$("#splash").attr("action")+"?"+$("#splash").serialize()})}} function checkHpValue(){var b=$("input#allergy1","#checkboxAllergy")[0].checked,c=$("input#allergy2","#checkboxAllergy")[0].checked,a=$(".selectedItem","#circle3");$("strong",a).hide();if(b&&c){$(".selectedText2",a).show();$(".selectedText2 .cufon:not(:first)",a).css({marginTop:"-4px"})}else if(b)$(".selectedText0",a).show();else c?$(".selectedText1",a).show():$(".selectedText",a).show()};