var hd="http://www.gooseberrypatch.com";var hsd="https://www.gooseberrypatch.com";var hostname="www";var pdb="/gooseberry/products.nsf/";var cats=pdb+"f.categorysearch?openform&definedsearch=";var lloc="|linkloc=keyred";var fm=document.forms[0];var srch=pdb+"v.search?SearchView&Query=";var srchparm="&SearchOrder=4&SearchMax=1000&SearchWV=True&SearchFuzzy=False&start=1&count=1000&strstart=1";function loginRedirect(){var _1=window.location.hostname;var _2=window.location.pathname;var _3=window.location.href;_3=_3.replace("http://","https://");var _4;_4=hsd+"/names.nsf"+"?login&redirectto="+escape(_3.replace("www.",hostname+"."));location.replace(_4)}function logoutRedirect(){var _1=window.location.hostname;var _2=window.location.pathname;var _3=window.location.href;_3=_3.replace("http://","https://");var _4;_4=hsd+"/names.nsf"+"?logout&redirectto="+escape(_3.replace("www.",hostname+"."));location.replace(_4)}function isValidEmail(_5){var re=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test(_5)}function allowNotInString(_7,_8){if(_7.length==0){return(false)}for(Count=0;Count<_7.length;Count++){TempChar=_7.substring(Count,Count+1);if(_8.indexOf(TempChar,0)!=-1){return(false)}}return(true)}var Name=navigator.appName;var Version=parseInt(navigator.appVersion);var ie4=(navigator.userAgent.indexOf("MSIE 4")>0);var ie5=(navigator.userAgent.indexOf("MSIE 5")>0);if(Name=="Microsoft Internet Explorer"){if(ie4==true){sealWin=window.open("/gooseberry/database.nsf/p.explorer","win","toolbar=0,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=400");self.name="mainWin"}}function popupnews(_9){sealWin=window.open(_9,"win","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=584,height=400");self.name="mainWin"}function popUp(_a){sealWin=window.open(_a,"win","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450");self.name="mainWin"}function jsstyleselector(_b,_c){if(_b=="Selector"){alert("Please select a decorating style")}else{window.location=hd+cats+_b+"|linkloc="+_c}}function addEvent(_d,_e,fn,_10){if(_d.addEventListener){_d.addEventListener(_e,fn,_10);return true}else{if(_d.attachEvent){var r=_d.attachEvent("on"+_e,fn);return r}}}function addKeyEvent(){var e=(document.addEventListener)?"keypress":"keydown";addEvent(document,e,ProcessEnterKey,false)}addKeyEvent();function ProcessEnterKey(evt){var _14=evt.target||evt.srcElement,keyCode=evt.keyCode||evt.which;var _15=_14.type;var _16=fm.elements["indexkeyword"];var _17=fm.elements["Username_1"];if((keyCode==13)&&(_15!="textarea")){if(fm.globalkeyword.value!="Enter keyword or item#"){return GlobalKeywordSearch()}else{if(_16){if(_16.value!=""){return doCookbookSearch(fm.indexkeyword,fm.recipecat.options[fm.recipecat.selectedIndex].text,fm.cookbookname.options[fm.cookbookname.selectedIndex].text,fm.cookbookname.options[fm.cookbookname.selectedIndex].text)}}else{if(_17){return doSubmit()}}}}}function trim(_18){var _19=_18;var obj=/^(\s*)([\W\w]*)(\b\s*$)/;if(obj.test(_19)){_19=_19.replace(obj,"$2")}var obj=/ /g;while(_19.match(obj)){_19=_19.replace(obj," ")}return _19}function GlobalKeywordSearch(){var key=fm.globalkeyword.value;var wl="";var _1e=1;key=key.replace(/^\s*|\s*$/g,"");key=trim(key.replace(" & "," "));key=key.replace(",","");key=key.toLowerCase();if((key=="")||(key=="keyword or item")||(key=="keyword or item#")||(key=="enter keyword or item#")){alert("Please enter a value to search on!")}else{if(key=="help"){wl=hd+"/gooseberry/help.nsf/v.pages/f.helpdefault";window.location=wl}else{if(key.indexOf("shipping")!=-1){wl=hd+"/gooseberry/help.nsf/v.pages/f.shopret#sr5";window.location=wl}else{if(key.indexOf("video")!=-1){wl=hd+"/videos";window.location=wl}else{if(key.indexOf("blog")!=-1){wl="http://www.gooseberrypatch.typepad.com/blog/";window.location=wl}else{if(key.indexOf("facebook")!=-1){wl="http://www.facebook.com/gooseberrypatch";window.location= wl}else{if(key.indexOf("twitter")!=-1){wl="http://www.twitter.com/gooseberrypatch";window.location=wl}else{if(key.indexOf("wallpaper")!=-1){wl=hd+"/gooseberry/products.nsf/f.desktopdownloads?openform";window.location=wl}else{if(key=="order status"){wl=hd+"/gooseberry/marketplace.nsf/f.orderstatus";window.location=wl}else{if((key.indexOf(" ")!=-1)&&(key.indexOf(" and ")==-1)&&(key.indexOf(" or ")==-1)){key=replace(key," "," and ")}if(fm.SearchOn[1].checked==true){wl=hd+"/gooseberry/recipe.nsf/v.search?searchview&query="+key+"&searchorder=4&searchmax=15000&searchWV=false&searchfuzzy=false&start=1&count=15000&strstart=1&itemname=All%20Gooseberry%20Patch%20Cookbooks";window.location=wl}else{wl=hd+srch+unescape(key)+srchparm;window.location=wl}}}}}}}}}}}function IsValid(key,_20){var _21=true;var _22;for(i=0;i