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(b,a){$pc.ajax({dataType:"jsonp",jsonp:b,url:a})}function pcj_cookiedomain(){var c=window.location.hostname;var b=c.lastIndexOf(".");if(b<0){return"."+c}else{var a="";if(c.lastIndexOf(".",b-1)>-1){a=c.substr(c.lastIndexOf(".",b-1))}else{a="."+c}return a}}function pcj_cookieread(j){var h=document.cookie;if(h.length==0){return""}var g=j+"=";var a=h.indexOf("; "+g);if(a==-1){a=h.indexOf(g);if(a!=0){return""}}else{a+=2}var f=h.indexOf(";",a);if(f==-1){f=h.length}return unescape(h.substring(a+g.length,f))}$pc.fn.doCall=function(){if(!pcj_isMgr){var b=false;if((pcj_cdomain==pcj_cookiedomain())&&(pcj_call)){var a=pcj_cookieread(pcj_cname);if(a.length>0){b=true}}return(b||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,d,c,a,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(b){var c=(pcj_login_root_url);if(!pcj_isCart){var a=(pcj_url_mya+"login_redirect.aspx");c+="&signalnonorig="+encodeURIComponent(a);if(pcj_idpredirect!=""){c+="&"+pcj_ssoTargetKey+"="+pcj_idpredirect}}b.action=c;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(c){var e;var a=true;if(document.pchFS){e=document.pchFS}else{e=document.forms[0]}var b=e.pch_active_search.value;var d=e.elements[b+"_action"].value;var h=e.elements[b+"_field"].value;var g=e.searchField.value;if(e.elements[h]){e.elements[h].value=g}else{e.searchField.name=h}if(b=="pch_sdomain"){if(!pchj_domain(g)){a=false;e.searchField.value=""}}if(b=="pch_swhois"){if(!pchj_whois(g)){a=false;e.searchField.value=""}}if(b=="pch_ssite"){if(!pchj_site(g)){a=false;e.searchField.value=""}}if(b=="pch_shelp"){var f=window.open(d+"&"+h+"="+g,"_pch_help","left=10,bottom=10,resizable=yes,scrollbars=yes,width=800,height=500");if(f){f.focus()}document.getElementById("pch_active_text").value="Help Center Search";e.searchField.value=document.getElementById("pch_active_text").value;e.searchField.className="pch_t11 pch_ti pch_i_ss";a=false}else{e.target="_self";e.method="POST"}if(a){if(e.__VIEWSTATE){e.__VIEWSTATE.name="NOVIEWSTATE"}e.action=d;e.submit()}return pchj_cancelEvent(c)}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(b,c,a,d){window.open(b,c,"left=200,top=50,resizable=yes,scrollbars=yes,width="+a+",height="+d)}function pchj_cartclose(){atlChiClose()}function pchj_internationalclose(){atlIsiClose()}function pchj_mout(a){bHover="";window.status="";pchj_setDDTimeout(a)}function pchj_movr(b,a){pcj_blurBox();if(pcj_isSaf){bHover=a;window.status=a;pchj_setDD(b,a,false)}else{bHover=a;window.status=a;setTimeout("pchj_setDD('"+b+"', '"+a+"', false)",400)}}function pchj_uout(a){pchj_setDDTimeout(a)}function pchj_uovr(a){pchj_setDD(a,"",true)}function pchj_pout(b,a){window.status="";pchj_setDDTimeout(b)}function pchj_povr(c,b,a){window.status=b;document.getElementById(c).style.display="";pchj_setDD(c,"",true)}function pchj_sout(c,d,a){var b=document.getElementById(c).style.backgroundColor.toString();if((b!="#bbb")&&(b!="rgb(187, 187, 187)")){document.getElementById(c).style.backgroundColor="#fff"}window.status="";pchj_setDDTimeout(d)}function pchj_sovr(d,e,c,b){var a=document.getElementById(d).style.backgroundColor.toString();if((a!="#bbb")&&(a!="rgb(187, 187, 187)")){document.getElementById(d).style.backgroundColor="#eee"}window.status=c;pchj_setDD(e,"",true)}function pchj_findDiv(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=pchj_findDiv(f,e.layers[b].document)}if(!a&&document.getElementById){a=document.getElementById(f)}return a}function pchjNav(){var e,a,d,b=pchjNav.arguments,c=0;if(!((b[c]==b[c+1])&&(b[c+2]=="hide")&&(b[c+3]=="ov"))){if((d=pchj_findDiv(b[c]))!=null){a=b[c+2];if(d.style){d=d.style;a=(a=="show")?"visible":(a="hide")?"hidden":a}d.visibility=a;if(a=="hidden"){pchj_off(b[c]+"x")}if(b[c]=="pch_sh"){a=(a=="visible")?"":(a="hidden")?"none":a;d.display=a}}}}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,a,c){pchj_hideDDs(b);if((bHover==a)||(c)){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(b,c,d){var a;if(window.event){a=window.event.keyCode}else{if(c){a=c.which}}if(a==13){pchj_search(c)}}function pchj_domain(b){var a=false;if(b!=""){var c=/[^a-zA-Z0-9-\s.]+/;if(c.test(b)){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(b){var a=false;if((b!="")&&(b.replace(" ","")!="Search")){var c=/[^a-zA-Z0-9-\s."']+/;if(c.test(b)){alert("Invalid characters in search.")}else{a=true}}else{alert("Please enter a search term.")}return a}function pchj_whois(b){var a=false;if(b!=""){var c=/[<>/\"'%;()&$#_*@{}^!:/+=~`,?\\]/;if(c.test(b)){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(b){var c=document.getElementById("pch_active_search").value;document.getElementById("pch_active_search").value=b;if((b!="pch_sdomain")&&(document.getElementById("pch_sdomain"))){document.getElementById("pch_sdomain").style.backgroundColor="#fff"}document.getElementById(c).style.backgroundColor="#fff";document.getElementById(b).style.backgroundColor="#bbb";var a=document.getElementById("searchField");a.focus();a.value=a.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(c,d){var b=null;if(c.hasChildNodes){var a=c.firstChild;while(a!=null){if(a.id==d){b=a;break}a=a.nextSibling}}return b}function atlPCGoToUrl(a){window.location=a}function atlPCSetCookie(c,e){var d=new Date();var a=new Date(Date.parse(d.getDay()+"/"+d.getMonth()+"/"+(d.getFullYear()+1)));var b=c+"="+e+"; expires="+a.toGMTString()+"; path=/; domain="+pcj_cookiedomain();document.cookie=b}function atlPCFillDiv(d,f,e){if((e!=null)&&(d!=null)){if(e.StyleSheet.length>0){var a=document.getElementsByTagName("head").item(0);var c=atlPCFindChildNode(a,f);if(c==null){var b=document.createElement("link");b.setAttribute("id",f);b.setAttribute("type","text/css");b.setAttribute("rel","stylesheet");b.setAttribute("href",e.StyleSheet);b.setAttribute("media","screen");a.appendChild(b)}}d.innerHTML=e.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(a,b,c){atl_chi_querystring=c;atl_chi_siteUrl=b;atl_chi_targetDiv=a;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(b,c,a){atlChiExecuteCommandAndCallForContent("deleteItem",b,c,a)}function atlChiEmptyCart(a){var b=confirm("You have selected the empty cart option. Please confirm that you'd like to empty the contents of your cart.");if(b){atlChiExecuteCommandAndCallForContent("emptyCart",null,null,a)}}function atlChiExecuteCommandAndCallForContent(f,d,e,a){var b=(f!=null)&&(f!="");if(b){var c=atlChiGetInitialRequest("Cart/CartHeaderInsert.aspx","atlChiFillDiv");c+="&action="+f;if((d!=null)){c+="&rowId="+d}if((e!=null)){c+="&itemId="+e}if((a!=null)){c+="&marketplace="+a}atl_chi_cachedFlag=true;pcj_callext("atlChiFillDiv",c)}}function atlChiGetInitialRequest(b,c){var a=atl_chi_siteUrl+b;if(atl_chi_querystring.length==0){a=a+"?callback=atlChiFillDiv"}else{a=a+atl_chi_querystring+"&callback="+c}return a}function atlChiFillDiv(b){if((b!=null)&&(atl_chi_targetDiv!=null)){atlPCFillDiv(atl_chi_targetDiv,atl_pc_insert_styles,b);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 a=document.getElementById("chi_cart_total").innerHTML;pcUpdateCart(a)}}}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 b=new RegExp("[&|?]currencytype=[^&]*","i");var c=window.location.href.replace(b,"");var a=new RegExp("#.*","");c=c.replace(a,"");window.location.href=c}}}function atlChiGoToUrl(a){window.location=a}function atlChiChangeCurrencyEx(e,f,a){var d=document.getElementById(e);var b=d.options[d.selectedIndex].value;var c="currency"+f;atlPCSetCookie(c,"potableSourceStr="+b);atl_chi_curchanged=true;atl_chi_skipshow=true;atlChiCallForContentEx(b,a)}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(a,b,c){atl_isi_querystring=c;atl_isi_siteUrl=b;atl_isi_targetDiv=a;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 a=document.getElementById("textname");atl_isi_newflagcode=c;var e=c;document.getElementById("flagimg").className="fosisi_flag_base fosisi_flag_image_"+c;a.innerHTML="&nbsp; "+d;var b=document.getElementById("isiOffer_ca");if(b!=null){if(c=="ca"){b.style.display="block"}else{b.style.display="none"}}}function atlIsiSave3(f,k,q){var o=document.getElementsByName("fosisi_radiocurrencies");var m,h=o.length;for(m=0;m<h;m++){if(o[m].checked){break}}var a=o[m].value;var n=f;if(atl_isi_newflagcode!=undefined){n=atl_isi_newflagcode}else{n=f}var j=atlIsiGetFlag(pcj_pl_id);var l="currency"+q;atlPCSetCookie(l,"potableSourceStr="+a);var p="flag"+q;atlPCSetCookie(p,"cflag="+n);if(j!=n){var c="roam"+q;atlPCSetCookie(c,"roam=1")}var e=new RegExp("[&|?]currencytype=[^&]*","i");var g=window.location.href.replace(e,"");var d=new RegExp("#.*","");g=g.replace(d,"");var b=new RegExp("[&|?]cflag=[^&]*","i");g=g.replace(b,"");window.location.href=g}function atlIsiGetCrncyType(d){var c="currency"+d;var a=pcj_cookieread(c);if(a.length==0){a="USD"}else{var b=a.indexOf("=");if((b>-1)&&(b<a.length)){a=a.substring(b+1,a.length)}}return a}function atlIsiGetFlag(d){var c="flag"+d;var a=pcj_cookieread(c);if(a.length>0){var b=a.indexOf("=");if((b>-1)&&(b<a.length)){a=a.substring(b+1,a.length)}}if(a.length==0){a="us"}return a}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(a,b,c){atl_sap_siteUrl=b;atl_sap_targetDiv=a;atl_sap_querystring=c}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(b){var d=pcsb_pl_cookie._pcsb_pl_getCookieValue();if((d!=null)&&(d!="")){var a=d.split("#");for(i=0;i<a.length;++i){var c=a[i].split("-");if(c[0]==b){if(c.length>1){return c[1]}break}}}return null},pcsb_pl_setCookie:function(a,d){var c=new Date();c.setFullYear(c.getFullYear()+1);var b=pcsb_pl_cookie._pcsb_pl_buildCookieString(a,d);pcsb_pl_cookie._pcsb_pl_setCookie(b,c,"/",pcsb_pl_cookie._pcsb_pl_getCookieDomain())},pcsb_pl_showlaststate:function(d,e){var c=pcsb_pl_cookie.pcsb_pl_getCookie(d);var a=(c==null)?(e==1):(c==1);if(document.getElementById){var b=document.getElementById(d);if(b){if((a&&b.style.display=="none")||(!a&&b.style.display!="none")){pcsb_pl_cookie._pcsb_pl_showhide(d)}}}},_pcsb_pl_setCookie:function(d,a,e,c){var b=pcsb_pl_cookie._pcsb_pl_cookiename+pcsb_pl_cookie._pcsb_pl_plid+"="+d+((a)?"; expires="+a.toGMTString():"")+((e)?"; path="+e:"")+((c)?"; domain="+c:"");document.cookie=b},_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(b,f){var g="";var d=true;var e=pcsb_pl_cookie._pcsb_pl_getCookieValue();if((e!=null)&&(e!="")){var a=e.split("#");for(i=0;i<a.length;++i){var c=a[i].split("-");if(c[0]==b){c[1]=f;a[i]=c.join("-");d=false;break}}g=a.join("#")}if(d){if(g.length>0){g+="#"}g+=(b+"-"+f)}return escape(g)},_pcsb_pl_getCookieDomain:function(){var a=window.location.hostname;var c="";var b=a.lastIndexOf(".");if(b<0){c="."+a}else{if(a.lastIndexOf(".",b-1)>-1){c=a.substr(a.lastIndexOf(".",b-1))}else{c="."+a}}return c}};function pcj_blurBox(){if(!pcj_isFf){$pc("input[id*='domain']").blur()}}function pcj_bookmark(){var c=pcj_name;var b=pcj_url_fos+"default.aspx?prog_id="+pcj_prog_id;var a=pcj_isMac?"Command/Cmd":"CTRL";if(pcj_isIe){window.external.AddFavorite(b,c)}else{if(pcj_isFf){window.sidebar.addPanel(c,b,"")}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(b){if($pc("#pch_ctx").length&&$pc("#pch_ct_count").length){var a="";var c="Cart is empty.";if(b>0){if(b==1){a=b;c=b+" item in your cart"}if(b>99){a="**";c=b+" items in your cart"}else{a=b;c=b+" items in your cart"}$pc("#pch_ctx").removeClass().addClass("pchb pch_ct_but_full")}else{if(b<0){c="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(a);$pc("#pch_ct_count_tip").attr("title",c)}}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)});
