
hs.graphicsDir='/scripts/highslide/graphics/';hs.outlineType='rounded-white';hs.outlineWhileAnimating=true;hs.objectLoadTime='after';window.onload=function(){hs.preloadImages();}
$(function(){$("#dialog-box").dialog({autoOpen:false,height:120,width:350,modal:true});});function openDialog(title,body,height){if(typeof(title)=='undefined'){title="Loading";}
if(typeof(height)=='undefined'){height=120;}
if(typeof(body)=='undefined'){body="<p>Loading...</p>";}
$('#dialog-box').dialog("option","title",title);$('#dialog-box').dialog("option","height",height);$('#dialog-box').html(body);$('#dialog-box').dialog('open');}
function closeDialog(){$('#dialog-box').dialog('close');}
$(function(){$("#notifyForm").submit(function(){$("#notificationMessage").html("Please wait...");$("#notifyForm").hide();vars=new Array();var serializedForm=$("#notifyForm").serialize();$.post("notify.htm?overrideincludes=blank&format=json",serializedForm,function(data){if(data.success){$("#notificationBox").html(data.message);}else{$("#notificationMessage").html(data.message);$("#notifyForm").show();}},"json");return false;});});function showNotification(){$("#notificationBox").show();}
$(function(){$("#searchstr").focus(function(){$(this).addClass("focus");if($(this).val()=='Hledejte produkt nebo značku'){$(this).val('');}});$("#searchstr").blur(function(){$(this).removeClass("focus");if($(this).val()==''){$(this).val('Hledejte produkt nebo značku');}});$(".searchButton").hover(function(){$(this).attr("src","/images/hledani_bot_hover.gif");},function(){$(this).attr("src","/images/hledani_bot.gif");});$("#searchForm").submit(function(){if($("#searchstr").val()==''||$("#searchstr").val()=='Search for a product or brand'){alert('Enter a word to search for before clicking Search');return false;}else{return true;}});$("#idkttj-idkttj").focus(function(){$(this).addClass("focus");if($(this).val()=='Vaše emailová adresa'){$(this).val('');}});$("#idkttj-idkttj").blur(function(){$(this).removeClass("focus");if($(this).val()==''){$(this).val('Vaše emailová adresa');}});$("#NeedHelp span.tel")
});$(function(){if($(".addToCartQty").size()==1){$(".addToCartQty").val(1);}
$("#addToRegistryButton").css("visibility","visible");$("#addToRegistryButton").click(function(){if($(this).hasClass("noRegistrySession")){openDialog("Create a registry","<p>You are not currently logged in with a registry.</p>Head over to the <a href='registry.htm'>Gift Registry</a> page to login to your existing registry or to set up a new one quickly and easily.</p>",180);return false;}
$("#whichButtonClicked").val("registry");});$("#addToCartButton").hover(function(){$(this).attr("src","/images/button_add-to-cart_hover.gif");},function(){$(this).attr("src","/images/button_add-to-cart.gif");});$("#addToRegistryButton").hover(function(){$(this).attr("src","/images/registry/buttonaddtoregistry_hover.gif");},function(){$(this).attr("src","/images/registry/buttonaddtoregistry.gif");});$("#addToCartButton").click(function(){$("#whichButtonClicked").val("cart");});$("form.addToCart").submit(function(){var qty=0;$(".addToCartQty").each(function(){qty+=parseInt($(this).val());});if(qty==0){openDialog("Select a Qty","<p>Please select enter the number of items you would like to buy in the 'Qty' box, then click 'Add to cart'</p>");}else{vars=new Array();var serializedForm=$(this).serialize();section=$("#whichButtonClicked").val();if(section=='registry'){$.post("registrycart.htm?overrideincludes=blank",serializedForm,function(data){if(data){$("#RegistryCart").html(data);}},"html");}else{section="cart";$.post("shoppingcart.htm",serializedForm,function(data){if(data){$("#ShoppingCart").html(data);}else{openDialog("Add to cart","<p>We didn't manage to add this item to your cart. Please try again, or <a href='contact.htm'>contact us</a> for help.</p>");}},"html");}
$(".itemAddedAlert").fadeOut(function(){if(section=='registry'){var url='registry.htm?action=edit';}else{var url='order.htm?action=ShowCart';}
$(".itemAddedAlert").html("Item added to your "+section+". <a href='"+url+"'>Click here</a> to view your "+section+".<br/>");$(".itemAddedAlert").fadeIn();});if(typeof(pageTracker)=="object"){pageTracker._trackPageview("/order.htm?action=addtocart");}
if(typeof(_vis_opt_bottom_initialize)=="function"){_vis_opt_register_conversion(4,3);}}
return false;});});$(document).ready(function(){if($('#product_tabs').length>0){var productTabContainers=$('#product_tabs > div.tabContainer > div');$('#product_tabs ul.tabNavigation li a').click(function(){productTabContainers.hide().filter(this.hash).show();$('#product_tabs ul.tabNavigation li').removeClass('selected');$(this).parent('li').addClass('selected');return false;}).filter('#product_tabs ul.tabNavigation li.selected a').click();}
if($('#gallery_tabs').length>0){var galleryTabContainers=$('#gallery_tabs > div.tabContainer > div');$('#gallery_tabs ul.tabNavigation li a').click(function(){galleryTabContainers.hide().filter(this.hash).show();$('#gallery_tabs ul.tabNavigation li').removeClass('selected');$(this).parent('li').addClass('selected');return false;}).filter('#gallery_tabs ul.tabNavigation li.selected a').click();$('.view_videos_icon').click(function(){$('#gallery_tabs ul.tabNavigation li a').click();});}
$("#nav_wrap").html($("#nav_full_wrap").html());$("#nav_full_wrap").remove();$(".searchButtonSmall").hover(function(){$(this).attr("src","/images/button_search_small_hover.gif");},function(){$(this).attr("src","/images/button_search_small.gif");});$(".category_search").focus(function(){$(this).addClass("focus");if($(this).val()=='Type here'){$(this).val('');}});$(".category_search").blur(function(){$(this).removeClass("focus");if($(this).val()==''){$(this).val('Type here');}});function megaHoverOver(){$(this).find(".sub").show();
$(this).children("a").addClass('hover');}
function megaHoverOut(){$(this).find(".sub").hide();$(this).children("a").removeClass('hover');}
var config={sensitivity:2,interval:100,over:megaHoverOver,timeout:100,out:megaHoverOut};$("ul#nav li .sub").hide();$("ul#nav > li").hoverIntent(config);$('form#news_signup_form').submit(function(){var formAction=$(this).attr("action");var formElem=this;var id="idkttj";var emailVal=$(this).find(".ead").val();var subForm=$(this).find(".whichsubform").val();if(!checkEmail(emailVal)){alert("Please enter a valid email address");return false;}
var str=$(this).serialize();var serialized=str+"&action="+formAction;$.ajax({url:"/proxy.php",type:"POST",data:serialized,beforeSend:function(){$(formElem).append("<div class='form_sending'>Please wait while we send your details...</div>");},success:function(data){if(data.search(/invalid/i)!=-1){$(".form_sending").remove();alert('The email address you supplied is invalid and needs to be fixed before you can subscribe to this list.');}
else
{$(formElem).html("<div class='confirmation'>Thank you for subscribing. We have received your details.</div>");_gaq.push(['_trackPageview','/Cooking_Good_Thanks.htm?e='+emailVal+'&f='+subForm]);}}});return false;});$('.bookmarklink').jFav();});function checkEmail(emailVal){var pattern=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return pattern.test(emailVal);}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.8.9=7(d){g e=$.v({},$.8.9.k,d);g f=e.l;2.w(7(){5(!$(2).3(\'4\')||$(2).3(\'4\')=="#"){$(2).3(\'4\',j.x.4)}5(!$(2).3(\'6\')){$(2).3(\'6\',y.6)}5($.h.z){$(2).3(\'m\',$(2).3(\'4\')).3(\'4\',\'\').3(\'4\',\'A:B(0)\').3(\'C\',\'$.8.9.n(2,"\'+$(2).3(\'6\')+\'","\'+$(2).3(\'m\')+\'")\')}i{$(2).o(p)}});7 p(a){g b=$(2).3(\'4\');g c=$(2).3(\'6\');b=b.E("q:///","F://q/");5($.h.G){j.H.I(b,c)}i 5($.h.J){j.r.K(c,b,\'\')}i 5(L.M.N().O(\'P\')>-1){s(f)}i 5($.h.Q){s(f)}a.R()};t 2};$.8.9.k={l:\'S "T + D" U "V + D" W X, u Y 2 Z u 10 11.\'};$.8.9.n=7(e,a,b){e.12="r";e.6=a;e.4="";e.4=b;e.o();t 13}})(14);',62,67,'||this|attr|href|if|title|function|fn|jFav|||||||var|browser|else|window|defaults|msg|link|OperaBookmark|click|addToFavorites|file|sidebar|alert|return|to|extend|each|location|document|opera|javascript|void|onClick||replace|http|msie|external|AddFavorite|mozilla|addPanel|navigator|userAgent|toLowerCase|indexOf|chrome|safari|preventDefault|Press|Ctrl|or|CMD|for|MAC|add|page|your|bookmarks|rel|false|jQuery'.split('|'),0,{}))
