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(f,u){$pc.ajax({dataType:"jsonp",jsonp:f,url:u});}function pcj_cookiedomain(){var hn=window.location.hostname;var ts=hn.lastIndexOf(".");if(ts<0){return"."+hn;}else{var dn="";if(hn.lastIndexOf(".",ts-1)>-1){dn=hn.substr(hn.lastIndexOf(".",ts-1));}else{dn="."+hn;}return dn;}}function pcj_cookieread(c){var d=document.cookie;if(d.length==0){return"";}var p=c+"=";var b=d.indexOf("; "+p);if(b==-1){b=d.indexOf(p);if(b!=0){return"";}}else{b+=2;}var e=d.indexOf(";",b);if(e==-1){e=d.length;}return unescape(d.substring(b+p.length,e));}$pc.fn.doCall=function(){if(!pcj_isMgr){var call=false;return;}};if($pc(this).doCall()){pcj_callext("pcj_setdata",pcj_url_fos.replace("http://","https://")+"external/json/PcSetData.aspx"+pcj_args+"17368&callback=pcj_setdata");}var pcj_wt=450;var secSet=null;var tOff=null;var bHover="";var pcj_date=new Date();var pcj_msgCt=0;function pcj_ralert(msg){if($pc("#pcj_note").length&&msg){pcj_msgCt=pcj_msgCt+1;$pc("#pcj_note").append(pcj_msgCt+". "+msg+"<br>");}}var atl_pc_insert_styles="atlInsertStyles";function atlPCShowElement(elmID){for(i=0;i<document.getElementsByTagName(elmID).length;i++){obj=document.getElementsByTagName(elmID)[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(node,findId){var existingNode=null;if(node.hasChildNodes){var currentNode=node.firstChild;while(currentNode!=null){if(currentNode.id==findId){existingNode=currentNode;break;}currentNode=currentNode.nextSibling;}}return existingNode;}function atlPCGoToUrl(url){window.location=url;}function atlPCSetCookie(name,value){var currentDT=new Date();var expires=new Date(Date.parse(currentDT.getDay()+"/"+currentDT.getMonth()+"/"+(currentDT.getFullYear()+1)));var curCookie=name+"="+value+"; expires="+expires.toGMTString()+"; path=/; domain="+pcj_cookiedomain();document.cookie=curCookie;}function atlPCFillDiv(targetDiv,stylesName,jsonInsertData){if((jsonInsertData!=null)&&(targetDiv!=null)){if(jsonInsertData.StyleSheet.length>0){var head=document.getElementsByTagName("head").item(0);var existingNode=atlPCFindChildNode(head,stylesName);if(existingNode==null){var csslink=document.createElement("link");csslink.setAttribute("id",stylesName);csslink.setAttribute("type","text/css");csslink.setAttribute("rel","stylesheet");csslink.setAttribute("href",jsonInsertData.StyleSheet);csslink.setAttribute("media","screen");head.appendChild(csslink);}}targetDiv.innerHTML=pcj_wboxT()+jsonInsertData.Html+pcj_wboxB();}}function pcj_wboxT(){var str="";str=str+'<table border="0" cellpadding="0" cellspacing="0"><tr>'+pcj_sdwt()+pcj_sdwl()+'<td class="bkgw t11">';return str;}function pcj_wboxB(){return"</td>"+pcj_sdwb()+"</table>";}function pcj_sdwt(){return'<tr><td class="sdw_nw"></td><td valign=/"top/"><div class="sdw_n"></div></td><td class="sdw_ne"></td></tr>';}function pcj_sdwl(){return'<tr><td class="sdw_w"></td>';}function pcj_sdwb(){return'<td class="sdw_e"></td></tr><tr><td class="sdw_sw"></td><td valign=/"bottom/"><div class="sdw_s"></div></td><td class="sdw_se"></td></tr>';}function pcj_gboxT(){var str="";str=str+'<table border="0" cellpadding="0" cellspacing="0"><tr>'+pcj_sdgt()+pcj_sdgl()+'<td class="bkg88 t11">';return str;}function pcj_gboxB(){return"</td>"+pcj_sdgb()+"</table>";}function pcj_sdgt(){return'<tr><td class="sdg_nw"></td><td valign=/"top/"><div class="sdg_n"></div></td><td class="sdg_ne"></td></tr>';}function pcj_sdgl(){return'<tr><td class="sdg_w"></td>';}function pcj_sdgb(){return'<td class="sdg_e"></td></tr><tr><td class="sdg_sw"></td><td valign=/"bottom/"><div class="sdg_s"></div></td><td class="sdg_se"></td></tr>';}function pcj_ltabT(){return'<table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2" class="sprt cgnw"></td><td valign="top" class="bkgf2"><div class="bkgd5 hr1">&nbsp;</div></td><td colspan="2" class="sprt cgne"></td></tr><tr class="bkgf2"><td width="1" class="bkgd5"></td><td width="3"></td><td class="bkgf2 t11 p4">';}function pcj_ltabB(){return'</td><td width="3"></td><td width="1" class="bkgd5"></td></tr><tr><td colspan="2" class="sprt cgsw"></td><td valign="bottom" class="bkgf2"><div class="bkgd5 hr1">&nbsp;</div></td><td colspan="2" class="sprt cgse"></td></tr></table>';}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 pcj_cart(targetDiv,siteUrl,queryString){atl_chi_querystring=queryString;atl_chi_siteUrl=siteUrl;atl_chi_targetDiv=targetDiv;atl_chi_cachedFlag=false;}function atlshowLogoLinks(){var serviceUrl=pcj_url_fos.replace("http://","https://")+"external/json/LogoLinksInsert.aspx?targetdivid=pcj_logolinksdiv";$pc.ajax({url:serviceUrl,dataType:"jsonp",success:function(data){var logoLinksHTML=data["Html"];if(logoLinksHTML&&logoLinksHTML.length>0){var pnl=$pc("#"+data["TargetDivID"]);pnl.show();pnl.html(pcj_wboxT()+logoLinksHTML+pcj_wboxB());}},error:function(XMLR,status,error){}});}function atlLogoLinksClose(){var logolinksdiv=$pc("#pcj_logolinksdiv");if(logolinksdiv!=null){logolinksdiv.hide();}}function atlChiClearCache(){atl_chi_cachedFlag=false;}function atlChiShowInt(){pcj_hideDDs("pct_cart");if(atl_chi_targetDiv!=null){atl_chi_targetDiv.style.display="block";if(pcj_isIe6under){atlPCHideElement("SELECT",atl_chi_targetDiv);}}}function atlChiShowEx(currency,marketplace){if(atl_chi_cachedFlag==true){var pcj_date=new Date();if((pcj_date.getTime()-atl_chi_time)>180000){atl_chi_cachedFlag=false;atl_chi_time=pcj_date.getTime();}}if(atl_chi_cachedFlag==true){atlChiShowInt();}else{atlChiCallForContentEx(currency,marketplace);}}function atlChiCallForContent(currency){atlChiCallForContentEx(currency,"");}function atlChiCallForContentEx(currency,marketplace){var request=atlChiGetInitialRequest("Cart/CartInsert.aspx","atlChiFillDiv");if((currency!=null)&&(currency!="")){request=request+"&currencyType="+currency;}if((marketplace!=null)&&(marketplace!="")){request=request+"&marketplace="+marketplace;}atl_chi_cachedFlag=true;pcj_callext("atlChiFillDiv",request);}function atlChiDeleteItem(rowId,itemId,marketplace){atlChiExecuteCommandAndCallForContent("deleteItem",rowId,itemId,marketplace);}function atlChiEmptyCart(marketplace){var confirmed=confirm("You have selected the empty cart option. Please confirm that you'd like to empty the contents of your cart.");if(confirmed){atlChiExecuteCommandAndCallForContent("emptyCart",null,null,marketplace);}}function atlChiExecuteCommandAndCallForContent(command,rowId,itemId,marketplace){var hasCommand=(command!=null)&&(command!="");if(hasCommand){var request=atlChiGetInitialRequest("Cart/CartInsert.aspx","atlChiFillDiv");request+="&action="+command;if((rowId!=null)){request+="&rowId="+rowId;}if((itemId!=null)){request+="&itemId="+itemId;}if((marketplace!=null)){request+="&marketplace="+marketplace;}atl_chi_cachedFlag=true;pcj_callext("atlChiFillDiv",request);}}function atlChiGetInitialRequest(pathToInsert,callback){var request=atl_chi_siteUrl+pathToInsert;if(atl_chi_querystring.length==0){request=request+"?callback=atlChiFillDiv";}else{request=request+atl_chi_querystring+"&callback="+callback;}return request;}function atlChiFillDiv(cartData){if((cartData!=null)&&(atl_chi_targetDiv!=null)){atl_chi_targetDiv.innerHTML=pcj_gboxT()+cartData.Html+pcj_gboxB();atl_chi_cachedFlag=true;var pcj_date=new Date();atl_chi_time=pcj_date.getTime();if(!atl_chi_skipshow){atlChiShowInt();}if(document.getElementById("chi_cart_total")){var carttotal=document.getElementById("chi_cart_total").innerHTML;pcUpdateCart(carttotal);}}}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 r1=new RegExp("[&|?]currencytype=[^&]*","i");var redirect=window.location.href.replace(r1,"");var r2=new RegExp("#.*","");redirect=redirect.replace(r2,"");window.location.href=redirect;}}}function atlChiGoToUrl(url){window.location=url;}function atlChiChangeCurrencyEx(currencySelectId,suffix,marketplace){var currencySelect=document.getElementById(currencySelectId);var selectedCurrency=currencySelect.options[currencySelect.selectedIndex].value;var currencyCookieName="currency"+suffix;atlPCSetCookie(currencyCookieName,"potableSourceStr="+selectedCurrency);atl_chi_curchanged=true;atl_chi_skipshow=true;atlChiCallForContentEx(selectedCurrency,marketplace);}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_querystring="";var atl_isi_cachedFlag;var atl_isi_newflagcode;function pcj_intl(targetDiv,siteUrl,queryString){atl_isi_targetDiv=targetDiv;atl_isi_siteUrl=siteUrl;atl_isi_querystring=queryString;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(){pcj_hideDDs("pct_flg_pop");if(atl_isi_cachedFlag==true){atlIsiShowInt();}else{atlIsiCallForContent();}}function atlIsiCallForContent(){var request=atl_isi_siteUrl+"Cart/InternationalInsert.aspx";if(atl_isi_querystring.length==0){request=request+"?callback=atlIsiFillDiv";}else{request=request+atl_isi_querystring+"&callback=atlIsiFillDiv";}atl_isi_cachedFlag=true;pcj_callext("atlIsiFillDiv",request);}function atlIsiFillDiv(intlSelectionData){if((intlSelectionData!=null)&&(atl_isi_targetDiv!=null)){atl_isi_targetDiv.innerHTML=pcj_wboxT()+intlSelectionData.Html+pcj_wboxB();atl_isi_cachedFlag=true;atlIsiShowInt();}}function atlIsiClose(){if(atl_isi_targetDiv!=null){atl_isi_targetDiv.style.display="none";if(pcj_isIe6under){atlPCShowElement("SELECT");}}}function pcj_changeCountry(countrySelectName,countrySelectId){var cntryname=document.getElementById("iffi_text");atl_isi_newflagcode=countrySelectId;var selectedCountryCode=countrySelectId;document.getElementById("iffi").className="ffi_base ffi_"+countrySelectId;cntryname.innerHTML="&nbsp; "+countrySelectName;var caOfferDiv=document.getElementById("isiOffer_ca");if(caOfferDiv!=null){if(countrySelectId=="ca"){caOfferDiv.style.display="block";}else{caOfferDiv.style.display="none";}}}function pcj_saveCurrency(countrySelectId,currencySelectId,suffix){var grp=document.getElementsByName("pct_flg_radiocrncy");var x,len=grp.length;for(x=0;x<len;x++){if(grp[x].checked){break;}}var selectedCurrency=grp[x].value;var selectedCountryCode=countrySelectId;if(atl_isi_newflagcode!=undefined){selectedCountryCode=atl_isi_newflagcode;}else{selectedCountryCode=countrySelectId;}var flag=pcj_getFlag(pcj_pl_id);var currencyCookieName="currency"+suffix;atlPCSetCookie(currencyCookieName,"potableSourceStr="+selectedCurrency);var flagCookieName="flag"+suffix;atlPCSetCookie(flagCookieName,"cflag="+selectedCountryCode);if(flag!=selectedCountryCode){var roamCookieName="roam"+suffix;atlPCSetCookie(roamCookieName,"roam=1");}var r1=new RegExp("[&|?]currencytype=[^&]*","i");var redirect=window.location.href.replace(r1,"");var r2=new RegExp("#.*","");redirect=redirect.replace(r2,"");var r3=new RegExp("[&|?]cflag=[^&]*","i");redirect=redirect.replace(r3,"");window.location.href=redirect;}function pcj_getCurrency(suffix){var CrncyTypeCookieName="currency"+suffix;var currency=pcj_cookieread(CrncyTypeCookieName);if(currency.length==0){currency="USD";}else{var equalpos=currency.indexOf("=");if((equalpos>-1)&&(equalpos<currency.length)){currency=currency.substring(equalpos+1,currency.length);}}return currency;}function pcj_getFlag(suffix){var flag="us";if(document.getElementById("pct_flg0")){var flagCookieName="flag"+suffix;var flag=pcj_cookieread(flagCookieName);if(flag.length>0){var equalpos=flag.indexOf("=");if((equalpos>-1)&&(equalpos<flag.length)){flag=flag.substring(equalpos+1,flag.length);}}if(flag.length==0){flag="us";}}return flag;}function pcj_showhide(id){if(document.getElementById){var elem=document.getElementById(id);if(elem){if(elem.style.display==""||elem.style.display=="block"){elem.style.display="none";}else{elem.style.display="block";}}}}var atl_sap_targetDiv;var atl_sap_siteUrl;var atl_sap_querystring="";var atl_sap_cachedFlag=false;function atlSapInitializeEx(targetDiv,siteUrl,queryString){atl_sap_siteUrl=siteUrl;atl_sap_targetDiv=targetDiv;atl_sap_querystring=queryString;}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 request=atl_sap_siteUrl+"Products/ShowAllProductsInsert.aspx";if(atl_sap_querystring.length==0){request=request+"?callback=atlSapFillDiv";}else{request=request+atl_sap_querystring+"&callback=atlSapFillDiv";}atl_sap_cachedFlag=true;pcj_callext("atlSapFillDiv",request);}function atlSapFillDiv(sapData){if((sapData!=null)&&(atl_sap_targetDiv!=null)){atlPCFillDiv(atl_sap_targetDiv,atl_pc_insert_styles,sapData);atl_sap_cachedFlag=true;atlSapShowInt();}}function atlSapClose(){if(atl_sap_targetDiv!=null){atl_sap_targetDiv.style.display="none";if(pcj_isIe6under){atlPCShowElement("SELECT");}}}function pcj_blurlogin(state){if(state=="load"){if(document.getElementById("loginname").value!=""){document.getElementById("pct_undiv").className="off";}}else{if(state=="over"){if(document.getElementById("pct_undiv").className=="on"){document.getElementById("pct_undiv").className="off";}}else{if(document.getElementById("loginname").value==""){if(document.getElementById("login_focus").value!="true"){document.getElementById("pct_undiv").className="on";if(!pct_loginnameDone){document.getElementById("pct_login").onmousemove="";}}}}}}function pcj_blurpass(state){if(state=="load"){if(document.getElementById("password").value!=""){document.getElementById("pct_pwdiv").className="off";return true;}}else{if(state=="over"){if(document.getElementById("pct_pwdiv").className=="on"){document.getElementById("pct_pwdiv").className="off";}}else{if(document.getElementById("password").value==""){if(document.getElementById("pass_focus").value!="true"){document.getElementById("pct_pwdiv").className="on";pct_loginnameDone=false;}}}}}function pcj_checkpass(){if(!pct_loginnameDone){if(pcj_blurpass("load")){pct_loginnameDone=true;document.getElementById("pct_login").onmousemove="";}}}function pcj_passwatch(){if((pct_loginnameField.onfocus)&&(!pct_loginnameDone)){document.getElementById("pct_login").onmousemove=pcj_checkpass;}else{if(pct_loginnameDone){document.getElementById("pct_login").onmousemove="";}}}function pcj_cancelEvent(e){if(!e){return false;}e.returnValue=false;e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation();}if(e.preventDefault){e.preventDefault();}return false;}function pcj_isOver(e,div){if(!e){e=window.event;}if(e){var reltg;if(e.type=="mouseover"){reltg=(e.target)?e.target:e.toElement;}else{reltg=(e.relatedTarget)?e.relatedTarget:e.toElement;}if(reltg){try{if(reltg.id.match(div)){return true;}while((!reltg.id.match(div))&&(reltg.tagName.toUpperCase()!="BODY")&&(reltg.tagName.toUpperCase()!="HTML")){reltg=reltg.parentNode;if(reltg.id.match(div)){return true;}}}catch(err){if(err.toString().toUpperCase().match("PERMISSION")){return true;}}}}return false;}function pcj_movr(e,div,status,width){if(!pcj_isOver(e,div)){pcj_tOff(div);return;}pcj_blurBox();pcj_addimage(div);bHover=status;window.status=status;setTimeout("pcj_setDD('"+div+"', '"+width+"', '"+status+"', false)",pcj_wt);}function pcj_mout(e,div){if(pcj_isOver(e,div)){return;}bHover="";window.status="";if(document.getElementById(div+"d")){document.getElementById(div+"b").className=document.getElementById(div+"b").className.replace("sprt ohvr ","");}pcj_setDDTimeout(div);tOff=window.setTimeout('pcj_tOff("'+div+'")',(pcj_wt+100));}function pcj_tOff(div){if(document.getElementById(div)){if(document.getElementById(div).style.display!="none"){if(document.getElementById(div+"a")){document.getElementById(div+"a").innerHTML="";document.getElementById(div+"b").style.backgroundColor="";document.getElementById(div+"b").getElementsByTagName("a")[0].style.color="#fff";}document.getElementById(div).style.display="none";window.clearTimeout(tOff);}else{if(tOff!=null){window.clearTimeout(tOff);}}}}function pcj_sovr(div){var bkg=div.style.backgroundColor.toString();if((bkg!="#e4efc7")&&(bkg!="rgb(228, 239, 199)")){div.style.backgroundColor="#eee";}}function pcj_sout(div){var bkg=div.style.backgroundColor.toString();if((bkg!="#e4efc7")&&(bkg!="rgb(228, 239, 199)")){div.style.backgroundColor="#fff";}}function pcj_findDiv(n,d){var p,i,x;if(!d){d=document;}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all){x=d.all[n];}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=pcj_findDiv(n,d.layers[i].document);}if(!x&&document.getElementById){x=document.getElementById(n);}return x;}function pcj_nav(){var p,v,obj,args=pcj_nav.arguments,i=0;if(!((args[i]==args[i+1])&&(args[i+2]=="hide")&&(args[i+3]=="ov"))){if((obj=pcj_findDiv(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=="show")?"block":(v="hide")?"none":v;}obj.display=v;var sect=args[i];if(args[i+2]=="hide"){if(document.getElementById(sect+"a")){document.getElementById(sect+"a").innerHTML="";document.getElementById(sect+"b").style.backgroundColor="";document.getElementById(sect+"b").getElementsByTagName("a")[0].style.color="#fff";}}}}}function pcj_inApp_hideDDs(sect){switch(pcj_navnm){case"tdnam":pcj_nav("pct_1o4",sect,"hide","ov");pcj_nav("pct_2o4",sect,"hide","ov");pcj_nav("pct_3o4",sect,"hide","ov");pcj_nav("pct_4o4",sect,"hide","ov");break;case"shops":pcj_nav("pct_3o4",sect,"hide","ov");break;case"gdtv":pcj_nav("pct_1o4",sect,"hide","ov");pcj_nav("pct_2o4",sect,"hide","ov");pcj_nav("pct_3o4",sect,"hide","ov");break;case"support":pcj_nav("pct_1o4",sect,"hide","ov");pcj_nav("pct_2o4",sect,"hide","ov");pcj_nav("pct_3o4",sect,"hide","ov");pcj_nav("pct_4o4",sect,"hide","ov");break;case"community":pcj_nav("pct_1o7",sect,"hide","ov");pcj_nav("pct_2o7",sect,"hide","ov");pcj_nav("pct_3o7",sect,"hide","ov");pcj_nav("pct_7o7",sect,"hide","ov");break;case"mya":break;default:pcj_nav("pct_dn",sect,"hide","ov");pcj_nav("pct_ho",sect,"hide","ov");pcj_nav("pct_ws",sect,"hide","ov");pcj_nav("pct_em",sect,"hide","ov");pcj_nav("pct_sc",sect,"hide","ov");pcj_nav("pct_bs",sect,"hide","ov");pcj_nav("pct_re",sect,"hide","ov");}}function pcj_hideDDs(sect){pcj_nav("pct_sh",sect,"hide","ov");pcj_nav("pct_vip",sect,"hide","ov");pcj_nav("pct_ddc",sect,"hide","ov");pcj_nav("pct_flg_pop",sect,"hide","ov");pcj_nav("pct_cart",sect,"hide","ov");pcj_inApp_hideDDs(sect);pcj_showElement("SELECT");pcj_showElement("OBJECT");pcj_showElement("EMBED");}function pcj_hideDD(sect){if((sect+"x")=="pct_shx"){document.getElementById("pct_arr").className="sprt arrd";}pcj_nav(sect,"","hide");pcj_hideDDs("");}function pcj_setDD(sect,width,windowStatusVal,bshow){pcj_hideDDs(sect);if((bHover==windowStatusVal)||(bshow)){if(document.getElementById(sect+"a")){document.getElementById(sect+"a").innerHTML=('<div class="prel"><div class="hcd" style="width:'+(Number(width)+Number(2))+'px;" onmouseover="pcj_movr(\''+sect+"','"+status+"',"+width+');" onmouseout="pcj_mout('+window.event+",'"+sect+'\');"><div class="sprt hc1 fl"></div><div class="hc2 fl" style="width:'+(Number(width)-Number(8))+'px;">&nbsp;</div><div class="sprt hc3 fl"></div></div></div>');}else{if(document.getElementById(sect+"d")){document.getElementById(sect+"b").className="sprt ohvr w"+width+" p";}}pcj_nav(sect,"","show");if((sect+"x")=="pct_shx"){document.getElementById("pct_arr").className="sprt arru";}if(secSet!=null){window.clearTimeout(secSet);}if(document.getElementById(sect)){if(pcj_isIe6under){pcj_hideElement("SELECT",document.getElementById(sect));}}}}function pcj_setDDTimeout(sect){if(secSet!=null){window.clearTimeout(secSet);}secSet=window.setTimeout('pcj_hideDD("'+sect+'")',pcj_wt);}function pcj_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 pcj_showElement(elmID){for(i=0;i<document.getElementsByTagName(elmID).length;i++){obj=document.getElementsByTagName(elmID)[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 pcj_domain(searchValue){var canSubmit=false;if(searchValue!=""){var regExInvalidChars=/[^a-zA-Z0-9-\s.]+/;if(regExInvalidChars.test(searchValue)){alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.");}else{canSubmit=true;}}else{alert("Please enter a domain name.");}return canSubmit;}function pcj_site(searchValue){var canSubmit=false;if((searchValue!="")&&(searchValue.replace(" ","")!="Search")){var regExInvalidChars=/[^a-zA-Z0-9-\s."']+/;if(regExInvalidChars.test(searchValue)){alert("Invalid characters in search.");}else{canSubmit=true;}}else{alert("Please enter a search term.");}return canSubmit;}function pcj_whois(searchValue){var canSubmit=false;if(searchValue!=""){var regExInvalidChars=/[<>/\"'%;()&$#_*@{}^!:/+=~`,?\\]/;if(regExInvalidChars.test(searchValue)){alert("Invalid character in domain.\n\nOnly letters, numbers or hyphens are allowed.");}else{canSubmit=true;}}else{alert("Please enter a domain name.");}return canSubmit;}function pcj_state(isnow){var was=document.getElementById("pct_active_search").value;document.getElementById("pct_active_search").value=isnow;if((isnow!="pct_ssite")&&(document.getElementById("pct_ssite"))){document.getElementById("pct_ssite").style.backgroundColor="#fff";}if((isnow!="pct_sdomain")&&(document.getElementById("pct_sdomain"))){document.getElementById("pct_sdomain").style.backgroundColor="#fff";}if((isnow!="pct_mplacesearch")&&(document.getElementById("pct_mplacesearch"))){document.getElementById("pct_mplacesearch").style.backgroundColor="#fff";}if((isnow!="pct_businesssearch")&&(document.getElementById("pct_businesssearch"))){document.getElementById("pct_businesssearch").style.backgroundColor="#fff";}document.getElementById(was).style.backgroundColor="#fff";document.getElementById(isnow).style.backgroundColor="#e4efc7";var txt=document.getElementById("searchField");txt.focus();txt.value=txt.value;}function pcj_gtab(n,w){var div=document.getElementById(n+"c");if(div){var ins=div.innerHTML;if(ins.length>0){var str="";str=str+('<table id="'+n+'i" border="0" cellpadding="0" cellspacing="0">'+pcj_sdwl()+'<td class="bkgw t11 p4">');str=str+(div.innerHTML);div.className="off";div.innerHTML="";str=str+("</td>"+pcj_sdwb()+"</table>");document.getElementById(n).innerHTML=str;pcj_addmouse(n);}}}function pcj_ttab(n,fl){var div=document.getElementById(n+"c");if(div){var ins=div.innerHTML;if(ins.length>0){var str="";str=str+('<table id="'+n+'" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="3" class="'+fl+'"></td></tr>'+pcj_sdwl()+'<td class="bkgw t11 p4">');str=str+(div.innerHTML);div.className="off";div.innerHTML="";str=str+("</td>"+pcj_sdwb()+"</table>");document.getElementById(n+"x").innerHTML=str;document.getElementById(n+"x").className="on";}}}function pcj_wtab(n){var ins=document.getElementById(n+"x").innerHTML;if(ins.length>0){var str="";str=str+(ins);var div=document.getElementById(n+"c");if(div){str=str+('<table id="'+n+'" style="display:none;" border="0" cellpadding="0" cellspacing="0">'+pcj_sdwt()+pcj_sdwl()+'<td class="bkgw t11 w222">');str=str+(div.innerHTML);div.className="off";div.innerHTML="";str=str+("</td>"+pcj_sdwb()+"</table>");}document.getElementById(n+"x").innerHTML=str;}}function pcj_otab(n){var div=document.getElementById(n);if(div){div.style.display=="none"?div.style.display="block":div.style.display="none";pcj_hideDDs(n);}}function pcj_ctab(n){var div=document.getElementById(n);if(div){div.style.display="none";pcj_hideDDs(n);}}function pcj_logClick(){pc_link_clicked=true;}function pcj_lnk(link){var can_navigate=true;if(arguments[1]){if(arguments[1]==1){var agt=navigator.userAgent.toLowerCase();if(agt.indexOf("ipad")!=-1||agt.indexOf("iphone")!=-1){can_navigate=false;}}}if(can_navigate){pcj_logClick();if(link.match(pcj_url_help)){window.open(link,"_help","left=20,top=20,resizable=yes,scrollbars=yes,width=800,height=620");}else{if(link.match(pcj_url_bp)||link.match(pcj_url_cf)){window.open(link,"_else");}else{window.location=link;}}}}function pcj_win(link){pcj_logClick();window.open(link,"_pct");}function pcj_pop(u,t,w,h){pcj_logClick();window.open(u,t,"left=200,top=50,resizable=yes,scrollbars=yes,width="+w+",height="+h);}function pcj_vemail(val){var result=true;var index=-1;var pindex=-1;if(result){tmp=val;index=tmp.indexOf("@");if(index>0){pindex=tmp.indexOf(".",index);if(tmp.length<=pindex+2){result=false;}}else{result=false;}}return result;}function pcj_signup(){var em=document.getElementById("pcf_email");if(pcj_vemail(em.value)){var signupUrl=pcj_url_fos+"gdshop/signup.asp"+pcj_args+"13024&EmailSub="+em.value+"&endPage="+encodeURIComponent(document.location);em.value="Thank You!";document.location=signupUrl;}else{alert("Please enter a valid email address.");}}function pchj_setIdpRedirect(idpredirect){pcj_idpredirect=idpredirect;}function pcj_login_action(frm){var idp=(pcj_login_root_url);if(!pcj_isCart){var mya=(pcj_url_mya+"login_redirect.aspx");idp+="&signalnonorig="+encodeURIComponent(mya);if(pcj_idpredirect!=""){idp+="&"+pcj_ssoTargetKey+"="+pcj_idpredirect;}}frm.action=idp;return true;}function pcj_login(){var frm;if(document.pchFL){frm=document.pchFL;}else{frm=pcj_findForm();}if(frm.__VIEWSTATE){frm.__VIEWSTATE.name="NOVIEWSTATE";}if(frm.__EVENTTARGET){frm.__EVENTTARGET.name="NOEVENTTARGET";}pcj_login_action(frm);frm.method="POST";}function pcj_login_submit(frm){frm.submit();}function pcj_skey(e){if((e&&e.which&&e.which==13)||(e&&e.keyCode&&e.keyCode==13)){pcj_search(e);}}function pcj_key(fcn,e){if((e&&e.which&&e.which==13)||(e&&e.keyCode&&e.keyCode==13)){fcn;}}function pcj_findForm(){var i,x;var d=document;for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i];if(x){return x;break;}}}function pcj_search(ev){var frm;var okSubmit=true;if(document.pchFS){frm=document.pchFS;}else{frm=pcj_findForm();}var pc_opt=frm.pct_active_search.value;var pc_action=frm.elements[pc_opt+"_action"].value;var pc_field=frm.elements[pc_opt+"_field"].value;var pc_value=frm.searchField.value;if(frm.elements[pc_field]){frm.elements[pc_field].value=pc_value;}else{frm.searchField.name=pc_field;}if(pc_opt=="pct_sdomain"){if(!pcj_domain(pc_value)){okSubmit=false;frm.searchField.value="";}}if(pc_opt=="pct_swhois"){if(!pcj_whois(pc_value)){okSubmit=false;frm.searchField.value="";}}if(pc_opt=="pct_ssite"){if(!pcj_site(pc_value)){okSubmit=false;frm.searchField.value="";}}if(pc_opt=="pct_mplacesearch"){if(!pcj_site(pc_value)){okSubmit=false;frm.searchField.value="";}}if(pc_opt=="pct_businesssearch"){if(!pcj_site(pc_value)){okSubmit=false;frm.searchField.value="";}}if(pc_opt=="pct_skeyword"){frm.searchField.value=document.getElementById("pct_active_text").value;pc_action=pc_action+"&"+pc_field+"=_"+pc_value;}else{frm.target="_self";frm.method="POST";}if(pc_opt=="pct_shelp"){var win=window.open(pc_action+"&"+pc_field+"="+pc_value,"_pct_help","left=10,bottom=10,resizable=yes,scrollbars=yes,width=800,height=500");if(win){win.focus();}document.getElementById("pct_active_text").value="Help Center Search";frm.searchField.value=document.getElementById("pct_active_text").value;frm.searchField.className="ot";okSubmit=false;}else{frm.target="_self";frm.method="POST";}if(okSubmit){if(frm.__VIEWSTATE){frm.__VIEWSTATE.name="NOVIEWSTATE";}frm.action=pc_action;frm.submit();}return pcj_cancelEvent(ev);}function pcj_setFlag(){var flag=pcj_getFlag(pcj_pl_id);if(document.getElementById("pct_flg0")){if(flag.length>1){var flagUrl=pcj_url_img+"fos/icn/country_flags_sml/"+flag+".gif";document.getElementById("pct_flg_img").style.backgroundImage="url("+flagUrl+")";}var currencyTypeName=pcj_getCurrency(pcj_pl_id);document.getElementById("pct_flg_crncy").innerHTML=currencyTypeName;}document.getElementById("pctUSPhone").className="on";if(pcj_bUKDetect=="true"){if(flag=="uk"){var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="on";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="off";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="off";}var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="off";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="off";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="off";}}}if(pcj_bNLDetect=="true"){if(flag=="nl"){var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="on";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="off";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="off";}var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="off";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="off";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="off";}}}if(pcj_bFRDetect=="true"){if(flag=="fr"){var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="off";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="on";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="off";}var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="off";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="off";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="off";}}}if(pcj_bITDetect=="true"){if(flag=="it"){var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="off";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="off";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="on";}var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="off";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="off";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="off";}}}if(pcj_bESDetect=="true"){if(flag=="es"){var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="off";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="on";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="off";}var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="off";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="off";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="off";}}}if(flag=="au"){var usDiv=document.getElementById("pctUSPhone");if(usDiv!=null){usDiv.className="off";}var ukDiv=document.getElementById("pctUKPhone");if(ukDiv!=null){ukDiv.className="off";}var esDiv=document.getElementById("pctESPhone");if(esDiv!=null){esDiv.className="off";}var auDiv=document.getElementById("pctAUPhone");if(auDiv!=null){auDiv.className="on";}var nlDiv=document.getElementById("pctNLPhone");if(nlDiv!=null){nlDiv.className="off";}var frDiv=document.getElementById("pctFRPhone");if(frDiv!=null){frDiv.className="off";}var itDiv=document.getElementById("pctITPhone");if(itDiv!=null){itDiv.className="off";}}}function pcSetLogIn(val,sn){}function pcSetLogInEx(val,sn,taname,taphone,taemail){}function pcSetIsDiscount(val){}function pcpcSetExpiring(ct){}function pcj_setup(){pcj_intl(document.getElementById(pcj_intlDiv),pcj_url_fos.replace("http://","https://"),pcj_args+"13559");pcj_cart(document.getElementById(pcj_cartDiv),pcj_url_fos.replace("http://","https://"),pcj_args+"13561");pcj_setFlag();pcj_wtab("pct_vip");pcj_wtab("pct_ddc");pcj_ttab("pct_sh","s6");switch(pcj_navnm){case"tdnam":case"shops":case"gdtv":case"support":case"mya":pcj_gtab("pct_1o4");pcj_gtab("pct_2o4");pcj_gtab("pct_3o4");pcj_gtab("pct_4o4");break;case"community":pcj_gtab("pct_1o7");pcj_gtab("pct_2o7");pcj_gtab("pct_3o7");pcj_gtab("pct_4o7");pcj_gtab("pct_5o7");pcj_gtab("pct_6o7");pcj_gtab("pct_7o7");break;default:pcj_gtab("pct_dn");pcj_gtab("pct_ho");pcj_gtab("pct_em");pcj_gtab("pct_ws");pcj_gtab("pct_bs");pcj_gtab("pct_sc");pcj_gtab("pct_re");}}function pcj_addmouse(id){if($pc("#"+id).length){$pc("#"+id+" div .m4").addClass("p").hover(function(){$pc(this).css("backgroundColor","#e4efc7");},function(){$pc(this).css("backgroundColor","");});$pc("#"+id+" div .r4").html(pcj_ltabT()+$pc("#"+id+" div .r4").html()+pcj_ltabB());}}function pcj_addimage(id){var a=document.getElementById(id);if(a){e=a.getElementsByTagName("div");for(i=0;i<e.length;i++){var d=e[i];if(d.className.match("_bads")){d.className=d.className.replace("_bads","bads");}}}}pcsb_gdtvvid={init:function(){if(document.getElementById&&document.createTextNode){pcsb_gdtvvid.pcsbVideoDiv=document.getElementById("pcsbVideoDiv");pcsb_gdtvvid.pcsbVideoLink=document.getElementById("pcsbVideoLink");pcsb_gdtvvid.pcsbVideoLinkText=document.getElementById("pcsbVideoLinkText");if(typeof(pcsb_gdtv_videos)!=="undefined"&&typeof(pcsb_gdtv_videos_current_index)!=="undefined"){if(pcsb_gdtv_videos.length>1){pcsb_gdtvvid.createNav();}}}},createNav:function(){var prve=document.getElementById("pcsb_prv");var nxte=document.getElementById("pcsb_nxt");pcsb_gdtvvid.prev=document.getElementById("pcsb_prvlnk");pcsb_gdtvvid.addEvent(pcsb_gdtvvid.prev,"click",pcsb_gdtvvid.show);prve.appendChild(pcsb_gdtvvid.prev);pcsb_gdtvvid.next=document.getElementById("pcsb_nxtlnk");pcsb_gdtvvid.addEvent(pcsb_gdtvvid.next,"click",pcsb_gdtvvid.show);nxte.appendChild(pcsb_gdtvvid.next);},show:function(e){if(this===pcsb_gdtvvid.next||this===pcsb_gdtvvid.prev){var addto=(this===pcsb_gdtvvid.next)?1:-1;pcsb_gdtv_videos_current_index=pcsb_gdtv_videos_current_index+addto;if(pcsb_gdtv_videos_current_index<0){pcsb_gdtv_videos_current_index=(pcsb_gdtv_videos.length-1);}if(pcsb_gdtv_videos_current_index>(pcsb_gdtv_videos.length-1)){pcsb_gdtv_videos_current_index=0;}pcsb_gdtvvid.pcsbVideoDiv.style.backgroundImage="url("+pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].imageurl+")";pcsb_gdtvvid.pcsbVideoDiv.title=pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].tooltip;pcsb_gdtvvid.pcsbVideoLink.target=pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].target;if(pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].href.length>0){pcsb_gdtvvid.pcsbVideoLink.href=pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].href;pcsb_gdtvvid.pcsbVideoLink.onclick="";}else{pcsb_gdtvvid.pcsbVideoLink.href="javascript:{}";pcsb_gdtvvid.pcsbVideoLink.onclick=Function(pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].onclick);}pcsb_gdtvvid.pcsbVideoLinkText.innerHTML=pcsb_gdtv_videos[pcsb_gdtv_videos_current_index].text;}if(e){pcsb_gdtvvid.cancelClick(e);}},addEvent:function(obj,type,fn){if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);}else{obj.addEventListener(type,fn,false);}},cancelClick:function(e){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;}if(e&&e.stopPropagation&&e.preventDefault){e.stopPropagation();e.preventDefault();}}};function pcsb_showhide(id){if(document.getElementById){var elem=document.getElementById(id);var bShow=0;if(elem){if(elem.style.display==""||elem.style.display=="block"){elem.style.display="none";}else{elem.style.display="";bShow=1;}pcsb_SetSidebarNodeState(id,bShow);}}}function pcsb_MyProductsOpen(){var id="pcsb_myproductsdiv";if(document.getElementById){var elem=document.getElementById(id);if(elem){if(elem.style.display=="none"){pcsb_showhide(id);}}}}function pcsb_MyProductsClose(){var id="pcsb_myproductsdiv";if(document.getElementById){var elem=document.getElementById(id);if(elem){if(elem.style.display!="none"){pcsb_showhide(id);}}}}function pcsb_MyProductsToggle(){pcsb_showhide("pcsb_myproductsdiv");}function pcsb_SetSidebarNodeState(nodename,state){pcsb_cookie.pcsb_setCookie(nodename,state);}function pcsb_GetSidebarNodeState(nodename){return pcsb_cookie.pcsb_getCookie(nodename);}pcsb_cookie={pcsb_cookieInit:function(plid){pcsb_cookie._pcsb_plid=plid;pcsb_cookie._pcsb_cookiename="LSBNodeStates";},pcsb_getCookie:function(nodename){var valuepairs=pcsb_cookie._pcsb_getCookieValue();if((valuepairs!=null)&&(valuepairs!="")){var arr=valuepairs.split("#");for(i=0;i<arr.length;++i){var keyval=arr[i].split("-");if(keyval[0]==nodename){if(keyval.length>1){return keyval[1];}break;}}}return null;},pcsb_setCookie:function(nodename,value){var date=new Date();date.setFullYear(date.getFullYear()+1);var cookieStr=pcsb_cookie._pcsb_buildCookieString(nodename,value);pcsb_cookie._pcsb_setCookie(cookieStr,date,"/",pcsb_cookie._pcsb_getCookieDomain());},pcsb_showlaststate:function(nodeid,init){var bCookieVal=pcsb_cookie.pcsb_getCookie(nodeid);var bShow=(bCookieVal==null)?(init==1):(bCookieVal==1);if(document.getElementById){var elem=document.getElementById(nodeid);if(elem){if((bShow&&elem.style.display=="none")||(!bShow&&elem.style.display!="none")){pcsb_cookie._pcsb_showhide(nodeid);}}}},_pcsb_setCookie:function(value,expires,path,domain){var curCookie=pcsb_cookie._pcsb_cookiename+pcsb_cookie._pcsb_plid+"="+value+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?"; domain="+domain:"");document.cookie=curCookie;},_pcsb_showhide:function(id){if(document.getElementById){var elem=document.getElementById(id);if(elem){if(elem.style.display==""||elem.style.display=="block"){elem.style.display="none";}else{elem.style.display="";}}}},_pcsb_getCookieValue:function(){var name=pcsb_cookie._pcsb_cookiename+pcsb_cookie._pcsb_plid;return pcj_cookieread(name);},_pcsb_buildCookieString:function(nodename,value){var retStr="";var bNewKeyVal=true;var valuepairs=pcsb_cookie._pcsb_getCookieValue();if((valuepairs!=null)&&(valuepairs!="")){var arr=valuepairs.split("#");for(i=0;i<arr.length;++i){var keyval=arr[i].split("-");if(keyval[0]==nodename){keyval[1]=value;arr[i]=keyval.join("-");bNewKeyVal=false;break;}}retStr=arr.join("#");}if(bNewKeyVal){if(retStr.length>0){retStr+="#";}retStr+=(nodename+"-"+value);}return escape(retStr);},_pcsb_getCookieDomain:function(){var hname=window.location.hostname;var dname="";var tldstart=hname.lastIndexOf(".");if(tldstart<0){dname="."+hname;}else{if(hname.lastIndexOf(".",tldstart-1)>-1){dname=hname.substr(hname.lastIndexOf(".",tldstart-1));}else{dname="."+hname;}}return dname;}};pcsb_bobsblog_quote_ticker={init:function(){if(document.getElementById){pcsb_bobsblog_quote_ticker.quotes=new Array('"Amazing ideas!" - Garrett K.','"Your videos are awesome!" - Jorge G.','"Fantastic info with great presentation." <br /> - Miss Deb','"Thanks for the inspiration." - Dave G.','"That was an amazing eye opener!" <br /> - Manikant','"Thank you for your entertaining insight." <br /> - Ede','"This is basically a free business class." <br /> - Lori','"I&#39;m hooked." - Jeremy','"Great video. Very inspiring." - Jim','"The vlogs are brilliant!" - Kabarr77','"Educational, entertaining, funny..." <br /> - Chris F.','"Thanks for sharing your wisdom." <br /> - Anna');pcsb_bobsblog_quote_ticker.currentQuoteIndex=-1;pcsb_bobsblog_quote_ticker.tickerDisplayElement=document.getElementById("pcsb_bobsblog_quote_span");pcsb_bobsblog_quote_ticker.timeoutId=null;pcsb_bobsblog_quote_ticker.showDuration=10000;return true;}else{return false;}},start:function(){if(pcsb_bobsblog_quote_ticker.quotes.length>0){pcsb_bobsblog_quote_ticker.currentQuoteIndex=0;pcsb_bobsblog_quote_ticker._showQuoteForShowDuration();}},stop:function(){if(pcsb_bobsblog_quote_ticker.currentQuoteIndex>-1){pcsb_bobsblog_quote_ticker._cancelSlideShow();}},_cancelSlideShow:function(){if(typeof pcsb_bobsblog_quote_ticker.timeoutId=="number"){window.clearTimeout(pcsb_bobsblog_quote_ticker.timeoutId);delete pcsb_bobsblog_quote_ticker.timeoutId;}},_showQuoteForShowDuration:function(){pcsb_bobsblog_quote_ticker._cancelSlideShow();pcsb_bobsblog_quote_ticker._showCurrentQuote();pcsb_bobsblog_quote_ticker.timeoutId=window.setTimeout("pcsb_bobsblog_quote_ticker._showNextQuote()",pcsb_bobsblog_quote_ticker.showDuration);},_showCurrentQuote:function(){var currentQuote=pcsb_bobsblog_quote_ticker.quotes[pcsb_bobsblog_quote_ticker.currentQuoteIndex];if(pcsb_bobsblog_quote_ticker.tickerDisplayElement.innerHTML!=currentQuote){pcsb_bobsblog_quote_ticker.tickerDisplayElement.innerHTML=currentQuote;}},_showNextQuote:function(){delete pcsb_bobsblog_quote_ticker.timeoutId;pcsb_bobsblog_quote_ticker.currentQuoteIndex=(pcsb_bobsblog_quote_ticker.currentQuoteIndex+1)%pcsb_bobsblog_quote_ticker.quotes.length;pcsb_bobsblog_quote_ticker._showQuoteForShowDuration();}};function pcj_blurBox(){if(!pcj_isFf){$pc("input[id*='domain']").blur();}}function pcSetCart(ct){atlChiClearCache();pcUpdateCart(ct);}function pcUpdateCart(ct){if($pc("#pct_items").length&&$pc("#carttxt").length){var txt="&nbsp;&nbsp;empty";var tip="Cart is empty.";if(ct>0){if(ct==1){txt=ct+" item";tip=ct+" item in your cart";}else{txt=ct+" items";tip=ct+" items in your cart";}$pc("#carttxt").html(txt).removeClass().addClass("t11 white u nobr fl pt6");$pc("#pct_items").attr("title",tip).removeClass().addClass("sprt carticn_i fl");}else{if(ct<0){txt="&nbsp;&nbsp;Cart";tip="Click here to view cart.";$pc("#carttxt").html(txt).removeClass().addClass("t11 white nobr fl pt6");$pc("#pct_items").attr("title",tip).removeClass().addClass("sprt carticn_e fl");$pc("#pct_cart_click").removeAttr("onClick").click(function(){pcj_lnk(pcj_url_fos+"gdshop/basket.asp"+pcj_args+"13561");});}else{$pc("#carttxt").html(txt).removeClass().addClass("t11 white nobr fl pt6");$pc("#pct_items").attr("title",tip).removeClass().addClass("sprt carticn_e fl");}}}}function pcj_setdata(returnData){if(returnData!=null){pcShopperId=returnData.pcShopperId;pcIsTrusted=returnData.pcIsTrusted;pcFirstName=returnData.pcFirstName;pcRepName=returnData.pcRepName;pcRepExt=returnData.pcRepExt;pcRepEmail=returnData.pcRepEmail;pcCartCt=returnData.pcCartCt;pcExpDomCt=returnData.pcExpDomCt;pcIsDiscount=returnData.pcIsDiscount;pcj_dataready=true;if((pcj_pageready||$pc("#pcj_setgo").length)&&!pcj_processed){pcj_setPage();}}}function pcj_setPage(){if(pcIsTrusted){$pc("#pct_login").hide();$pc("#pct_llk0").hide();$pc("#pct_signin").hide();$pc("#pct_logout").show();if(pcRepName.length!=0){if(pcRepName.length!=0){$pc("#pct_taname").html(pcRepName);}var phoneText="(480) 505-8885";if(pcRepExt.length!=0){phoneText+=("x"+"&nbsp;"+pcRepExt);}$pc("#pct_taphone").html(phoneText);if(pcRepEmail.length!=0){$pc("#pct_taemail").html("&nbsp;"+pcRepEmail);$pc("#VIPEmail").attr("href","mailto:"+pcRepEmail);}$pc("#pct_vip0").show();}if(pcFirstName.length!=0){if(pcFirstName.length<30){$pc("#pct_sn").html("&nbsp;"+pcFirstName);}else{pcFirstName=pcFirstName.substring(0,28);$pc("#pct_sn").html("&nbsp;"+pcFirstName+"...");}}}else{if((pcShopperId.length!=0)&&(pcFirstName.length!=0)){$pc("#pct_login").hide();$pc("#pct_llk0").hide();$pc("#pct_signin").show();$pc("#pct_logout").hide();if(pcFirstName.length!=0){if(pcFirstName.length<30){$pc("#pct_sni").html("&nbsp;"+pcFirstName);}else{pcFirstName=pcFirstName.substring(0,28);$pc("#pct_sni").html("&nbsp;"+pcFirstName+"...");}}}else{$pc("#pct_login").show();$pc("#pct_llk0").show();$pc("#pct_signin").hide();$pc("#pct_logout").hide();}}if($pc("#pct_ddc0").length){if(pcIsDiscount){$pc("#pct_ddc0").show();}else{$pc("#pct_ddc0").hide();}}if($pc("#expCt").length){if(pcExpDomCt>0){if(pcExpDomCt==1){$pc("#expCt").html(pcExpDomCt+" Domain Expiring");}else{$pc("#expCt").html(pcExpDomCt+" Domains Expiring");}$pc("#pct_exp0").show();}else{$pc("#pct_exp0").hide();}}pcUpdateCart(pcCartCt);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("#pct_undiv").addClass("off");}else{$pc("#pct_undiv").addClass("on");}}};$pc.fn.pcj_check_pass=function(){if($pc("#password").length){if($pc("#password").val().length>0){$pc("#pct_pwdiv").addClass("off");}else{$pc("#pct_pwdiv").addClass("on");}}};$pc(document).ready(function(){pcj_pageready=true;if(pcj_dataready&&!pcj_processed){pcj_setPage();}$pc("#"+$pc("#pct_active_search").val()).css("backgroundColor","#e4efc7");$pc("#searchField").val($pc("#pct_active_text").val());$pc("#pct_signinl").click(function(){$pc("#pct_signin").hide();$pc("#pct_login").show();$pc("#pct_llk0").show();});setTimeout("$pc(this).pcj_check_login()",300);setTimeout("$pc(this).pcj_check_pass()",300);});
