(function(){jQuery.expr[":"].regex=function(g,d,c){var h=c[3].split(","),b=/^(data|css|elem):/,a={method:h[0].match(b)?h[0].split(":")[0]:"attr",property:h.shift().replace(b,"")},f="ig",e=new RegExp(h.join("").replace(/^\s+|\s+$/g,""),f);return e.test(a.method=="elem"?g[a.property]:jQuery(g)[a.method](a.property))}})();(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);window.onerror=new Function("return true;");function autoFocus(){ico.common.autoFocus()}function CloseAndRefresh(){c1.ui.showOverlay();document.location.href=document.location.href}function format(e,b,d,a,c){ico.common.format(e,b,d,a,c)}function popUp(a,b){ico.common.popUpUrl(a,b)}function SetLeaving(){c1.ico.setLeaving()}function toggleHelpFAQ(a){ico.common.toggleHelpFAQ(a)}function toggleHelpVideo(b,a){ico.common.toggleHelpVideo(b,a)}(function(b){var a=function(){b("a.button-print, div.print").click(function(){window.print()});var c=b("a:regex(elem:href,/careonewebpub/|/mycareoneweb/|careonecredit.com):not(.nosetleaving),input[type=image]");c.live("click",ico.common.setLeaving);b("div.tabs > a").click(ico.common.setLeaving);b("input.c1-v-numeric").keypress(ico.common.numericKeyPress);b("input.c1-auto-tab[maxlength]").keyup(ico.common.autoTabInputWithMaxLength);b("select.c1-ignore-backspace").keydown(ico.common.captureBackspace);ico.common.assignPops();ico.common.prepareBubbleHelp();ico.common.replaceSubmitButtons();ico.feedbackCallout.prepareCallout();ico.common.markIncompleteRequiredFields();b("a.rollover:has(img), input.rollover").each(function(){this.img=(this.tagName.toLowerCase()=="input")?this:b("img",this)[0];var d=new Image();d.src=ico.common.loadImage(this,0,1)});b("input.rolloverSubmitImage").each(function(){this.img=(this.tagName.toLowerCase()=="input")?this:b("img",this)[0];var d=new Image()});b("a.rollover:has(img), input.rollover, input.rolloverSubmitImage").hover(function(){ico.common.loadImage(this,1,1)},function(){ico.common.loadImage(this,0,1)});if(window.attachEvent){b("#nav>li").mouseover(function(){b(this).addClass("sfhover")}).mouseout(function(){b(this).removeClass("sfhover")})}b("#nav>li>ul").bgiframe();if(b.browser.msie&&b.browser.version.substr(0,1)<7){b("#nv li").hover(function(){b(this).addClass("sfhover")},function(){b(this).removeClass("sfhover")})}if(window.c1){c1.setReady("estara")}};b(document).ready(a)})(jQuery);(function(){var a=this,c;if($.ui){var b=$.ui.dialog.defaults;if(b==null||b=="undefined"){b=$.ui.dialog.prototype.options}b.bgiframe=true;b.modal=true}})();(function(){var b={};var a={execWhenReady:function(c,d){if(b[c]!==undefined){d();return}$(a).queue(c,function(){d();$(this).dequeue(c)})},setReady:function(c){b[c]=true;$(a).dequeue(c)},eachValue:function(c,d){$(c).each(function(){d.call($(this).val())})},ico:{setLeaving:function(){window.leaving=false;window.fpexitpopup=false},saveAndLogout:function(d){c1.ico.setLeaving();c1.ui.showOverlay(300,"<p style='padding: 10px;'>Your information has been saved.","Save &amp; Logout",false,false);var c='document.location.href = "'+d+'logout.aspx"';setTimeout(c,3500)}},session:{startTimer:function(f,d,c){var e=a.session;e.offset=f;e.warning=d;e.timeoutUrl=c;e.setTimeout()},setTimeout:function(){var c=a.session;var d=function(){alert("In order to protect your security, your session will timeout in "+c.offset+" minutes. Press OK to continue your session.");window.frames.SessionFrame.AnchorClick()};window.setTimeout(d,c.warning)},redirectLogout:function(){document.location=a.session.timeoutUrl}},ui:{toggleVisibility:function(e,c){$("#"+c).toggle();var d=$(e).hasClass("HideSection");$(e).toggleClass("HideSection",!d).toggleClass("ShowSection",d).attr("title",function(){return this.title=="Hide"?"Show":"Hide"})},toolTip:function(d,c){$(d).each(function(g){var e=$(this).attr("title");$("body").append("<div style='display:none' class='"+c+"' id='"+c+g+"'><p>"+e+"</p><span class='Balloon' height='10'>&nbsp;</span></div>");var f=$("#"+c+g);if(e!=""&&e!==undefined){$(this).removeAttr("title").mouseover(function(h){f.css({display:"none",left:h.pageX+15,top:h.pageY+15}).show()}).mouseout(function(){f.hide()})}});$("."+c).bgiframe({height:"expression(this.parentNode.offsetWidth+20+'px')"})},showOverlay:function(e,g,i,d,h){var f=$("#dialog");var c=f[0];if(arguments.length==0||!g){if(c){f.dialog("close")}return}if(c){f.dialog("close");f.dialog("destroy")}else{c=document.createElement("div");c.id="dialog";c.style.display="none";document.body.appendChild(c);f=$("#dialog")}if(!i){c.title=""}else{c.title=i}c.innerHTML=g;f.dialog({width:e+1,close:function(j,k){$(this).html("")}})},openDialog:function(d){var c=$(window).scrollTop();$(d).dialog("open").dialog("moveToTop");if($.browser.msie&&$.browser.version.substr(0,1)<8){scroll(0,c)}}}};if(window.c1){$.extend(true,window.c1,a)}else{window.c1=a}})();(function(){$(window).unload(function(){var f,e=self.location.toString().toLowerCase(),d=window.fpexitpopup;var c=function(k){var j=window.location.pathname;var h=j.toLowerCase().indexOf("/ico");var i="/ico/help/calluscommunity.aspx?icoPopUpLocation="+k;var g;if(h>-1){g=j.substring(0,h)+i}else{g=".."+i}ico.common.popUpUrl(g,13);return true};if(d!=null&&d!==f&&d){return c(icoPopUpLocation)}});var b=$("a:regex(elem:href,/careonewebpub/|/mycareoneweb/|careonecredit.com):not(.nosetleaving),input[type=image]");b.live("click",c1.ico.setLeaving);var a=window.__doPostBack;window.__doPostBack=function(d,c){c1.ico.setLeaving();return a(d,c)}})();(function(){var a={common:{creditor:{amountDueKeyPress:function(b,c){var d;if(window.event){d=c.keyCode}else{if(c.which){d=c.which}}if(d==13){format(b,"number","currency",2);$("#ctl00_BodyContent_EditCreditorControl_Submit")[0].click();c.returnValue=false}},checkCreditor:function(e){var b=$("#ctl00_BodyContent_EditCreditorControl_CreditorList")[0];var d=$("#ctl00_BodyContent_EditCreditorControlCRPulled_CreditorList")[0];if(e==""){if(b!=null&&b!="undefined"){b.value="notlisted"}else{if(d!=null&&d!="undefined"){d.value="notlisted"}}e="notlisted"}var c=$("#ShowWriteIn")[0];var g=$("#ctl00_BodyContent_EditCreditorControl_CreditorNameWriteIn")[0];var f=$("#ctl00_BodyContent_EditCreditorControlCRPulled_CreditorNameWriteIn")[0];if(e=="notlisted"){c.style.display="";if(b!=null&&b!="undefined"){b.style.color="gray"}else{if(d!=null&&d!="undefined"){d.style.color="gray"}}if(g!=null&&g!="undefined"){g.select();g.focus()}else{if(f!=null&&f!="undefined"){f.select();f.focus()}}}else{if(c!=null&&c!="undefined"){c.style.display="none"}if(b!=null&&b!="undefined"){b.style.color="black"}else{if(d!=null&&d!="undefined"){d.style.color="black"}}if(g!=null){g.value=""}else{if(f!=null&&f!="undefined"){f.value=""}}}},checkPrimaryHolder:function(b){var b=$("[id$=_PrimaryAccountHolder]");if(b!=null){if(b.val()=="-2"){$(".coAppContent").show()}else{$(".coAppContent").hide()}}},getBalanceSubtotal:function(h,j){var g=0;var e=0;var c=0;if(j){var f=document.getElementsByTagName("div");for(var d=0;d<f.length;d++){if(f[d].id.indexOf("_AccountBalance")!=-1&&f[d].getAttribute("ownerTypeID")==String(h)){if(!isNaN(parseFloat(a.common.stripDollar(f[d].innerHTML)))){e=parseFloat(a.common.stripDollar(f[d].innerHTML));g+=e;c++}}}}else{var b=document.getElementsByTagName("input");for(var d=0;d<b.length;d++){if(b[d].id.indexOf("AccountBalance")!=-1&&b[d].getAttribute("ownerTypeID")==String(h)){if(!b[d].readOnly){if(!isNaN(parseFloat(a.common.stripDollar(b[d].value)))){e=parseFloat(a.common.stripDollar(b[d].value));g+=e;c++}}}}}return((parseInt(parseFloat(g)*100))/100).toFixed(0)},getPaymentSubtotal:function(f,e){var j=0;var c=0;var g=0;var k;if(e){var h=document.getElementsByTagName("div");for(var b=0;b<h.length;b++){if(h[b].id.indexOf("_MonthlyPayment")!=-1&&h[b].getAttribute("ownerTypeID")==String(f)){k=a.common.stripDollar(h[b].innerHTML);if(!isNaN(parseFloat(k))){c=parseFloat(a.common.stripDollar(h[b].innerHTML));j+=c;g++}}}}else{var d=document.getElementsByTagName("input");for(var b=0;b<d.length;b++){if(d[b].id.indexOf("MonthlyPayment")!=-1&&d[b].getAttribute("ownerTypeID")==String(f)){if(!d[b].readOnly){if(!isNaN(parseFloat(a.common.stripDollar(d[b].value)))){c=parseFloat(a.common.stripDollar(d[b].value));j+=c;g++}}}}}return((parseInt(parseFloat(j)*100))/100).toFixed(0)},highBalanceValidator_Validate:function(d,b){var c=$("[id$=_EnableBalanceCheck]")[0];if(c.value=="1"){var e=parseFloat($("[id$=_AccountBalance]")[0].innerText);if(e>30000){b.IsValid=false;c.value="0"}else{b.IsValid=true}}else{b.IsValid=true}return b.IsValid},nextStep:function(b){if(b!=""){if($("#AllTypes2")[0]!=null){$("#AllTypes2")[0].style.display=""}}else{if($("#AllTypes2")[0]!=null){$("#AllTypes2")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display=""}if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display="none"}}switch(b){case"10":if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display=""}if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display="none"}break;case"14":if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display=""}if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display="none"}break;case"15":if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display=""}break;case"18":if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display=""}break;case"25":if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display=""}break;case"7":if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display=""}break;case"90":if($("#OtherFields")[0]!=null){$("#OtherFields")[0].style.display=""}if($("#CreditStoreFields")[0]!=null){$("#CreditStoreFields")[0].style.display="none"}if($("#showPaymentInfo")[0]!=null){$("#showPaymentInfo")[0].style.display=""}break}},popLoan:function(b){if(b=="25"||b=="15"||b=="90"){a.common.popUpUrl("../ico/help/regularmonthlypaymentnoreminder.aspx",8)}},runDelete:function(d){var b=document.getElementsByTagName("input");var e;for(var c=0;c<b.length;c++){if(b[c].id.indexOf("DeleteReasonHidden")>-1){e=b[c];break}}if(e!=null){e.value=d}while(rowID.indexOf("_")>0){rowID=rowID.replace("_","$")}__doPostBack(rowID,"")},showRemoveCoAppAccountsOverlay:function(){var b='<div class="BodyContainer" style="height:300px"><iframe id="coAppAccountsFrame" src="overlay/RemoveCoAppWithAccounts.aspx" width="100%" height="100%" scrolling="auto" frameborder="0"></iframe></div>';c1.ui.showOverlay(400,b,"",true,false)},updateBalanceSubtotal:function(c,e){var d;var b;if(c=="1"){d=(!e)?$("#myAccountsBalanceSubtotal1")[0]:$("#myAccountsBalanceSubtotal2")[0]}else{if(c=="2"){d=(!e)?$("#coAppBalanceSubtotal1")[0]:$("#coAppBalanceSubtotal2")[0]}else{d=(!e)?$("#sharedBalanceSubtotal1")[0]:$("#sharedBalanceSubtotal2")[0]}}b=a.common.creditor.getBalanceSubtotal(c,e);if(d!=null&&d!="undefined"){d.innerHTML=a.common.addDollar(b)}},updateBalanceSubtotals:function(b){a.common.creditor.updateBalanceSubtotal(1,b);a.common.creditor.updateBalanceSubtotal(2,b);a.common.creditor.updateBalanceSubtotal(3,b)},updateMonthlyPmtTotal:function(){var e=0;var f=false;var b;var d=document.getElementsByTagName("div");for(var c=0;c<d.length;c++){if(d[c].id.indexOf("_MonthlyPayment")!=-1){f=true;break}}e+=parseFloat(a.common.creditor.getPaymentSubtotal(1,f));e+=parseFloat(a.common.creditor.getPaymentSubtotal(2,f));e+=parseFloat(a.common.creditor.getPaymentSubtotal(3,f));if(!f){b=$("#totalMinMonthlyPayment1")[0];if(b!=null&&b!="undefined"){b.innerHTML=a.common.addDollar((parseInt(e*100)/100).toFixed(0))}}else{b=$("#totalMinMonthlyPayment2")[0];if(b!=null&&b!="undefined"){b.innerHTML=a.common.addDollar((parseInt(e*100)/100).toFixed(0))}}},updatePaymentSubtotal:function(d,e){var c;var b;if(d=="1"){c=(!e)?$("#myAccountsPaymentSubtotal1")[0]:$("#myAccountsPaymentSubtotal2")[0]}else{if(d=="2"){c=(!e)?$("#coAppAccountsPaymentSubtotal1")[0]:$("#coAppAccountsPaymentSubtotal2")[0]}else{c=(!e)?$("#sharedPaymentSubtotal1")[0]:$("#sharedPaymentSubtotal2")[0]}}b=a.common.creditor.getPaymentSubtotal(d,e);if(c!=null&&c!="undefined"){c.innerHTML=a.common.addDollar(b)}},updatePaymentSubtotals:function(b){a.common.creditor.updatePaymentSubtotal(1,b);a.common.creditor.updatePaymentSubtotal(2,b);a.common.creditor.updatePaymentSubtotal(3,b)},updateTotal:function(){var d=0;var f=false;var e;var c=document.getElementsByTagName("div");for(var b=0;b<c.length;b++){if(c[b].id.indexOf("_AccountBalance")!=-1){f=true;break}}d+=parseFloat(a.common.creditor.getBalanceSubtotal(1,f));d+=parseFloat(a.common.creditor.getBalanceSubtotal(2,f));d+=parseFloat(a.common.creditor.getBalanceSubtotal(3,f));if(!f){e=$("#totalBalance1")[0];if(e!=null&&e!="undefined"){e.innerHTML=a.common.addDollar((parseInt(d*100))/100)}}else{e=$("#totalBalance2")[0];if(e!=null&&e!="undefined"){e.innerHTML=a.common.addDollar((parseInt(d*100))/100)}}}},estara:{popCallMeNowWindow:function(b){a.common.estara.pushToTalk(b)},pushToTalk:function(d){try{var b=webVoicePop("Template=86675");if(d==1){window.close()}}catch(c){}}},webService:{wsRequestJSON:function(b,d,c,e){if((c==null)||(c=="")){c="{}"}if(e){$.ajax({type:"POST",cache:false,url:b,data:c,contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){d(f)},error:function(f){e(f)}})}else{$.ajax({type:"POST",cache:false,url:b,data:c,contentType:"application/json; charset=utf-8",dataType:"json",success:function(f){d(f)}})}},dateReviver:function(c,d){var b;if(typeof d==="string"){b=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(d);if(b){return new Date(Date.UTC(+b[1],+b[2]-1,+b[3],+b[4],+b[5],+b[6]))}}return d}},addCommas:function(c){c+="";x=c.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var b=/(\d+)(\d{3})/;while(b.test(x1)){x1=x1.replace(b,"$1,$2")}return x1+x2},addDollar:function(b){b=a.common.stripDollar(b);return"$"+a.common.addCommas(b)},assignPops:function(){$("a.pop1").click(function(b){a.common.popUpUrl($(this).attr("href"),1);b.preventDefault()});$("a.pop2").click(function(b){a.common.popUpUrl($(this).attr("href"),2);b.preventDefault()});$("a.pop3").click(function(b){a.common.popUpUrl($(this).attr("href"),3);b.preventDefault()});$("a.pop4").click(function(b){a.common.popUpUrl($(this).attr("href"),4);b.preventDefault()});$("a.pop5").click(function(b){a.common.popUpUrl($(this).attr("href"),5);b.preventDefault()});$("a.pop6").click(function(b){a.common.popUpUrl($(this).attr("href"),6);b.preventDefault()});$("a.pop7").click(function(b){a.common.popUpUrl($(this).attr("href"),7);b.preventDefault()});$("a.pop8").click(function(b){a.common.popUpUrl($(this).attr("href"),8);b.preventDefault()});$("a.pop9").click(function(b){a.common.popUpUrl($(this).attr("href"),9);b.preventDefault()});$("a.pop10").click(function(b){a.common.popUpUrl($(this).attr("href"),10);b.preventDefault()});$("a.pop11").click(function(b){a.common.popUpUrl($(this).attr("href"),11);b.preventDefault()});$("a.pop12").click(function(b){a.common.popUpUrl($(this).attr("href"),12);b.preventDefault()})},autoFocus:function(){var c=$("form input:text:visible, form textarea:visible, form select:visible");for(var b=0;b<c.length;b++){try{c[b].focus();return}catch(d){}}},autoTabInputWithMaxLength:function(d){var g=function(e){var m=-1,n=0;while(n<e.form.length&&m==-1){if(e.form[n]==e){m=n}else{n++}}return m};var j=d.which;var b=[0,8,9,16,17,18,37,38,39,40,46];var i=this;var c=$(this).attr("maxlength");if(i.value.length>=c&&$.inArray(j,b)==-1){i.value=i.value.slice(0,c);var l=false,f=1,k=g(i);while(!l){try{if(k+f<=i.form.length){i.form[(k+f)%i.form.length].focus()}l=true}catch(h){f++}}}},captureBackspace:function(b){if(b.which==8){b.preventDefault()}},checkForEnterKey:function(b,d){var c;if(window.event){c=b.keyCode}else{if(b.which){c=b.which}}if(c==13){d.blur();d.focus()}},checkReqField:function(d,b){var c=$("#"+d).val();if((c.replace(/\s/g,""))==""){$("#"+d).addClass("IncompleteReqField")}else{if((b=="select-one")&&($("#"+d).hasClass("TreatZeroAsBlank"))&&c==0){$("#"+d).addClass("IncompleteReqField")}else{$("#"+d).removeClass("IncompleteReqField")}}},disableEnterKey:function(c){var b;if(window.event){b=window.event.keyCode}else{b=c.which}return(b!=13)},doRollOut:function(d,b){var c=$("#"+d);if(c.className.indexOf("Selected")==-1){c.className=b}},doRollOver:function(d,b){var c=$("#"+d);if(c.className.indexOf("Selected")==-1){c.className=b}},format:function(d,g,h,b,j){var f=function(k,n,o){var l=n.split(".",2);var m;if(k==null){k=0}if((isNaN(k))||(k<0)){k=0}if(o!=true){o=false}if(isNaN(parseInt(l[0]))){l[0]=0}if(isNaN(parseInt(l[1]))){l[1]=0}switch(k){case 0:m=l[0];break;default:m=l[0]+"."+e(k,l[1]);break}return m};var c=function(p,o){var n=new RegExp(p,"g");var k=o.match(n);var l=(k!=null)?k.join(""):"";return l};var e=function(k,m){var l=String(m);if(k>l.length){while(l.length<k){l+="0"}}if(l.length>k){l=l.substring(0,k)}return l};var i;if(h==null){h=""}if(d.value==""){return}switch(g.toLowerCase()){case"number":switch(h.toLowerCase()){case"currency":i=f(b,c("[0-9.]",d.value),j);break;case"ssn":i=c("[0-9]",d.value);if(i.length>9){i=i.substring(0,9)}if(i.length>5){i=i.substring(0,3)+"-"+i.substring(3,5)+"-"+i.substring(5)}else{if(i.length>3){i=i.substring(0,3)+"-"+i.substring(3)}}break;case"zipcode":i=c("[0-9]",d.value);i=(i.length>5)?(i.substring(0,5)+"-"+i.substring(5,9)):(i.substring(0,5));break;case"date":i=c("[0-9]",d.value);if(i.length>8){i=i.substring(0,8)}if(i.length>4){i=i.substring(0,2)+"/"+i.substring(2,4)+"/"+i.substring(4)}else{if(i.length>2){i=i.substring(0,2)+"/"+i.substring(2)}}break;default:i=c("[0-9]",d.value);break}break}d.value=i;return},formatCurrency:function(c){var b=/(\d+)(\d{3})/;while(b.test(c)){c=c.replace(b,"$1,$2")}return"$"+c},isLargerThanMaxText:function(d,b){var c=$("#"+d).val();return(c.length>b)},loadImage:function(g,d,f){if(g.img===undefined){return}var e="_1.";var c="_0.";var b=g.img.src;b=(b.indexOf(e)!=-1)?b.replace(e,c):b.replace(c,e);if(f){if(d==1||d==0&&g.init){g.img.src=b}g.init=true}return b},markIncompleteRequiredFields:function(){$(".IncompleteReqField").each(function(){$("#"+this.id).bind("blur",function(b){a.common.checkReqField(this.id,this.type)});if(this.type=="select-one"){$("#"+this.id).click(function(b){a.common.checkReqField(this.id,this.type)})}a.common.checkReqField(this.id,this.type)})},numericKeyPress:function(b){var c=b.which;if(c==8||c==0){}else{if(c<45||c>57){b.preventDefault()}}},openDialog:function(b){a.common.openDialog(b,null)},openDialog:function(d,b){var c=$(window).scrollTop();if(b!=null){$(d).dialog({title:b}).dialog("open").dialog("moveToTop")}else{$(d).dialog("open").dialog("moveToTop")}if($.browser.msie&&$.browser.version.substr(0,1)<8){scroll(0,c)}},openWindow:function(b,c,d,l,g,k,f,i,m){var j=0,h=0;if(screen.availWidth){j=(parseInt(screen.availHeight)-l)/2;h=(parseInt(screen.availWidth)-d)/2}else{j=(parseInt(screen.height)-l)/2;h=(parseInt(screen.width)-d)/2}var e="directories=0";e+=",top="+j;e+=",left="+h;e+=",height="+l;e+=",width="+d;e+=",menubar="+((f)?"yes":"no");e+=",toolbar="+((f)?"yes":"no");e+=",location="+((f)?"yes":"no");e+=",status="+((i)?"yes":"no");e+=",scrollbars="+((k)?"yes":"no");e+=",resizable="+((g)?"yes":"no");e+=","+m.toString();if(c.toLowerCase().indexOf("popup")==-1){c+="PopUp"}window[c]=window.open(b,c,e,true);window.setTimeout("window['"+c+"'].focus()",100);return window[c]},popUpUrl:function(b,c){if(c==null){c=0}switch(parseInt(c)){case 0:case 1:return a.common.openWindow(b,"Medium",520,420,true,true,false,false,"");case 2:return a.common.openWindow(b,"HelpCenter",574,520,true,true,false,false,"");case 3:return a.common.openWindow(b,"MediaPlayer",359,384,false,false,false,false,"");case 4:return a.common.openWindow(b,"DigSigAgreement",820,550,true,true,true,true,"");case 5:return a.common.openWindow(b,"Chat",580,450,true,true,true,true,"");case 6:return a.common.openWindow(b,"Tall",520,620,true,true,false,false,"");case 7:return a.common.openWindow(b,"PaymentDate",874,580,true,true,false,false,"");case 8:return a.common.openWindow(b,"Short",520,310,true,true,false,false,"");case 9:return a.common.openWindow(b,"MediaPlayer",359,440,false,false,false,false,"");case 10:return a.common.openWindow(b,"ExitSurvey",750,580,true,true,false,false,"");case 11:return a.common.openWindow(b,"Privacy",574,480,true,true,false,false,"");case 12:return a.common.openWindow(b,"LicensingAndDisclosures",750,445,false,false,false,false,"");case 13:return a.common.openWindow(b,"ExitPopCommunity",600,300,false,false,false,false,"")}},prepareBubbleHelp:function(){$("a[title]:not(.nosweettitle), img[title]:not(.nosweettitle), span[title]:not(.nosweettitle)").mouseover(function(){this.style.cursor="default";this.style.textDecoration="none"});$("a[title]:not(.nosweettitle), img[title]:not(.nosweettitle), span[title]:not(.nosweettitle)").click(function(b){b.preventDefault()});a.common.toolTip("a[title]:not(.nosweettitle), img[title]:not(.nosweettitle), span[title]:not(.nosweettitle)","toolTip")},replaceNonASCIIChars:function(b){if((b==null)||(b=="undefined")){return b}var c=/[^\x00-\x7F]/g;return b.toString().replace(c," ")},replaceSubmitButtons:function(){$(":button.btn,:button.btn-h,:submit.btn,:submit.btn-h").replaceWith(function(){var b=document.createElement("a");var c=$(b);c.addClass($(this).attr("class"));c.click(function(){$(this).parents("form").submit()});c.html("<span>"+$(this).val()+"</span>");return b})},saveAndLogout:function(c){a.common.setLeaving();a.common.showOverlay(300,"<p style='padding: 10px;'>Your information has been saved.","Save &amp; Logout",false,false);var b='document.location.href = "'+c+'logout.aspx"';setTimeout(b,3500)},setLeaving:function(){window.leaving=false;window.fpexitpopup=false},setValueIfElementIsEmpty:function(d,b){var c=$("#"+d);if(c.val()==""){c.val(b)}},showFAQPopUp:function(c){var b=$(window).scrollTop();$("#faqDiv"+c).dialog({width:400});if($.browser.msie&&$.browser.version.substr(0,1)<8){scroll(0,b)}},showOverlay:function(d,f,h,c,g){var e=$("#dialog");var b=e[0];if(arguments.length==0||!f){if(b){e.dialog("close")}return}if(b){e.dialog("close");e.dialog("destroy")}else{b=document.createElement("div");b.id="dialog";b.style.display="none";document.body.appendChild(b);e=$("#dialog")}if(!h){b.title=""}else{b.title=h}b.innerHTML=f;var i=$(window).scrollTop();e.dialog({width:d+1,close:function(j,k){$(this).html("")}});if($.browser.msie&&$.browser.version.substr(0,1)<8){scroll(0,i)}},stripDollar:function(b){var c;if(b!=null&&b!="undefined"&&b.toString().length>0){c=b.toString().replace("$","");c=c.replace(",","")}return c},toggleHelpFAQ:function(b){var c=$("#"+b,$("div#HelpCenter"))[0];if(c==null){c=document.getElementById(b)}var d=(c.style.display=="")?"block":c.style.display;c.style.display=(d=="block")?"none":"block"},toggleHelpVideo:function(d,b){var c=$("#video")[0];var e=(c.style.display=="")?"block":c.style.display;if(e=="block"){c.style.display="none";a.common.videoStop()}else{c.style.display="block";if(DetectFlashVer("8","0","0")){c.style.color="black";a.common.videoPlay(d,b)}else{c.style.color="red";c.innerHTML="To watch this video, <a href='http://www.adobe.com/go/getflash/' onclick='popUp(this.href, 2); return false;'>download</a> and install the latest version of <a href='http://www.adobe.com/go/getflash/' onclick='popUp(this.href, 2); return false;'>Flash</a> on your computer."}}},toolTip:function(c,b){$(c).each(function(f){var d=$(this).attr("title");$("body").append("<div style='display:none' class='"+b+"' id='"+b+f+"'><p>"+d+"</p><span class='Balloon' height='10'>&nbsp;</span></div>");var e=$("#"+b+f);if(d!=""&&d!==undefined){$(this).removeAttr("title").mouseover(function(g){e.css({display:"none",left:g.pageX+15,top:g.pageY+15}).show()}).mouseout(function(){e.hide()})}})},videoPlay:function(e,c){var d=new SWFObject(c,"mymovie","160","154","6","#FFFFFF");d.addParam("wmode","transparent");d.write("video");var b=$("#frameWebTracking")[0];b.src="../ui/webtracking.aspx?ContentName="+c},videoStop:function(){var d=$("#video")[0];if(d!=null){while(d.childNodes.length>0){var b=d.childNodes[0];d.removeChild(b)}}}},begin:{docReady:function(){$("#continueButton").click(function(b){if($(this).data("submitted")){b.preventDefault()}else{$(this).data("submitted")}})}},creditorSummary:{docReady:function(){a.creditorSummary.includeCheckboxSetup();$("div#removecreditordialog").dialog({width:375,height:205,draggable:false,resizable:false,autoOpen:false,dialogClass:"removecreditordialog"});$("div#lowbalancedialog").dialog({width:375,height:135,draggable:false,resizable:false,autoOpen:false,dialogClass:"lowbalancedialog"});$("div#highbalancedialog").dialog({width:375,height:135,draggable:false,resizable:false,autoOpen:false,dialogClass:"highbalancedialog"});$("div#continue",$("div#removecreditordialog")).hover(function(){$(this).removeClass("continue_0").addClass("continue_1")},function(){$(this).removeClass("continue_1").addClass("continue_0")}).keypress(function(b){if(b.keyCode=="13"){a.creditorSummary.saveRemovalReason()}}).click(function(b){a.creditorSummary.saveRemovalReason()})},expandRegions:function(d){var g=$("#PrimaryAccountsExpanded")[0];var b=$("#CoAppAccountsExpanded")[0];var f=$("#SharedAccountsExpanded")[0];var c;var e;if(g!=null&&g!="undefined"){e=$("#myAccountsDiv")[0];c=$("#myAccountsLink")[0];if(e!=null&&e!="undefined"&&c!=null&&c!="undefined"&&((g.value=="1"&&c.className.indexOf("HideSection")!=-1)||(g.value=="0"&&c.className.indexOf("ShowSection")!=-1))){c1.ui.toggleVisibility(c,"myAccountsDiv")}}if(b!=null&&b!="undefined"){e=$("#coAppAccountsDiv")[0];c=$("#coAppAccountsLink")[0];if(e!=null&&e!="undefined"&&c!=null&&c!="undefined"&&((b.value=="1"&&c.className.indexOf("HideSection")!=-1)||(b.value=="0"&&c.className.indexOf("ShowSection")!=-1))){c1.ui.toggleVisibility(c,"coAppAccountsDiv")}}if(f!=null&&f!="undefined"){e=$("#sharedAccountsDiv")[0];c=$("#sharedAccountsLink")[0];if(e!=null&&e!="undefined"&&c!=null&&c!="undefined"&&((f.value=="1"&&c.className.indexOf("HideSection")!=-1)||(f.value=="0"&&c.className.indexOf("ShowSection")!=-1))){c1.ui.toggleVisibility(c,"sharedAccountsDiv")}}},includeCheckboxSetup:function(){$("tr",$(".CreditorSummaryGrid")).each(function(b,c){$(c).attr("rowID",b);$("input:checkbox",$(c)).attr("rowID",b).click(function(e){a.creditorSummary.gRemovalDialogClose=false;a.creditorSummary.gRowID=$(this).attr("rowID");$("#errormsg",$("div#removecreditordialog")).hide();if($(this)[0].checked){$("td, input",$("tr[rowid="+a.creditorSummary.gRowID+"]")).removeClass("notincluded").attr("readonly",false);a.common.creditor.updateBalanceSubtotals(false);a.common.creditor.updatePaymentSubtotals(false);a.common.creditor.updateTotal();a.common.creditor.updateMonthlyPmtTotal()}else{e.preventDefault();$("input:radio:checked",$("div#removecreditordialog")).attr("checked",false);var d=$("input:hidden[id*='CreditorName']",$("tr[rowid="+a.creditorSummary.gRowID+"]")).val();$("#creditor",$("div#removecreditordialog")).text(d);a.common.openDialog("div#removecreditordialog")}});$("input:hidden[id*='HiddenDeleteReasonTypeID']",$(c)).attr("rowID",b)})},preSelectDebtType:function(){var c=$("#ctl00_BodyContent_EditCreditorControlCRPulled_DebtClassSelect")[0];if(c!=null&&c!="undefined"){c.selectedIndex=1;a.common.creditor.popLoan("");a.common.creditor.nextStep("")}var b=$(_body+"_EditCreditorControl_DebtClassSelect")[0];if(b!=null&&b!="undefined"){b.selectedIndex=1;b.focus()}},saveRemovalReason:function(){a.creditorSummary.gRemovalDialogClose=true;var c=$("input:radio:checked",$("div#removecreditordialog")).val();var b=a.creditorSummary.gRowID;if(c!=undefined){$("td, input",$("tr[rowid="+b+"]")).addClass("notincluded").attr("readonly",true);$("input:checkbox",$("tr[rowid="+b+"]")).removeAttr("checked");$("input:hidden[id*='HiddenDeleteReasonTypeID']",$("tr[rowid="+b+"]")).val(c);a.common.creditor.updateBalanceSubtotals(false);a.common.creditor.updatePaymentSubtotals(false);a.common.creditor.updateTotal();a.common.creditor.updateMonthlyPmtTotal();$("div#removecreditordialog").dialog("close")}else{$("#errormsg",$("div#removecreditordialog")).show()}},setExpansionField:function(d,b){var c=document.getElementById(d);if(c!=null&&c!="undefined"){c.value=(b.className.indexOf("ShowSection")!=-1)?1:0}},showFieldsOnLoad:function(){if($("#ctl00_BodyContent_EditCreditorControl_DebtClassSelect")[0]!=null){a.common.creditor.nextStep($("#ctl00_BodyContent_EditCreditorControl_DebtClassSelect")[0].value)}else{if($("#ctl00_BodyContent_EditCreditorControlCRPulled_DebtClassSelect")[0]!=null){a.common.creditor.nextStep($("#ctl00_BodyContent_EditCreditorControlCRPulled_DebtClassSelect")[0].value)}else{a.common.creditor.nextStep("")}}var b=$("#ctl00_BodyContent_EditCreditorControl_CreditorList")[0];var c=$("#ctl00_BodyContent_EditCreditorControlCRPulled_CreditorList")[0];if(b!=null&&b!="undefined"){a.common.creditor.checkCreditor(b.value)}if(c!=null&&c!="undefined"){a.common.creditor.checkCreditor(c.value)}},validateBalanceMax:function(c){a.common.format(c,"number","currency",0);a.common.creditor.updateTotal();var b=parseInt(c.value);if(b>30000){a.common.openDialog("div#highbalancedialog")}else{if(b<200){a.common.openDialog("div#lowbalancedialog")}}}},exit:{docReady:function(b){$(".link").click(function(c){a1.omniture.trackLink2("Exit Pop Community Blog Link Click",false);a.common.openWindow(b,"",screen.width,screen.height,true,true,true,true,"");window.close()});$("div#connecttoassociate").hover(function(){$(this).removeClass("connecttoassociate_0").addClass("connecttoassociate_1")},function(){$(this).removeClass("connecttoassociate_1").addClass("connecttoassociate_0")}).click(function(){a.common.estara.pushToTalk(0)})},popExit:function(f){var e=window.location.pathname;var c=e.toLowerCase().indexOf("/ico");var d="/ico/help/calluscommunity.aspx?icoPopUpLocation="+f;var b;if(c>-1){b=e.substring(0,c)+d}else{b=".."+d}a.common.popUpUrl(b,13);return true}},feedbackCallout:{showFeedbackOverlay:function(){a.common.showOverlay(400,"<iframe id='FeedbackFrame' height='300px' width='400px' scrolling='no' bordercolor='transparent' allowtransparency='true' frameborder='no' src='../ui/feedback/submit.aspx'></iframe>");return false},prepareCallout:function(){$("#feedbackLink").click(function(b){a.feedbackCallout.showFeedbackOverlay();b.preventDefault()})},hideFeedbackForm:function(){$("#feedbackThanksDiv")[0].style.display="inline";$("#feedbackFormDiv")[0].style.display="none"},showFeedbackForm:function(){$("#feedbackThanksDiv")[0].style.display="none";$("#feedbackFormDiv")[0].style.display="inline"},closeAndRefreshFeedback:function(){HideFeedbackForm();c1.ui.showOverlay();var b=window.parent.location.href;b=b.split("/");b=b[b.length-1];if(b.toUpperCase().indexOf("CREDITORSUMMARY.ASPX")>-1||b.toUpperCase().indexOf("CREDENTIALS.ASPX")>-1){a.feedbackCallout.focusFirstVisibleOnControl()}else{a.common.autoFocus()}},focusFirstVisibleOnControl:function(){if(window.$("#FeedbackText")[0]!=null){window.$("#FeedbackText")[0].style.display="block";window.$("#FeedbackText")[0].focus();window.$("#FeedbackText")[0].style.display="none"}}}};if(window.ico){$.extend(true,window.ico,a)}else{window.ico=a}})();
