var $pc=jQuery;var agt=navigator.userAgent.toLowerCase();var pcj_isIe=agt.indexOf("msie")!=-1;var pcj_isIe6under=false;if(pcj_isIe){pcj_isIe6under=(agt.indexOf("msie 6")!=-1||agt.indexOf("msie 5")!=-1||agt.indexOf("msie 4")!=-1)}var pcj_isSaf=agt.indexOf("safari")!=-1;var pcj_isFf=agt.indexOf("firefox")!=-1;var pcj_isMac=agt.indexOf("mac")!=-1;var pcj_isOpera=agt.indexOf("opera")!=-1;var pcj_pageready=false;var pcj_dataready=false;var pcj_processed=false;var pcShopperId;var pcIsTrusted;var pcFirstName;var pcRepName;var pcRepExt;var pcRepEmail;var pcCartCt;var pcExpDomCt;var pcIsDiscount;function pcj_callext(a,b){$pc.ajax({dataType:"jsonp",jsonp:a,url:b})}function pcj_cookiedomain(){var b=window.location.hostname;var c=b.lastIndexOf(".");if(c<0){return"."+b}else{var a="";if(b.lastIndexOf(".",c-1)>-1){a=b.substr(b.lastIndexOf(".",c-1))}else{a="."+b}return a}}function pcj_cookieread(f){var g=document.cookie;if(g.length==0){return""}var j=f+"=";var a=g.indexOf("; "+j);if(a==-1){a=g.indexOf(j);if(a!=0){return""}}else{a+=2}var h=g.indexOf(";",a);if(h==-1){h=g.length}return unescape(g.substring(a+j.length,h))}$pc.fn.doCall=function(){if(!pcj_isMgr){var a=false;if((pcj_cdomain==pcj_cookiedomain())&&(pcj_call)){var b=pcj_cookieread(pcj_cname);if(b.length>0){a=true}}return(a||pcj_callov)}};if($pc(this).doCall()){pcj_callext("pcj_setdata",pcj_url_fos.replace("http://","https://")+"external/json/PcSetData.aspx"+pcj_args+"17368&prog_id="+pcj_prog_id+"&callback=pcj_setdata")}var secSet=null;var activeTimer=null;var bHover="";var img="";var pcj_date=new Date();var pcj_msgCt=0;function pcj_ralert(a){if($pc("#pcj_note").length&&a){pcj_msgCt=pcj_msgCt+1;$pc("#pcj_note").append(pcj_msgCt+". "+a+"<br>")}}function pcSetLogIn(b,a){}function pcSetLogInEx(e,a,c,d,b){}function pchj_setIdpRedirect(a){pcj_idpredirect=a}function pchj_hov(a){if(document.getElementById(a+"a")){document.getElementById(a+"a").style.visibility="hidden"}else{if(a=="pch_pwx"){document.getElementById("pch_pw_dd").className="pchb pch_ov_ugo"}else{if(a=="pch_shx"){document.getElementById("pch_sh_dd").className="pchb pch_ov_ugo"}}}}function pchj_off(a){if(document.getElementById(a+"a")){document.getElementById(a+"a").style.visibility=""}else{if(a=="pch_pwx"){document.getElementById("pch_pw_dd").className="pchb pch_ov_dgo"}else{if(a=="pch_shx"){document.getElementById("pch_sh_dd").className="pchb pch_ov_dgo"}}}}function pcj_blurlogin(a){if(a=="load"){if(document.getElementById("loginname").value!=""){document.getElementById("pch_undiv").style.display="none"}}else{if(a=="over"){if(document.getElementById("pch_undiv").style.display=="block"){document.getElementById("pch_undiv").style.display="none"}}else{if(document.getElementById("loginname").value==""){if(document.getElementById("login_focus").value!="true"){document.getElementById("pch_undiv").style.display="block";if(!pct_loginnameDone){document.getElementById("pch_login").onmousemove=""}}}}}}function pcj_blurpass(a){if(a=="load"){if(document.getElementById("password").value!=""){document.getElementById("pch_pwdiv").style.display="none";return true}}else{if(a=="over"){if(document.getElementById("pch_pwdiv").style.display=="block"){document.getElementById("pch_pwdiv").style.display="none"}}else{if(document.getElementById("password").value==""){if(document.getElementById("pass_focus").value!="true"){document.getElementById("pch_pwdiv").style.display="block";pct_loginnameDone=false}}}}}function pcj_checkpass(){if(!pct_loginnameDone){if(pcj_blurpass("load")){pct_loginnameDone=true;document.getElementById("pch_login").onmousemove=""}}}function pcj_passwatch(){if((pct_loginnameField.onfocus)&&(!pct_loginnameDone)){document.getElementById("pch_login").onmousemove=pcj_checkpass}else{if(pct_loginnameDone){document.getElementById("pch_login").onmousemove=""}}}function pchj_login_action(a){var b=(pcj_login_root_url);if(!pcj_isCart){var c=(pcj_url_mya+"login_redirect.aspx");b+="&signalnonorig="+encodeURIComponent(c);if(pcj_idpredirect!=""){b+="&"+pcj_ssoTargetKey+"="+pcj_idpredirect}}a.action=b;return true}function pchj_login(){var a;if(document.pchFL){a=document.pchFL}else{a=document.forms[0]}if(a.__VIEWSTATE){a.__VIEWSTATE.name="NOVIEWSTATE"}if(a.__EVENTTARGET){a.__EVENTTARGET.name="NOEVENTTARGET"}pchj_login_action(a);a.method="POST";pchj_mout("pch_pw")}function pchj_login_submit(a){a.submit()}function pcj_key(b,a){if((a&&a.which&&a.which==13)||(a&&a.keyCode&&a.keyCode==13)){b}}function pchj_search(a){var b;var c=true;if(document.pchFS){b=document.pchFS}else{b=document.forms[0]}var f=b.pch_active_search.value;var d=b.elements[f+"_action"].value;var e=b.elements[f+"_field"].value;var g=b.searchField.value;if(b.elements[e]){b.elements[e].value=g}else{b.searchField.name=e}if(f=="pch_sdomain"){if(!pchj_domain(g)){c=false;b.searchField.value=""}}if(f=="pch_swhois"){if(!pchj_whois(g)){c=false;b.searchField.value=""}}if(f=="pch_ssite"){if(!pchj_site(g)){c=false;b.searchField.value=""}}if(f=="pch_shelp"){var h=window.open(d+"&"+e+"="+g,"_pch_help","left=10,bottom=10,resizable=yes,scrollbars=yes,width=800,height=500");if(h){h.focus()}document.getElementById("pch_active_text").value="Help Center Search";b.searchField.value=document.getElementById("pch_active_text").value;b.searchField.className="pch_t11 pch_ti pch_i_ss";c=false}else{b.target="_self";b.method="POST"}if(c){if(b.__VIEWSTATE){b.__VIEWSTATE.name="NOVIEWSTATE"}b.action=d;b.submit()}return pchj_cancelEvent(a)}function pchj_cancelEvent(a){if(!a){return false}a.returnValue=false;a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}return false}function pchj_inApp_hideDDs(a){pchjNav("pch_dn",a,"hide","ov");pchjNav("pch_ho",a,"hide","ov");pchjNav("pch_ws",a,"hide","ov");pchjNav("pch_em",a,"hide","ov");pchjNav("pch_sc",a,"hide","ov");pchjNav("pch_bs",a,"hide","ov")}function pchj_notaDD(a){return false}function pchj_lnk(a){if(a.match(pcj_url_help)){window.open(a,"_pch","left=20,top=20,resizable=yes,scrollbars=yes,width=800,height=620")}else{window.open(a,"_self")}}function pcj_win(a){window.open(a,"_pct")}function pcj_pop(c,b,d,a){window.open(c,b,"left=200,top=50,resizable=yes,scrollbars=yes,width="+d+",height="+a)}function pchj_cartclose(){atlChiClose()}function pchj_internationalclose(){atlIsiClose()}function pchj_mout(a){bHover="";window.status="";pchj_setDDTimeout(a)}function pchj_movr(a,b){pcj_blurBox();if(pcj_isSaf){bHover=b;window.status=b;pchj_setDD(a,b,false)}else{bHover=b;window.status=b;setTimeout("pchj_setDD('"+a+"', '"+b+"', false)",400)}}function pchj_uout(a){pchj_setDDTimeout(a)}function pchj_uovr(a){pchj_setDD(a,"",true)}function pchj_pout(a,b){window.status="";pchj_setDDTimeout(a)}function pchj_povr(a,c,b){window.status=c;document.getElementById(a).style.display="";pchj_setDD(a,"",true)}function pchj_sout(d,c,b){var a=document.getElementById(d).style.backgroundColor.toString();if((a!="#bbb")&&(a!="rgb(187, 187, 187)")){document.getElementById(d).style.backgroundColor="#fff"}window.status="";pchj_setDDTimeout(c)}function pchj_sovr(e,b,d,c){var a=document.getElementById(e).style.backgroundColor.toString();if((a!="#bbb")&&(a!="rgb(187, 187, 187)")){document.getElementById(e).style.backgroundColor="#eee"}window.status=d;pchj_setDD(b,"",true)}function pchj_findDiv(c,a){var e,b,f;if(!a){a=document}if((e=c.indexOf("?"))>0&&parent.frames.length){a=parent.frames[c.substring(e+1)].document;c=c.substring(0,e)}if(!(f=a[c])&&a.all){f=a.all[c]}for(b=0;!f&&b<a.forms.length;b++){f=a.forms[b][c]}for(b=0;!f&&a.layers&&b<a.layers.length;b++){f=pchj_findDiv(c,a.layers[b].document)}if(!f&&document.getElementById){f=document.getElementById(c)}return f}function pchjNav(){var d,e,c,a=pchjNav.arguments,b=0;if(!((a[b]==a[b+1])&&(a[b+2]=="hide")&&(a[b+3]=="ov"))){if((c=pchj_findDiv(a[b]))!=null){e=a[b+2];if(c.style){c=c.style;e=(e=="show")?"visible":(e="hide")?"hidden":e}c.visibility=e;if(e=="hidden"){pchj_off(a[b]+"x")}if(a[b]=="pch_sh"){e=(e=="visible")?"":(e="hidden")?"none":e;c.display=e}}}}function pchj_hideDDs(a){pchjNav("pch_pw",a,"hide","ov");pchjNav("pch_sh",a,"hide","ov");pchj_inApp_hideDDs(a);pchj_showElement("SELECT");pchj_showElement("OBJECT");pchj_showElement("EMBED")}function pchj_hideDD(a){pchj_off(a+"x");pchjNav(a,"","hide");pchj_hideDDs("")}function pchj_setDD(b,c,a){pchj_hideDDs(b);if((bHover==c)||(a)){pchjNav(b,"","show");pchj_hov(b+"x");if(secSet!=null){window.clearTimeout(secSet)}if(document.getElementById(b)){if(pcj_isIe6under){pchj_hideElement("SELECT",document.getElementById(b))}}}}function pchj_setDDTimeout(a){if(secSet!=null){window.clearTimeout(secSet)}secSet=window.setTimeout('pchj_hideDD("'+a+'")',400)}function pchj_hideElement(elmID,overDiv){for(i=0;i<document.getElementsByTagName(elmID).length;i++){obj=document.getElementsByTagName(elmID)[i];if(!obj||!obj.offsetParent){continue}objLeft=obj.offsetLeft-overDiv.offsetParent.offsetLeft;objTop=obj.offsetTop;objParent=obj.offsetParent;while((objParent.tagName.toUpperCase()!="BODY")&&(objParent.tagName.toUpperCase()!="HTML")){objLeft+=objParent.offsetLeft;objTop+=objParent.offsetTop;objParent=objParent.offsetParent}objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;if((overDiv.offsetLeft+overDiv.offsetWidth)<=objLeft){}else{if((overDiv.offsetParent.offsetTop+overDiv.offsetHeight+20)<=objTop){}else{if(overDiv.offsetParent.offsetTop>=eval(objTop+objHeight)){}else{if(overDiv.offsetLeft>=eval(objLeft+objWidth)){}else{obj.style.visibility="hidden"}}}}}}function pchj_showElement(a){for(i=0;i<document.getElementsByTagName(a).length;i++){obj=document.getElementsByTagName(a)[i];if(!obj||!obj.offsetParent){continue}if(pcj_isIe&&(obj.readyState==4)&&(obj.tagName.toUpperCase()=="OBJECT")){continue}if((obj.id.toLowerCase().indexOf("apollo")>0)&&(obj.tagName.toUpperCase()=="OBJECT")){continue}obj.style.visibility=""}}function pchj_key(c,a,b){var d;if(window.event){d=window.event.keyCode}else{if(a){d=a.which}}if(d==13){pchj_search(a)}}function pchj_domain(c){var a=false;if(c!=""){var b=/[^a-zA-Z0-9-\s.]+/;if(b.test(c)){alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.")}else{a=true}}else{alert("Please enter a domain name.")}return a}function pchj_site(c){var a=false;if((c!="")&&(c.replace(" ","")!="Search")){var b=/[^a-zA-Z0-9-\s."']+/;if(b.test(c)){alert("Invalid characters in search.")}else{a=true}}else{alert("Please enter a search term.")}return a}function pchj_whois(c){var a=false;if(c!=""){var b=/[<>/\"'%;()&$#_*@{}^!:/+=~`,?\\]/;if(b.test(c)){alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.")}else{a=true}}else{alert("Please enter a domain name.")}return a}function pchj_state(a){var c=document.getElementById("pch_active_search").value;document.getElementById("pch_active_search").value=a;if((a!="pch_sdomain")&&(document.getElementById("pch_sdomain"))){document.getElementById("pch_sdomain").style.backgroundColor="#fff"}document.getElementById(c).style.backgroundColor="#fff";document.getElementById(a).style.backgroundColor="#bbb";var b=document.getElementById("searchField");b.focus();b.value=b.value}var atl_pc_insert_styles="atlInsertStyles";function atlPCShowElement(a){for(i=0;i<document.getElementsByTagName(a).length;i++){obj=document.getElementsByTagName(a)[i];if(!obj||!obj.offsetParent){continue}if(pcj_isIe&&(obj.readyState==4)&&(obj.tagName.toUpperCase()=="OBJECT")){continue}obj.style.visibility=""}}function atlPCHideElement(elmID,overDiv){for(i=0;i<document.getElementsByTagName(elmID).length;i++){obj=document.getElementsByTagName(elmID)[i];if(!obj||!obj.offsetParent||(obj.id=="foschi_ddlCurrency")){continue}objLeft=obj.offsetLeft-overDiv.offsetParent.offsetLeft;objTop=obj.offsetTop;objParent=obj.offsetParent;while((objParent.tagName.toUpperCase()!="BODY")&&(objParent.tagName.toUpperCase()!="HTML")){objLeft+=objParent.offsetLeft;objTop+=objParent.offsetTop;objParent=objParent.offsetParent}objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;if((overDiv.offsetLeft+overDiv.offsetWidth)<=objLeft){}else{if((overDiv.offsetParent.offsetTop+overDiv.offsetHeight+20)<=objTop){}else{if(overDiv.offsetParent.offsetTop>=eval(objTop+objHeight)){}else{if(overDiv.offsetLeft>=eval(objLeft+objWidth)){}else{obj.style.visibility="hidden"}}}}}}function atlPCFindChildNode(d,c){var b=null;if(d.hasChildNodes){var a=d.firstChild;while(a!=null){if(a.id==c){b=a;break}a=a.nextSibling}}return b}function atlPCGoToUrl(a){window.location=a}function atlPCSetCookie(d,e){var b=new Date();var c=new Date(Date.parse(b.getDay()+"/"+b.getMonth()+"/"+(b.getFullYear()+1)));var a=d+"="+e+"; expires="+c.toGMTString()+"; path=/; domain="+pcj_cookiedomain();document.cookie=a}function atlPCFillDiv(f,e,d){if((d!=null)&&(f!=null)){if(d.StyleSheet.length>0){var c=document.getElementsByTagName("head").item(0);var b=atlPCFindChildNode(c,e);if(b==null){var a=document.createElement("link");a.setAttribute("id",e);a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href",d.StyleSheet);a.setAttribute("media","screen");c.appendChild(a)}}f.innerHTML=d.Html}}var atl_chi_targetDiv;var atl_chi_siteUrl;var atl_chi_cachedFlag=false;var atl_chi_curchanged=false;var atl_chi_skipshow=false;var atl_chi_querystring="";var atl_chi_time=pcj_date.getTime();function atlChiInitializeEx(c,b,a){atl_chi_querystring=a;atl_chi_siteUrl=b;atl_chi_targetDiv=c;atl_chi_cachedFlag=false}function atlChiClearCache(){atl_chi_cachedFlag=false}function atlChiShowInt(){if(atl_chi_targetDiv!=null){atl_chi_targetDiv.style.display="block";if(pcj_isIe6under){atlPCHideElement("SELECT",atl_chi_targetDiv)}}}function atlChiShowEx(a,b){if(atl_chi_cachedFlag==true){var c=new Date();if((c.getTime()-atl_chi_time)>180000){atl_chi_cachedFlag=false;atl_chi_time=c.getTime()}}if(atl_chi_cachedFlag==true){atlChiShowInt()}else{atlChiCallForContentEx(a,b)}}function atlChiCallForContent(a){atlChiCallForContentEx(a,"")}function atlChiCallForContentEx(a,b){var c=atlChiGetInitialRequest("Cart/CartHeaderInsert.aspx","atlChiFillDiv");if((a!=null)&&(a!="")){c=c+"&currencyType="+a}if((b!=null)&&(b!="")){c=c+"&marketplace="+b}atl_chi_cachedFlag=true;pcj_callext("atlChiFillDiv",c)}function atlChiDeleteItem(c,a,b){atlChiExecuteCommandAndCallForContent("deleteItem",c,a,b)}function atlChiEmptyCart(b){var a=confirm("You have selected the empty cart option. Please confirm that you'd like to empty the contents of your cart.");if(a){atlChiExecuteCommandAndCallForContent("emptyCart",null,null,b)}}function atlChiExecuteCommandAndCallForContent(a,f,c,d){var b=(a!=null)&&(a!="");if(b){var e=atlChiGetInitialRequest("Cart/CartHeaderInsert.aspx","atlChiFillDiv");e+="&action="+a;if((f!=null)){e+="&rowId="+f}if((c!=null)){e+="&itemId="+c}if((d!=null)){e+="&marketplace="+d}atl_chi_cachedFlag=true;pcj_callext("atlChiFillDiv",e)}}function atlChiGetInitialRequest(b,a){var c=atl_chi_siteUrl+b;if(atl_chi_querystring.length==0){c=c+"?callback=atlChiFillDiv"}else{c=c+atl_chi_querystring+"&callback="+a}return c}function atlChiFillDiv(a){if((a!=null)&&(atl_chi_targetDiv!=null)){atlPCFillDiv(atl_chi_targetDiv,atl_pc_insert_styles,a);atl_chi_cachedFlag=true;var c=new Date();atl_chi_time=c.getTime();if(!atl_chi_skipshow){atlChiShowInt()}if(document.getElementById("chi_cart_total")){var b=document.getElementById("chi_cart_total").innerHTML;pcUpdateCart(b)}}}function atlChiClose(){atl_chi_skipshow=false;if(atl_chi_targetDiv!=null){atl_chi_targetDiv.style.display="none";if(pcj_isIe6under){atlPCShowElement("SELECT")}if(atl_chi_curchanged){var a=new RegExp("[&|?]currencytype=[^&]*","i");var c=window.location.href.replace(a,"");var b=new RegExp("#.*","");c=c.replace(b,"");window.location.href=c}}}function atlChiGoToUrl(a){window.location=a}var pchj_atlChiChangeCurrencyExCBImpl=null;function _atlChiChangeCurrencyExCBImpl(c,a){if(!(this instanceof _atlChiChangeCurrencyExCBImpl)){return new _atlChiChangeCurrencyExCBImpl(c,a)}this.selectedCurrency=c;this.marketplace=a;var b=this;this.invoke=function(){atl_chi_curchanged=true;atl_chi_skipshow=true;atlChiCallForContentEx(c,a)}}function atlChiChangeCurrencyExCB(a){if((a!==null)&&(a.Success)&&(pchj_atlChiChangeCurrencyExCBImpl instanceof _atlChiChangeCurrencyExCBImpl)){pchj_atlChiChangeCurrencyExCBImpl.invoke()}}function atlChiChangeCurrencyEx(b,e,c){var a=document.getElementById(b);var d=a.options[a.selectedIndex].value;pchj_atlChiChangeCurrencyExCBImpl=new _atlChiChangeCurrencyExCBImpl(d,c);pchj_savePreferences(d,"","atlChiChangeCurrencyExCB")}function atlChiShowMarketplaceTab(){atl_chi_skipshow=true;atlChiCallForContentEx("","true")}function atlChiShowStandardTab(){atl_chi_skipshow=false;atlChiCallForContentEx("","false")}var atl_isi_targetDiv;var atl_isi_siteUrl;var atl_isi_cachedFlag;var atl_isi_querystring="";var atl_isi_newflagcode;function atlIsiInitializeEx(c,b,a){atl_isi_querystring=a;atl_isi_siteUrl=b;atl_isi_targetDiv=c;atl_isi_cachedFlag=false}function atlIsiClearCache(){atl_isi_cachedFlag=false}function atlIsiShowInt(){if(atl_isi_targetDiv!=null){atl_isi_targetDiv.style.display="block";if(pcj_isIe6under){atlPCHideElement("SELECT",atl_isi_targetDiv)}}}function atlIsiShow(){if(atl_isi_cachedFlag==true){atlIsiShowInt()}else{atlIsiCallForContent()}}function atlIsiCallForContent(){var a=atl_isi_siteUrl+"Cart/InternationalSelectionInsert.aspx";if(atl_isi_querystring.length==0){a=a+"?callback=atlIsiFillDiv"}else{a=a+atl_isi_querystring+"&callback=atlIsiFillDiv"}atl_isi_cachedFlag=true;pcj_callext("atlIsiFillDiv",a)}function atlIsiFillDiv(a){if((a!=null)&&(atl_isi_targetDiv!=null)){atlPCFillDiv(atl_isi_targetDiv,atl_pc_insert_styles,a);atl_isi_cachedFlag=true;atlIsiShowInt()}}function atlIsiClose(){if(atl_isi_targetDiv!=null){atl_isi_targetDiv.style.display="none";if(pcj_isIe6under){atlPCShowElement("SELECT")}}}function atlIsiChangeCountry(d,c){var b=document.getElementById("textname");atl_isi_newflagcode=c;var e=c;document.getElementById("flagimg").className="fosisi_flag_base fosisi_flag_image_"+c;b.innerHTML="&nbsp; "+d;var a=document.getElementById("isiOffer_ca");if(a!=null){if(c=="ca"){a.style.display="block"}else{a.style.display="none"}}}var pchj_atlIsiSave3CBImpl=null;function _atlIsiSave3CBImpl(a,c,d){if(!(this instanceof _atlIsiSave3CBImpl)){return new _atlIsiSave3CBImpl(a,c,d)}this.flag=a;this.selectedCountryCode=c;this.suffix=d;var b=this;this.invoke=function(){if(b.flag!=b.selectedCountryCode){var j="roam"+b.suffix;atlPCSetCookie(j,"roam=1")}var e=new RegExp("[&|?]currencytype=[^&]*","i");var h=window.location.href.replace(e,"");var f=new RegExp("#.*","");h=h.replace(f,"");var g=new RegExp("[&|?]cflag=[^&]*","i");h=h.replace(g,"");window.location.href=h}}function atlIsiSave3CB(a){if((a!==null)&&(a.Success)&&(pchj_atlIsiSave3CBImpl instanceof _atlIsiSave3CBImpl)){pchj_atlIsiSave3CBImpl.invoke()}}function atlIsiSave3(a,b,h){var d=document.getElementsByName("fosisi_radiocurrencies");var j,e=d.length;for(j=0;j<e;j++){if(d[j].checked){break}}var g=d[j].value;var f=a;if(atl_isi_newflagcode!=undefined){f=atl_isi_newflagcode}else{f=a}var c=atlIsiGetFlag(pcj_pl_id);pchj_atlIsiSave3CBImpl=new _atlIsiSave3CBImpl(c,f,h);pchj_savePreferences(g,f,"atlIsiSave3CB")}function atlIsiGetCrncyType(e){var b="";var d=pchj_getPreferencesCookieValue(e,"gdshop_currencyType");if(d.length>0){b=d}else{var a="currency"+e;b=pcj_cookieread(a);if(b.length==0){b="USD"}else{var c=b.indexOf("=");if((c>-1)&&(c<b.length)){b=b.substring(c+1,b.length)}}}return b}function atlIsiGetFlag(e){var b="us";var d=pchj_getPreferencesCookieValue(e,"countryFlag");if(d.length>0){b=d}else{var c="flag"+e;b=pcj_cookieread(c);if(b.length>0){var a=b.indexOf("=");if((a>-1)&&(a<b.length)){b=b.substring(a+1,b.length)}}if(b.length==0){b="us"}}return b}function pchj_getPreferencesCookieValue(e,b){var a="";var c=pcj_cookieread("preferences"+e);if(c!==null){var d=c.split("&");if(d.length>0){$pc.each(d,function(f,h){var g=h.split("=");if(g.length===2){if(g[0]===b){a=g[1];return false}}})}}return a}function pchj_savePreferences(b,c,a){var d=atl_isi_siteUrl+"external/json/savepreferences.aspx?prog_id="+pcj_prog_id+"&currency="+b+"&flag="+c+"&callback="+a;$pc.ajax({dataType:"jsonp",jsonp:a,url:d,async:false})}function atlIsi_showhide(b){if(document.getElementById){var a=document.getElementById(b);if(a){if(a.style.display==""||a.style.display=="block"){a.style.display="none"}else{a.style.display="block"}}}}var atl_sap_targetDiv;var atl_sap_siteUrl;var atl_sap_querystring="";var atl_sap_cachedFlag=false;function atlSapInitializeEx(c,b,a){atl_sap_siteUrl=b;atl_sap_targetDiv=c;atl_sap_querystring=a}function atlSapShowInt(){if(atl_sap_targetDiv!=null){atl_sap_targetDiv.style.display="block";if(pcj_isIe6under){atlPCHideElement("SELECT",atl_sap_targetDiv)}}}function atlSapShow(){if(atl_sap_cachedFlag==true){atlSapShowInt()}else{atlSapCallForContent()}}function atlSapCallForContent(){var a=atl_sap_siteUrl+"Products/ShowAllProductsInsert.aspx";if(atl_sap_querystring.length==0){a=a+"?callback=atlSapFillDiv"}else{a=a+atl_sap_querystring+"&callback=atlSapFillDiv"}atl_sap_cachedFlag=true;pcj_callext("atlSapFillDiv",a)}function atlSapFillDiv(a){if((a!=null)&&(atl_sap_targetDiv!=null)){atlPCFillDiv(atl_sap_targetDiv,atl_pc_insert_styles,a);atl_sap_cachedFlag=true;atlSapShowInt()}}function atlSapClose(){if(atl_sap_targetDiv!=null){atl_sap_targetDiv.style.display="none";if(pcj_isIe6under){atlPCShowElement("SELECT")}}}function pcsb_pl_showhide(c){if(document.getElementById){var b=document.getElementById(c);var a=0;if(b){if(b.style.display==""||b.style.display=="block"){b.style.display="none"}else{b.style.display="";a=1}pcsb_pl_SetSidebarNodeState(c,a)}}}function pcsb_MyProductsOpen(){var b="pcsb_myproductsdiv";if(document.getElementById){var a=document.getElementById(b);if(a){if(a.style.display=="none"){pcsb_showhide(b)}}}}function pcsb_MyProductsClose(){var b="pcsb_myproductsdiv";if(document.getElementById){var a=document.getElementById(b);if(a){if(a.style.display!="none"){pcsb_showhide(b)}}}}function pcsb_MyProductsToggle(){pcsb_showhide("pcsb_myproductsdiv")}function pcsb_pl_SetSidebarNodeState(a,b){pcsb_pl_cookie.pcsb_pl_setCookie(a,b)}function pcsb_pl_GetSidebarNodeState(a){return pcsb_pl_cookie.pcsb_pl_getCookie(a)}pcsb_pl_cookie={pcsb_pl_cookieInit:function(a){pcsb_pl_cookie._pcsb_pl_plid=a;pcsb_pl_cookie._pcsb_pl_cookiename="LSBNodeStates"},pcsb_pl_getCookie:function(c){var d=pcsb_pl_cookie._pcsb_pl_getCookieValue();if((d!=null)&&(d!="")){var a=d.split("#");for(i=0;i<a.length;++i){var b=a[i].split("-");if(b[0]==c){if(b.length>1){return b[1]}break}}}return null},pcsb_pl_setCookie:function(c,d){var b=new Date();b.setFullYear(b.getFullYear()+1);var a=pcsb_pl_cookie._pcsb_pl_buildCookieString(c,d);pcsb_pl_cookie._pcsb_pl_setCookie(a,b,"/",pcsb_pl_cookie._pcsb_pl_getCookieDomain())},pcsb_pl_showlaststate:function(e,d){var a=pcsb_pl_cookie.pcsb_pl_getCookie(e);var b=(a==null)?(d==1):(a==1);if(document.getElementById){var c=document.getElementById(e);if(c){if((b&&c.style.display=="none")||(!b&&c.style.display!="none")){pcsb_pl_cookie._pcsb_pl_showhide(e)}}}},_pcsb_pl_setCookie:function(e,c,d,b){var a=pcsb_pl_cookie._pcsb_pl_cookiename+pcsb_pl_cookie._pcsb_pl_plid+"="+e+((c)?"; expires="+c.toGMTString():"")+((d)?"; path="+d:"")+((b)?"; domain="+b:"");document.cookie=a},_pcsb_pl_showhide:function(b){if(document.getElementById){var a=document.getElementById(b);if(a){if(a.style.display==""||a.style.display=="block"){a.style.display="none"}else{a.style.display=""}}}},_pcsb_pl_getCookieValue:function(){var a=pcsb_pl_cookie._pcsb_pl_cookiename+pcsb_pl_cookie._pcsb_pl_plid;return pcj_cookieread(a)},_pcsb_pl_buildCookieString:function(d,f){var e="";var b=true;var g=pcsb_pl_cookie._pcsb_pl_getCookieValue();if((g!=null)&&(g!="")){var a=g.split("#");for(i=0;i<a.length;++i){var c=a[i].split("-");if(c[0]==d){c[1]=f;a[i]=c.join("-");b=false;break}}e=a.join("#")}if(b){if(e.length>0){e+="#"}e+=(d+"-"+f)}return escape(e)},_pcsb_pl_getCookieDomain:function(){var b=window.location.hostname;var a="";var c=b.lastIndexOf(".");if(c<0){a="."+b}else{if(b.lastIndexOf(".",c-1)>-1){a=b.substr(b.lastIndexOf(".",c-1))}else{a="."+b}}return a}};function pcj_blurBox(){if(!pcj_isFf){$pc("input[id*='domain']").blur()}}function pcj_bookmark(){var b=pcj_name;var c=pcj_url_fos+"default.aspx?prog_id="+pcj_prog_id;var a=pcj_isMac?"Command/Cmd":"CTRL";if(pcj_isIe){window.external.AddFavorite(c,b)}else{if(pcj_isFf){window.sidebar.addPanel(b,c,"")}else{if(pcj_isSaf){alert("Please press "+a+" + D to bookmark this site.")}else{alert("Your browser does not support automatic bookmarks. You will need to do this manually.")}}}}function pcSetCart(a){atlChiClearCache();pcUpdateCart(a)}function pcUpdateCart(a){if($pc("#pch_ctx").length&&$pc("#pch_ct_count").length){var c="";var b="Cart is empty.";if(a>0){if(a==1){c=a;b=a+" item in your cart"}if(a>99){c="**";b=a+" items in your cart"}else{c=a;b=a+" items in your cart"}$pc("#pch_ctx").removeClass().addClass("pchb pch_ct_but_full")}else{if(a<0){b="Click here to view cart.";$pc("#pch_ctx").removeClass().addClass("pchb pch_ct_but_empty");$pc("#pch_ctx").removeAttr("onClick").click(function(){pchj_lnk(pcj_url_fos+"gdshop/basket.asp"+pcj_args+"13561&prog_id="+pcj_prog_id)})}else{$pc("#pch_ctx").removeClass().addClass("pchb pch_ct_but_empty")}}$pc("#pch_ct_count").html(c);$pc("#pch_ct_count_tip").attr("title",b)}}function pcj_setdata(a){if(a!=null){pcShopperId=a.pcShopperId;pcIsTrusted=a.pcIsTrusted;pcFirstName=a.pcFirstName;pcRepName=a.pcRepName;pcRepExt=a.pcRepExt;pcRepEmail=a.pcRepEmail;pcCartCt=a.pcCartCt;pcExpDomCt=a.pcExpDomCt;pcIsDiscount=a.pcIsDiscount;pcj_dataready=true;if((pcj_pageready||$pc("#pcj_setgo").length)&&!pcj_processed){pcj_setPage()}}}function pcj_setPage(){if($pc("#pch_login").length){if(pcIsTrusted){$pc("#pch_login").hide();$pc("#pch_logout").show()}else{$pc("#pch_login").show();$pc("#pch_logout").hide()}if(pcFirstName.length!=0){if(pcFirstName.length<30){$pc("#pch_sn").html("&nbsp;"+pcFirstName)}else{pcFirstName=pcFirstName.substring(0,30);$pc("#pch_sn").html("&nbsp;"+pcFirstName+"...")}}}pcUpdateCart(pcCartCt);if($pc("#pct_rds").length){if(pcIsDiscount){$pc("#pct_rds_msg").html("<b>Special Pricing Account</b><br/>See discounts in shopping cart").css("background","transparent url("+pcj_url_img+"fos/icn/icn_discountshopper.png) top left no-repeat");$pc("#pct_rds").show()}else{$pc("#pct_rds").hide()}}if($pc("#expCt").length){if(pcExpDomCt>0){if(pcExpDomCt==1){$pc("#expCt").html("ALERT, You have "+pcExpDomCt+" Domain Expiring")}else{$pc("#expCt").html("ALERT, You have "+pcExpDomCt+" Domains Expiring")}$pc("#pct_exp").show()}else{$pc("#pct_exp").hide()}}pcj_processed=true;$pc(this).pcj_check_login();$pc(this).pcj_check_pass()}$pc.fn.pcj_check_login=function(){if($pc("#loginname").length){if($pc("#loginname").val().length>0){$pc("#pch_undiv").css("display","none")}else{$pc("#pch_undiv").css("display","block")}}};$pc.fn.pcj_check_pass=function(){if($pc("#password").length){if($pc("#password").val().length>0){$pc("#pch_pwdiv").css("display","none")}else{$pc("#pch_pwdiv").css("display","block")}}};$pc(document).ready(function(){pcj_pageready=true;if(pcj_dataready&&!pcj_processed){pcj_setPage()}if(pcj_inApp!="parkweb"){$pc("#"+$pc("#pch_active_search").val()).css("backgroundColor","#bbb");$pc("#searchField").val($pc("#pch_active_text").val())}if((pcj_isIe||pcj_isFf)&&($pc("#bookLnk").length)){$pc("#bookLnk").show();$pc("#pcf_bookmark").css("cursor","pointer").click(function(){pcj_bookmark()}).hover(function(){$pc(this).addClass("pch_tu")},function(){$pc(this).removeClass("pch_tu")})}setTimeout("$pc(this).pcj_check_login()",300);setTimeout("$pc(this).pcj_check_pass()",300)});
