function SureHitsMortgageRates(){}SureHitsMortgageRates.prototype.width=730;SureHitsMortgageRates.prototype.cssFile="http://www.nextinsure.com/ListingDisplay/Include/css/Mortgage/listingstyles-min.1.0.0.css";SureHitsMortgageRates.prototype.previousSearch="";SureHitsMortgageRates.prototype.previousStrategy="";function SureHitsMortgageRatesNoFilterContainer(){this.currentStateCode="";this.currentLoanAmount="";this.currentRateProduct="";this.disclaimer="";this.termOptions=[];this.hiddenInputs=[];this.borderColor="#e6e6e6";this.containerDiv=$ce("div");this.containerDiv.id="shmktpl_d1";this.containerDiv.className="shmktpl_d1 noFilter";if(typeof(ni_borderColor)!="undefined"){this.borderColor=ni_borderColor}if(typeof(ni_border)=="undefined"||ni_border!=0){this.containerDiv.style.border="solid 7px "+this.borderColor;this.containerDiv.style.paddingBottom="15px";this.containerDiv.style.paddingTop="15px"}this.body=$ce("div");this.body.id="sh_bdy";this.body.className="sh_bdy noFilter";this.render=function(){var d=$ge("shmktpl_mtgratescontainer");d.appendChild(this.containerDiv);if(typeof(ni_hidedisclaimer)=="undefined"||ni_hidedisclaimer=="0"){var k=$ce("div");k.className="sh_hdr_top_noFilter";k.innerHTML="Want to see more?<br />Check out the competitive rates from these other respected lenders.";this.containerDiv.appendChild(k)}this.containerDiv.appendChild(this.body);this.headingsDiv=$ce("div");this.headingsDiv.id="sh_headingsDiv";this.body.appendChild(this.headingsDiv);var c=$ce("table");c.id="sh_headingsTable";c.setAttribute("cellSpacing","0");c.setAttribute("cellPadding","0");this.headingsDiv.appendChild(c);var b=$ce("tbody");c.appendChild(b);var a=$ce("tr");b.appendChild(a);var e=$ce("td");e.className="td0";e.innerHTML="Company";a.appendChild(e);var f=$ce("td");f.className="td1";f.innerHTML="Loan Product";a.appendChild(f);var g=$ce("td");g.className="td2";g.innerHTML="Rate";a.appendChild(g);var h=$ce("td");h.className="td3";h.innerHTML="APR";a.appendChild(h);var i=$ce("td");i.className="td4";i.innerHTML="Est. Pmt.";a.appendChild(i);var j=$ce("td");j.className="td5";j.innerHTML="Advertiser Comments";a.appendChild(j)};this.renderFooter=function(){var a=$ce("div");a.style.marginTop="10px";a.style.textAlign="right";if(!SH.prototype.hideMoneyRatesBranding){this.body.appendChild(a)}var b=$ce("img");b.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/HSH_Logo_smaller20.png";b.style.border="0";a.appendChild(b)};this.setStateCode=function(a){this.currentStateCode=a};this.setLoanAmount=function(a){this.currentLoanAmount=a};this.setRateProduct=function(a){this.currentRateProduct=a};this.ato=function(a){this.termOptions[this.termOptions.length]=a};this.addHiddenInput=function(a){this.hiddenInputs[this.hiddenInputs.length]=a};this.setDisclaimer=function(a){this.disclaimer=a}}function SureHitsMortgageRatesFilteredContainer(){this.disclaimer="";this.stateOptions=[];this.rateProductOptions=[];this.amountOptions=[];this.termOptions=[];this.hiddenInputs=[];this.containerDiv=$ce("div");this.containerDiv.id="shmktpl_d1";this.containerDiv.className="shmktpl_d1";this.containerDiv.style.width=SH.prototype.shopRateStyle?"100%":SureHitsMortgageRates.prototype.width+"px";this.render=function(){var o=$ge("shmktpl_mtgratescontainer");o.appendChild(this.containerDiv);var H=$ce("div");H.className="filterContainerTop";if(!SH.prototype.shopRateStyle){H.className="filterContainerTop height"}this.containerDiv.appendChild(H);var h=$ce("div");h.className="sh_filterContainerTopHeading";if(typeof ni_color1!="undefined"){h.style.backgroundColor=ni_color1}if(SureHitsMortgageRates.prototype.width<630){h.style.fontSize="16px"}H.appendChild(h);var d=$ce("div");d.className="currentFilterSettings";h.appendChild(d);var r=$ce("span");r.className="displayingResultsFor";r.innerHTML="Displaying rate results for:&nbsp;";d.appendChild(r);var s=$ce("span");s.id="sh_filteredHeading";s.className="inStateFor";s.innerHTML=SH.prototype.currentRateProduct+" in "+SH.prototype.currentStateCode+" for "+SH.prototype.currentFormattedLoanAmount;d.appendChild(s);var e=$ce("div");e.className="formElementsContainer";var G=$ce("div");G.className="customizeYourSearch";G.innerHTML="Customize your search &hellip;";if(SH.prototype.shopRateStyle){h.appendChild(G);var b=$ce("div");b.className="shopRateArrowContainer";H.appendChild(b);H.appendChild(e)}else{H.appendChild(e);e.appendChild(G)}if(SH.prototype.shopRateStyle){h.className="sh_filterContainerTopHeading shopRate";d.className="currentFilterSettings shopRate";s.className="inStateFor shopRate";G.className="customizeYourSearch shopRate";e.className="formElementsContainer shopRate"}var f=$ce("table");f.className="filteredFormTable";f.style.width=SureHitsMortgageRates.prototype.width<630?"90%":"80%";f.setAttribute("cellSpacing","0");f.setAttribute("cellPadding","0");e.appendChild(f);var g=$ce("tbody");f.appendChild(g);var I=$ce("tr");g.appendChild(I);var z=$ce("td");z.className="td1";I.appendChild(z);var u=$ce("span");u.innerHTML="State:<br />";z.appendChild(u);var x=$ce("select");x.id="sh_stateFilter";z.appendChild(x);for(var n=0;n<this.stateOptions.length;n++){var E=$ce("option");E.setAttribute("value",this.stateOptions[n].value);E.innerHTML=this.stateOptions[n].text;if(this.stateOptions[n].selected){E.setAttribute("selected","selected")}x.appendChild(E)}var A=$ce("td");A.className="td2";I.appendChild(A);var v=$ce("span");v.innerHTML="Loan Purpose:<br />";A.appendChild(v);var p=$ce("select");p.id="sh_rpFilter";A.appendChild(p);for(var n=0;n<this.rateProductOptions.length;n++){var E=$ce("option");E.setAttribute("value",this.rateProductOptions[n].value);E.innerHTML=this.rateProductOptions[n].text;if(this.rateProductOptions[n].selected){E.setAttribute("selected","selected")}p.appendChild(E)}var B=$ce("td");B.className="td3";I.appendChild(B);var w=$ce("span");w.innerHTML="Loan Amount:<br />";B.appendChild(w);var a=$ce("select");a.id="sh_la";B.appendChild(a);for(var n=0;n<this.amountOptions.length;n++){var E=$ce("option");E.setAttribute("value",this.amountOptions[n].value);E.innerHTML=this.amountOptions[n].text;if(this.amountOptions[n].selected){E.setAttribute("selected","selected")}a.appendChild(E)}var C=$ce("td");C.className="td4";I.appendChild(C);var c=$ce("img");if(typeof(ni_image1)!="undefined"&&ni_image1.length>0){c.setAttribute("src",SH.prototype.path+"/ListingDisplay/Images/Mortgage/"+ni_image1)}else{c.setAttribute("src",SH.prototype.path+"/ListingDisplay/Images/Mortgage/filter_red_submit.png")}c.setAttribute("alt","");C.appendChild(c);SH.addEvent(c,"click",function(i){SureHitsMortgageRates.searchAgain(i)});for(var n=0;n<this.hiddenInputs.length;n++){var m=$ce("input");m.setAttribute("type","hidden");m.id=this.hiddenInputs[n].id;m.name=this.hiddenInputs[n].name;m.value=this.hiddenInputs[n].value;C.appendChild(m)}this.body=$ce("div");this.body.id="sh_bdy";this.body.className="sh_bdy_filtered";this.body.style.width=SH.prototype.shopRateStyle?"876px":SureHitsMortgageRates.prototype.width-26+"px";o.appendChild(this.body);var q=$ce("div");q.className="showOnly";this.body.appendChild(q);var t=$ce("span");if(SH.prototype.shopRateStyle){t.style.fontWeight="bold";t.style.fontSize="12px"}t.innerHTML="Show only:&nbsp;&nbsp;";q.appendChild(t);var F=$ce("select");F.id="sh_rtFilter";q.appendChild(F);for(var n=0;n<this.termOptions.length;n++){var E=$ce("option");E.setAttribute("value",this.termOptions[n].value);E.innerHTML=this.termOptions[n].text;if(this.termOptions[n].selected){E.setAttribute("selected","selected")}F.appendChild(E)}if(SH.prototype.shopRateStyle){u.className="shopRate";v.className="shopRate";w.className="shopRate";a.className="shopRate";x.className="shopRate";p.className="shopRate";F.className="shopRate";c.setAttribute("src",SH.prototype.path+"/ListingDisplay/Images/ShopRate/SeeYourRates.png")}SH.addEvent(F,"change",function(i){SureHitsMortgageRates.searchAgain(i)});this.headingsDiv=$ce("div");this.headingsDiv.id="sh_headingsDiv";if(SH.prototype.shopRateStyle){this.headingsDiv.className="shopRate"}this.body.appendChild(this.headingsDiv);if(!SH.prototype.shopRateStyle){var l=$ce("table");l.id="sh_headingsTable";l.setAttribute("cellSpacing","0");l.setAttribute("cellPadding","0");this.headingsDiv.appendChild(l);var k=$ce("tbody");l.appendChild(k);var j=$ce("tr");k.appendChild(j);var y=$ce("td");y.className="td0";y.innerHTML="Company";j.appendChild(y);var z=$ce("td");z.className="td1";z.innerHTML="Loan Product";j.appendChild(z);var A=$ce("td");A.className="td2";A.innerHTML="Rate";j.appendChild(A);var B=$ce("td");B.className="td3";B.innerHTML="APR";j.appendChild(B);var C=$ce("td");C.className="td4";C.innerHTML="Est. Pmt.";j.appendChild(C);var D=$ce("td");D.className="td5";D.innerHTML="Advertiser Comments";j.appendChild(D)}};this.renderFooter=function(){var d=$ce("div");d.className="poweredByFiltered";if(SH.prototype.shopRateStyle){d.className="poweredByFiltered shopRate"}if(!SH.prototype.hideMoneyRatesBranding){this.body.appendChild(d)}var e=$ce("img");e.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/HSH_Logo_smaller20.png";e.style.border="0";d.appendChild(e);var c=$ce("div");c.className="filteredFooter";c.innerHTML=this.disclaimer;this.body.appendChild(c);var a=$ce("div");a.className="filteredDisplayHere";if(SH.prototype.shopRateStyle){a.className="filteredDisplayHere shopRate"}this.body.appendChild(a);var b=$ce("a");b.setAttribute("href","http://mortgage.quinstreet.com/index.jsp");b.setAttribute("target","_blank");b.innerHTML="Display Your Rates";var f=$ce("span");f.innerHTML='To promote rates on your site, contact <a style="color:#0085DD; text-decoration:underline;" href="mailto:mortgagerates@quinstreet.com?subject=Mortgage%20Rate%20Table%20Advertising">mortgagerates@quinstreet.com</a>';a.appendChild(b);a.appendChild($ce("br"));a.appendChild(f)};this.addStateOption=function(a){this.stateOptions[this.stateOptions.length]=a};this.addRateProductOption=function(a){this.rateProductOptions[this.rateProductOptions.length]=a};this.addAmountOption=function(a){this.amountOptions[this.amountOptions.length]=a};this.ato=function(a){this.termOptions[this.termOptions.length]=a};this.addHiddenInput=function(a){this.hiddenInputs[this.hiddenInputs.length]=a}}function SureHitsMortgageRatesContainer(){this.currentStateCode="";this.currentLoanAmount="";this.currentRateProduct="";this.disclaimer="";this.termOptions=[];this.hiddenInputs=[];this.containerDiv=$ce("div");this.containerDiv.style.width=SureHitsMortgageRates.prototype.width+"px";this.containerDiv.className="shmkptl_d1";this.containerDiv.id="shmktpl_d1";this.form=$ce("form");this.form.setAttribute("method","get");this.form.setAttribute("action","#");this.form.id="sh_f";this.body=$ce("div");this.body.style.backgroundImage="url('"+SH.prototype.path+"/ListingDisplay/Images/DefaultLook/body_bg_"+SureHitsMortgageRates.prototype.width+".gif')";this.body.id="sh_bdy";this.body.className="sh_bdy_default";this.render=function(){var r=$ge("shmktpl_mtgratescontainer");r.appendChild(this.containerDiv);var C=$ce("div");C.id="sh_hdr_top";C.innerHTML="&nbsp;";var l=$ce("div");l.style.backgroundImage="url('"+SH.prototype.path+"/ListingDisplay/Images/DefaultLook/mortgage_header_"+SureHitsMortgageRates.prototype.width+".png')";l.id="sh_hdr";this.containerDiv.appendChild(C);this.containerDiv.appendChild(l);l.appendChild(this.form);var g=$ce("div");g.id="sh_f_d";var h=$ce("table");h.id="sh_f_tbl";h.setAttribute("cellSpacing","0");h.setAttribute("cellPadding","0");var j=$ce("tbody");h.appendChild(j);var k=$ce("tr");j.appendChild(k);var a=$ce("td");a.innerHTML=this.currentStateCode;k.appendChild(a);var b=$ce("td");b.className="td2";b.innerHTML=this.currentRateProduct;k.appendChild(b);var c=$ce("td");c.className="td3";c.innerHTML=this.currentLoanAmount;k.appendChild(c);var d=$ce("td");d.className="td4";k.appendChild(d);var B=$ce("select");B.style.fontSize="11px";B.style.width="90px";B.id="sh_rtFilter";B.setAttribute("name","sh_rtFilter");d.appendChild(B);for(var q=0;q<this.termOptions.length;q++){var A=$ce("option");A.setAttribute("value",this.termOptions[q].value);A.style.fontSize="11px";A.innerHTML=this.termOptions[q].text;if(this.termOptions[q].selected){A.setAttribute("selected","selected")}B.appendChild(A)}var e=$ce("td");e.className="td5";e.id="sh_searchButtonContainer";k.appendChild(e);var s=$ce("a");s.setAttribute("href","#");SH.addEvent(s,"click",function(i){SureHitsMortgageRates.searchAgain(i)});e.appendChild(s);var t=$ce("img");t.style.border="0pt none";t.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/update_results.png";s.appendChild(t);for(var q=0;q<this.hiddenInputs.length;q++){var p=$ce("input");p.setAttribute("type","hidden");p.id=this.hiddenInputs[q].id;p.name=this.hiddenInputs[q].name;p.value=this.hiddenInputs[q].value;e.appendChild(p)}g.appendChild(h);this.form.appendChild(g);this.containerDiv.appendChild(this.body);this.headingsDiv=$ce("div");this.headingsDiv.id="sh_headingsDiv";this.headingsDiv.className="default";this.body.appendChild(this.headingsDiv);var o=$ce("table");o.id="sh_headingsTable";o.setAttribute("cellSpacing","0");o.setAttribute("cellPadding","0");this.headingsDiv.appendChild(o);var n=$ce("tbody");o.appendChild(n);var m=$ce("tr");n.appendChild(m);var u=$ce("td");u.className="td0";u.innerHTML="Company";m.appendChild(u);var v=$ce("td");v.className="td1";v.innerHTML="Loan Product";m.appendChild(v);var w=$ce("td");w.className="td2";w.innerHTML="Rate";m.appendChild(w);var x=$ce("td");x.className="td3";x.innerHTML="APR";m.appendChild(x);var y=$ce("td");y.className="td4";y.innerHTML="Est. Pmt.";m.appendChild(y);var z=$ce("td");z.className="td5";z.innerHTML="Advertiser Comments";m.appendChild(z);var f=$ce("div");f.id="sh_cnt_bottom";f.style.backgroundImage="url('"+SH.prototype.path+"/ListingDisplay/Images/DefaultLook/footer_bg_"+SureHitsMortgageRates.prototype.width+".png')";this.containerDiv.appendChild(f)};this.renderFooter=function(){var d=$ce("div");d.className="poweredBy";if(!SH.prototype.hideMoneyRatesBranding){this.body.appendChild(d)}var e=$ce("img");e.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/HSH_Logo_smaller20.png";e.style.border="0";d.appendChild(e);var c=$ce("div");c.className="default_footer";c.innerHTML=this.disclaimer;this.body.appendChild(c);var a=$ce("div");a.className="default_displayHere";this.body.appendChild(a);var b=$ce("a");b.setAttribute("href","http://mortgage.quinstreet.com/index.jsp");b.setAttribute("target","_blank");b.innerHTML="Display Your Rates";var f=$ce("span");f.innerHTML='To promote rates on your site, contact <a style="color:#0085DD; text-decoration:underline;" href="mailto:mortgagerates@quinstreet.com?subject=Mortgage%20Rate%20Table%20Advertising">mortgagerates@quinstreet.com</a>';a.appendChild(b);a.appendChild($ce("br"));a.appendChild(f)};this.setStateCode=function(a){this.currentStateCode=a};this.setLoanAmount=function(a){this.currentLoanAmount=a};this.setRateProduct=function(a){this.currentRateProduct=a};this.ato=function(a){this.termOptions[this.termOptions.length]=a};this.addHiddenInput=function(a){this.hiddenInputs[this.hiddenInputs.length]=a};this.setDisclaimer=function(a){this.disclaimer=a}}function SMLT(){this.parentContainer=null;this.lp="";this.apr="";this.pmt="";this.rte="";this.pts="";this.fee="";this.lck="";this.url="";this.dtm="no";this.ord="";this.tid="";this.render=function(){}}function SureHitsMortgageRatesListing(){this.parentContainer=null;this.listingIndex=null;this.borderColor="";this.backgroundImg="";this.logo="";this.company="";this.updated="";this.phone="";this.url="";this.listingId="";this.termsHeadingBgImg="";this.termsHeadingCloseImg="";this.termsAltColor="";this.phoneClickUrl="";var a=this;this.terms=[];this.topTerms=[];this.commentLines=[];this.additionalTermsContainer=$ce("div");this.additionalTermsContainer.className="additionalTermsContainer";this.additionalTermsContainer.style.display="none";this.additionalTermsContainer.setAttribute("showingTerms","no");this.addT=function(b){this.terms[this.terms.length]=b};this.addComment=function(b){this.commentLines[this.commentLines.length]=b};this.render=function(){var G=$ce("div");G.className="listingDiv";if(SH.prototype.shopRateStyle){G.className="listingDiv shopRate"}if(this.listingIndex<3){G.className=G.className+" top3";G.style.borderColor=this.borderColor;G.style.backgroundImage="url('"+SH.prototype.path+"/ListingDisplay/Images/DefaultLook/"+this.backgroundImg+"')"}else{G.className=G.className+" after3"}this.parentContainer.appendChild(G);var H=$ce("table");H.className="listingTable";H.setAttribute("cellSpacing","0");H.setAttribute("cellPadding","0");if(SH.prototype.shopRateStyle){H.className="listingTable shopRate"}G.appendChild(H);var I=$ce("tbody");H.appendChild(I);var ak=$ce("tr");I.appendChild(ak);var al=$ce("td");al.className="td1";if(this.listingIndex<3){ak.appendChild(al);var K=$ce("div");var M=$ce("a");M.setAttribute("href",this.url);M.setAttribute("target","_blank");al.appendChild(K);K.appendChild(M);var L=$ce("img");L.src=this.logo;M.appendChild(L)}else{ak.appendChild(al);if(SH.prototype.shopRateStyle){var k=$ce("div");k.className="companyInfo";al.appendChild(k)}var M=$ce("a");M.setAttribute("href",this.url);M.setAttribute("target","_blank");M.innerHTML=this.company;if(SH.prototype.shopRateStyle){k.appendChild(M)}else{al.appendChild(M)}if(!SH.prototype.shopRateStyle){var e=$ce("br");al.appendChild(e)}else{var au=$ce("div");au.className="updatedDiv";al.appendChild(au)}var av=$ce("span");av.innerHTML="Updated "+this.updated;if(SH.prototype.shopRateStyle){au.appendChild(av)}else{al.appendChild(av)}}var am=$ce("td");am.className="td2";ak.appendChild(am);var ab=$ce("table");ab.className="termsTable";ab.setAttribute("cellPadding","1");ab.setAttribute("cellSpacing","0");am.appendChild(ab);var ac=$ce("tbody");ab.appendChild(ac);var C=1;var N=4;if(SH.prototype.currentTermID!=SH.prototype.unknownTermID){N=2}if(this.listingIndex>2){N=2}while(C<N){if(SH.prototype.currentTermID===SH.prototype.unknownTermID){var p=SureHitsMortgageRates.getTermByOrdering(C,this.terms)}else{var p=SureHitsMortgageRates.getTermByID(SH.prototype.currentTermID,this.terms)}if(typeof(p)!="undefined"){this.topTerms[this.topTerms.length]=p.lp;var af=$ce("tr");ac.appendChild(af);var ah=$ce("td");ah.className="td1";af.appendChild(ah);var J=$ce("a");J.setAttribute("href","#");J.innerHTML=p.lp;J.setAttribute("term",p.lp);var m=p.lp;SH.addEvent(J,"click",function(j){SureHitsMortgageRates.showTerms(j,a.additionalTermsContainer,J)});ah.appendChild(J);var ai=$ce("td");ai.innerHTML=p.rte;af.appendChild(ai);var ag=$ce("td");ag.className="bold";ag.innerHTML=p.apr;af.appendChild(ag);var aj=$ce("td");aj.innerHTML=p.pmt;af.appendChild(aj)}C++}if(this.listingIndex>2){var b=$ce("a");b.className="additionalProductsLink";b.setAttribute("href","#");SH.addEvent(b,"click",function(j){SureHitsMortgageRates.toggleAdditional(j,a.additionalTermsContainer)});if(SH.prototype.currentTermID===SH.prototype.unknownTermID){b.innerHTML="Additional Loan Products"}else{if(this.terms.length>0){b.innerHTML="Additional "+this.terms[0].lp+" Loans"}else{b.innerHTML="Additional Loan Products"}}am.appendChild(b)}var an=$ce("td");an.className="td3";ak.appendChild(an);var i=$ce("ul");an.appendChild(i);if(!SH.prototype.shopRateStyle){var F=$ce("a");F.setAttribute("href",this.url);F.setAttribute("target","_blank");F.innerHTML="Learn More"}var e=$ce("br");if(this.listingIndex<3){for(var E=0;E<this.commentLines.length;E++){var Y=$ce("li");Y.innerHTML=this.commentLines[E];if(!SH.prototype.shopRateStyle){if(E==this.commentLines.length-1){Y.appendChild(e);Y.appendChild(F)}}i.appendChild(Y)}}else{if(SH.prototype.shopRateStyle){var F=$ce("a");F.setAttribute("href",this.url);F.innerHTML="Learn More";F.setAttribute("target","_blank")}var Y=$ce("li");Y.innerHTML=this.commentLines[0];Y.appendChild(e);Y.appendChild(F);i.appendChild(Y)}var ao=$ce("td");ao.className="td4";ak.appendChild(ao);var l=this.listingId;var n=this.phone;var o=this.phoneClickUrl;var O=$ce("img");O.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/phone.gif";ao.appendChild(O);var f=$ce("a");f.setAttribute("href","#");f.innerHTML="Call Now";SH.addEvent(f,"click",function(j){SureHitsMortgageRates.showPhone(j,n,l,o)});ao.appendChild(f);if(n.length<=0){f.style.display="none";O.style.display="none";ao.appendChild($ce("br"))}var d=$ce("a");d.setAttribute("href",this.url);d.setAttribute("target","_blank");ao.appendChild(d);var c=$ce("img");c.className="learnMore";c.src=SH.prototype.shopRateStyle?SH.prototype.path+"/ListingDisplay/Images/ShopRate/LearnMore.png":SH.prototype.supplierButton;d.appendChild(c);var ap=$ce("tr");I.appendChild(ap);var aq=$ce("td");aq.className="tr2_td1";if(this.listingIndex<3){aq.innerHTML="Updated "+this.updated}else{aq.innerHTML="&nbsp;"}ap.appendChild(aq);var ar=$ce("td");ar.className="tr2_td2";ap.appendChild(ar);if(this.listingIndex<3){var b=$ce("a");b.setAttribute("href","#");SH.addEvent(b,"click",function(j){SureHitsMortgageRates.toggleAdditional(j,a.additionalTermsContainer)});if(SH.prototype.currentTermID===SH.prototype.unknownTermID){b.innerHTML="Additional Loan Products"}else{if(this.terms.length>0){b.innerHTML="Additional "+this.terms[0].lp+" Loans"}else{b.innerHTML="Additional Loan Products"}}ar.appendChild(b)}var at=$ce("td");at.className="tr2_td3";at.id="phoneCell_"+this.listingId;at.setAttribute("colSpan","2");at.innerHTML="";ap.appendChild(at);if(this.listingIndex<3){this.additionalTermsContainer.style.borderColor=this.borderColor}G.appendChild(this.additionalTermsContainer);var y=$ce("div");y.className="additionalTermsHeadingContainer";if(!SH.prototype.shopRateStyle&&this.listingIndex<3){y.style.backgroundImage="url('"+SH.prototype.path+"/ListingDisplay/Images/DefaultLook/"+this.termsHeadingBgImg+"')"}this.additionalTermsContainer.appendChild(y);headingDiv=$ce("div");headingDiv.className="additionalTermsHeadingDiv";y.appendChild(headingDiv);var B=$ce("table");B.setAttribute("cellspacing","0");B.setAttribute("cellSpacing","0");B.setAttribute("cellpadding","0");B.setAttribute("cellPadding","0");headingDiv.appendChild(B);var A=$ce("tbody");B.appendChild(A);var z=$ce("tr");A.appendChild(z);var q=$ce("td");q.style.textIndent="3px";q.style.width="20%";q.innerHTML="Loan Product";z.appendChild(q);var r=$ce("td");r.innerHTML="Rate";z.appendChild(r);var s=$ce("td");s.innerHTML="Points";z.appendChild(s);var t=$ce("td");t.innerHTML="Fees";z.appendChild(t);var u=$ce("td");u.innerHTML="APR";z.appendChild(u);var v=$ce("td");v.innerHTML="Lock";z.appendChild(v);var w=$ce("td");w.style.width="20%";w.innerHTML="Est. Pmt.";z.appendChild(w);var x=$ce("td");x.style.width="10%";x.style.textAlign="right";x.style.paddingLeft="44px";z.appendChild(x);var h=$ce("a");h.setAttribute("href","#");SH.addEvent(h,"click",function(j){SureHitsMortgageRates.closeAdditional(j,a.additionalTermsContainer)});x.appendChild(h);var g=$ce("img");g.className="close_x";if(SH.prototype.shopRateStyle){g.src=SH.prototype.path+"/ListingDisplay/Images/ShopRate/Close_X.gif"}else{if(this.listingIndex<3){g.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/"+this.termsHeadingCloseImg}else{g.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/lightgray_x.png"}}h.appendChild(g);for(var E in this.terms){var Z=$ce("div");Z.className="termInfoRow";Z.setAttribute("term",this.terms[E].lp);if(!SH.prototype.shopRateStyle){if(this.listingIndex<3){Z.style.backgroundColor=E%2===0?"#FFF":this.termsAltColor;Z.setAttribute("altColor",this.termsAltColor)}else{Z.style.backgroundColor=E%2===0?"#FFF":"#F3F3F3";Z.setAttribute("altColor","#F3F3F3")}}if(this.terms[E].dtm=="yes"){Z.style.display="";Z.setAttribute("defaultTrm","yes")}else{Z.style.display="none";Z.setAttribute("defaultTrm","no")}this.additionalTermsContainer.appendChild(Z);var D=$ce("div");D.className="infoListContainer";Z.appendChild(D);var ad=$ce("table");ad.setAttribute("cellspacing","0");ad.setAttribute("cellSpacing","0");ad.setAttribute("cellpadding","0");ad.setAttribute("cellPadding","0");D.appendChild(ad);var ae=$ce("tbody");ad.appendChild(ae);var aa=$ce("tr");ae.appendChild(aa);var Q=$ce("td");Q.style.textAlign="left";Q.style.textIndent="8px";Q.style.width="20%";Q.innerHTML=this.terms[E].lp;aa.appendChild(Q);var R=$ce("td");R.innerHTML=this.terms[E].rte;aa.appendChild(R);var S=$ce("td");S.innerHTML=this.terms[E].pts;aa.appendChild(S);var T=$ce("td");T.innerHTML=this.terms[E].fee;aa.appendChild(T);var U=$ce("td");U.innerHTML=this.terms[E].apr;aa.appendChild(U);var V=$ce("td");V.innerHTML=this.terms[E].lck;aa.appendChild(V);var W=$ce("td");W.style.width="20%";W.innerHTML=this.terms[E].pmt;aa.appendChild(W);var X=$ce("td");X.style.paddingRight="4px";X.style.textAlign="right";aa.appendChild(X);var d=$ce("a");d.setAttribute("target","_blank");d.innerHTML="Learn More";var P=this.terms[E].url;d.setAttribute("href",P);X.appendChild(d)}}}function SureHitsMortgageRatesListingContainer(){this.parentContainer=null;this.listings=[];this.container=$ce("div");this.container.id="sh_l_cntr";this.addListing=function(a){a.parentContainer=this.container;a.listingIndex=this.listings.length;this.listings[this.listings.length]=a};this.render=function(){SH.appendAfter(this.parentContainer,this.container);if(this.listings.length>0){for(var a=0;a<this.listings.length;a++){this.listings[a].render()}}else{var b=$ce("div");b.id="no_results";b.innerHTML="No Matches Found";this.container.appendChild(b)}}}function SureHitsMortgageRatesMiniListingContainer(){this.parentContainer=$ge("shmktpl_mtgratescontainer");this.listings=[];this.container=$ce("div");this.container.id="sh_l_cntr";this.container.className="sh_l_cntr_mini";this.addListing=function(a){a.parentContainer=this.container;a.listingIndex=this.listings.length;this.listings[this.listings.length]=a};this.render=function(){this.parentContainer.appendChild(this.container);var b=4;if(this.listings.length<b){b=this.listings.length}for(var a=0;a<b;a++){this.listings[a].render()}}}function SureHitsMortgageRatesMiniListing(){this.parentContainer=null;this.listingIndex=null;this.borderColor="";this.topColor="";this.bottomColor="";this.company="";this.updated="";this.phone="";this.url="";this.listingId="";this.phoneClickUrl="";var a=this;this.terms=[];this.topTerms=[];this.commentLines=[];this.addT=function(b){this.terms[this.terms.length]=b};this.addComment=function(b){this.commentLines[this.commentLines.length]=b};this.render=function(){if(this.listingIndex%3==0){this.borderColor="#7FD1FF";this.topColor="#B9E7FF";this.bottomColor="#DCF4FF"}else{if(this.listingIndex%3==1){this.borderColor="#A1B58C";this.topColor="#D6EAC5";this.bottomColor="#EEF6E6"}else{if(this.listingIndex%3==2){this.borderColor="#D9D9D9";this.topColor="#E2E2E2";this.bottomColor="#EEE"}}}var A=$ce("table");A.className="miniListingTable";A.style.borderColor=this.borderColor;if(this.listingIndex>0){A.style.marginTop="2px"}A.setAttribute("cellSpacing","0");A.setAttribute("cellPadding","0");this.parentContainer.style.width="492px";this.parentContainer.appendChild(A);var B=$ce("tbody");A.appendChild(B);var U=$ce("tr");U.style.backgroundColor=this.topColor;B.appendChild(U);var V=$ce("td");V.className="td1";U.appendChild(V);var d=$ce("a");d.setAttribute("href",this.url);d.setAttribute("target","_blank");d.innerHTML=this.company;V.appendChild(d);var W=$ce("td");W.className="td2";U.appendChild(W);var h=$ce("table");h.setAttribute("cellSpacing","0");h.setAttribute("cellPadding","2");W.appendChild(h);var j=$ce("tbody");h.appendChild(j);var k=$ce("tr");j.appendChild(k);var e=$ce("td");e.className="contact_td1";k.appendChild(e);var E=$ce("img");E.src=SH.prototype.path+"/ListingDisplay/Images/DefaultLook/phone.gif";e.appendChild(E);var f=$ce("td");f.className="contact_td2";f.id="callnow_cell_"+this.listingId;k.appendChild(f);var F=$ce("a");F.setAttribute("href","#");F.innerHTML="Call Now";f.appendChild(F);var m=this.phone;var n=this.phoneClickUrl;var l=this.listingId;SH.addEvent(F,"click",function(i){SureHitsMortgageRates.showMiniListingsPhone(i,m,l,n)});if(m.length<=0){F.style.display="none";E.style.display="none";f.innerHTML="&nbsp;"}var g=$ce("td");g.className="contact_td3";k.appendChild(g);var x=$ce("a");x.setAttribute("href",this.url);x.setAttribute("target","_blank");g.appendChild(x);var w=$ce("img");w.src=SH.prototype.path+"/ListingDisplay/Images/Mortgage/square_learnmore.gif";x.appendChild(w);var X=$ce("tr");X.style.backgroundColor=this.topColor;B.appendChild(X);var Y=$ce("td");Y.setAttribute("colSpan","2");Y.style.backgroundColor=this.bottomColor;X.appendChild(Y);var u=$ce("table");u.className="infoTable";Y.appendChild(u);var v=$ce("tbody");u.appendChild(v);var r=$ce("tr");v.appendChild(r);var s=$ce("td");s.className="info_td1";r.appendChild(s);var S=$ce("table");S.className="miniTermsTable";S.setAttribute("cellSpacing","0");S.setAttribute("cellPadding","0");s.appendChild(S);var T=$ce("tbody");S.appendChild(T);var N=$ce("tr");T.appendChild(N);var P=$ce("td");P.innerHTML="Loan Product";N.appendChild(P);var Q=$ce("td");Q.innerHTML="Rate";N.appendChild(Q);var O=$ce("td");O.innerHTML="APR";N.appendChild(O);var R=$ce("td");R.innerHTML="Est. Mo. Pmt..";N.appendChild(R);var q=1;var C=4;while(q<C){var o=SureHitsMortgageRates.getTermByOrdering(q,this.terms);if(typeof(o)!="undefined"){var H=$ce("tr");H.style.backgroundColor="#fff";T.appendChild(H);var J=$ce("td");J.style.borderBottom="3px solid "+this.bottomColor;H.appendChild(J);var M=$ce("a");M.setAttribute("target","_blank");var G=o.url;M.setAttribute("href",G);M.innerHTML=o.lp;J.appendChild(M);var K=$ce("td");K.style.borderBottom="3px solid "+this.bottomColor;K.style.fontWeight="bold";K.style.fontSize="10px";K.innerHTML=o.rte;H.appendChild(K);var I=$ce("td");I.style.borderBottom="3px solid "+this.bottomColor;I.style.fontSize="10px";I.style.fontWeight="bold";I.innerHTML=o.apr;H.appendChild(I);var L=$ce("td");L.style.borderBottom="3px solid "+this.bottomColor;L.style.textIndent="7px";L.style.fontSize="10px";L.style.fontFamily="Arial";L.innerHTML=o.pmt;H.appendChild(L)}q++}var t=$ce("td");t.style.verticalAlign="top";t.style.paddingTop="3px";r.appendChild(t);var c=$ce("ul");t.appendChild(c);var D=2;if(this.commentLines.length<D){D=this.commentLines.length}for(var p=0;p<D;p++){var z=$ce("li");z.innerHTML=this.commentLines[p];c.appendChild(z);if(p==D-1){var y=$ce("a");y.setAttribute("href",this.url);y.setAttribute("target","_blank");y.innerHTML="Learn More";var b=$ce("br");z.appendChild(b);z.appendChild(y);var Z=$ce("span");Z.innerHTML="Updated "+this.updated;z.appendChild(Z)}}}}function SureHitsMortgageRates(){}SureHitsMortgageRates.getScriptUrl=function(){var a="http://www.nextinsure.com/ListingDisplay/Display/Default.aspx";if(typeof(ni_ad_client)!="undefined"){a=a+"?src="+ni_ad_client}if(typeof(ni_zc)!="undefined"){if(ni_zc.length==5){a=a+"&zip="+ni_zc}else{if(typeof(ni_str_state_code)!="undefined"){if(ni_str_state_code.length==2){a=a+"&ssc="+ni_str_state_code}}}}else{if(typeof(ni_str_state_code)!="undefined"){if(ni_str_state_code.length==2){a=a+"&ssc="+ni_str_state_code}}}if(typeof(ni_rp)!="undefined"){a=a+"&rp="+ni_rp}if(typeof(ni_rpt)!="undefined"){a=a+"&rpt="+ni_rpt}if(typeof(ni_loanamt)!="undefined"){a=a+"&la="+ni_loanamt}if(typeof(ni_var1)!="undefined"){a=a+"&var1="+escape(ni_var1)}if(typeof(ni_trn_id)!="undefined"){a=a+"&trn_id="+escape(ni_trn_id)}if(typeof(ni_attribution)!="undefined"){a=a+"&ni_attribution="+ni_attribution}if(typeof(ni_minify)!="undefined"){a=a+"&minify="+ni_minify}if(typeof(ni_display_width)!="undefined"){a=a+"&width="+ni_display_width}if(typeof(ni_alt_url)!="undefined"){a=a+"&alturl="+escape(ni_alt_url)}if(typeof(ni_disablefilter)!="undefined"){a=a+"&disablefiltering="+ni_disablefilter}if(typeof(ni_allowfiltering)!="undefined"){a=a+"&allowfiltering="+ni_allowfiltering}if(typeof(ni_uc)!="undefined"){a=a+"&uc="+ni_uc}if(typeof(ni_max_display)!="undefined"){a=a+"&max="+ni_max_display}if(typeof(ni_ds)!="undefined"){a=a+"&ni_ds="+ni_ds}if(typeof(ni_tkpixel)!="undefined"){a=a+"&tkpixel="+escape(ni_tkpixel)}if(typeof(ni_tkurl)!="undefined"){a=a+"&tkurl="+escape(ni_tkurl)}a=a+"&ref="+escape(window.location);a=a+"&frm="+escape(window.location);a=a+"&rnd="+new Date().getTime();if(typeof(ni_sc_params)!="undefined"){a+="&"+ni_sc_params}return a};SureHitsMortgageRates.init=function(){var c=document.getElementsByTagName("head")[0];var b=$ce("link");b.setAttribute("rel","stylesheet");b.setAttribute("media","screen");b.setAttribute("type","text/css");b.setAttribute("href",SureHitsMortgageRates.prototype.cssFile);c.appendChild(b);var d=$ge("shmktpl_retrieve");var a=$ce("div");a.id="shmktpl_mtgratescontainer";SH.appendAfter(d,a);var f=$ce("script");var e=SureHitsMortgageRates.getScriptUrl();f.type="text/javascript";f.id="shmktpl_listings";f.src=e;c.appendChild(f)};SureHitsMortgageRates.searchAgain=function(b){SH.stopEvent(b);var a=$ge("sh_l_cntr");a.parentNode.removeChild(a);var c=$ge("sh_headingsDiv");SureHitsMortgageRates.showLoadingDiv(c);var h=$ge("shmktpl_listings");h.parentNode.removeChild(h);var k="http://www.nextinsure.com/ListingDisplay/Display/Default.aspx";if(typeof(ni_ad_client)!="undefined"){k=k+"?src="+ni_ad_client}if(typeof(ni_var1)!="undefined"){k=k+"&var1="+escape(ni_var1)}if(typeof(ni_trn_id)!="undefined"){k=k+"&trn_id="+escape(ni_trn_id)}if(typeof(ni_uc)!="undefined"){k=k+"&uc="+ni_uc}if(typeof(ni_minify)!="undefined"){k=k+"&minify="+ni_minify}if(typeof(ni_alt_url)!="undefined"){k=k+"&alturl="+escape(ni_alt_url)}if(typeof(ni_allowfiltering)!="undefined"){k=k+"&allowfiltering="+ni_allowfiltering}if(typeof(ni_disablefilter)!="undefined"){k=k+"&disablefiltering="+ni_disablefilter}if(typeof(ni_display_width)!="undefined"){k=k+"&width="+ni_display_width}if(typeof(ni_attribution)!="undefined"){k=k+"&ni_attribution="+ni_attribution}if(typeof(ni_max_display)!="undefined"){k=k+"&max="+ni_max_display}if(typeof(ni_tkpixel)!="undefined"){k=k+"&tkpixel="+escape(ni_tkpixel)}if(typeof(ni_tkurl)!="undefined"){k=k+"&tkurl="+escape(ni_tkurl)}if(typeof(ni_ds)!="undefined"){k=k+"&ni_ds="+ni_ds}var j=$ge("sh_stateFilter");if(j){if(j.tagName==="SELECT"){k=k+"&statecode="+j.options[j.selectedIndex].getAttribute("value")}else{k=k+"&statecode="+j.getAttribute("value")}}var f=$ge("sh_rpFilter");if(f){if(f.tagName==="SELECT"){k=k+"&rp="+f.options[f.selectedIndex].getAttribute("value")}else{k=k+"&rp="+f.getAttribute("value")}}var g=$ge("sh_rtFilter");if(g){if(g.tagName==="SELECT"){k=k+"&rpt="+g.options[g.selectedIndex].getAttribute("value")}else{k=k+"&rpt="+g.getAttribute("value")}}var d=$ge("sh_la");if(d){if(d.tagName==="SELECT"){k=k+"&la="+d.options[d.selectedIndex].getAttribute("value")}else{k=k+"&la="+d.getAttribute("value")}}k=k+"&ref="+escape(window.location);k=k+"&frm="+escape(window.location);if(typeof(SureHitsMortgageRates.prototype.previousSearch)!="undefined"){k=k+"&rootsrch="+SureHitsMortgageRates.prototype.previousSearch}if(typeof(SureHitsMortgageRates.prototype.previousStrategy)!="undefined"){k=k+"&rootstrategy="+SureHitsMortgageRates.prototype.previousStrategy}var i=$ce("script");i.type="text/javascript";i.id="shmktpl_listings";i.src=k+"&act=performSearch&rnd="+new Date().getTime();document.getElementsByTagName("head")[0].appendChild(i)};SureHitsMortgageRates.getTermByOrdering=function(b,c){for(var a=0;a<c.length;a++){if(c[a].ord===b){return c[a]}}};SureHitsMortgageRates.getTermByID=function(b,c){for(var a=0;a<c.length;a++){if(c[a].tid===b&&c[a].dtm==="yes"){return c[a]}}};SureHitsMortgageRates.showPhone=function(c,g,d,i){SH.stopEvent(c);var a=$ge("phoneCell_"+d);if(a.childNodes.length==0){var h=document.createTextNode("Call Now: "+g);a.appendChild(h)}if($ge("phonePixel_"+d)==null){var f=$ge("shmktpl_mtgratescontainer");var b=$ce("img");b.id="phonePixel_"+d;b.src=i;f.appendChild(b)}};SureHitsMortgageRates.showPhoneUnderCallNow=function(b,f,c,i){SH.stopEvent(b);var h=$ge("phoneSpan_"+c);if(h.childNodes.length==0){var g=document.createTextNode("Call Now: "+f);h.appendChild(g)}if($ge("phonePixel_"+c)==null){var d=$ge("shmktpl_mtgratescontainer");var a=$ce("img");a.id="phonePixel_"+c;a.src=i;d.appendChild(a)}};SureHitsMortgageRates.showMiniListingsPhone=function(c,g,d,i){SH.stopEvent(c);var a=$ge("callnow_cell_"+d);SH.emptyNode(a);a.style.width="100px";a.style.fontSize="14px";a.style.fontWeight="bold";if(a.childNodes.length==0){var h=document.createTextNode(g);a.appendChild(h)}if($ge("phonePixel_"+d)==null){var f=$ge("shmktpl_mtgratescontainer");var b=$ce("img");b.id="phonePixel_"+d;b.src=i;f.appendChild(b)}};SureHitsMortgageRates.toggleAdditional=function(a,d){var f=d.childNodes;var c=1;for(var b=1;b<f.length;b++){if(c%2==0){f[b].style.backgroundColor=f[b].getAttribute("altcolor")}else{f[b].style.backgroundColor="#fff"}if(f[b].getAttribute("defaultTrm")==="yes"){f[b].style.display="";c=c+1}else{f[b].style.display="none"}}if(d.style.display==="none"||d.getAttribute("showingTerms")==="yes"){d.style.display=""}else{d.style.display="none"}d.setAttribute("showingTerms","no");SH.stopEvent(a)};SureHitsMortgageRates.closeAdditional=function(b,a){a.style.display="none";a.setAttribute("showingTerms","no");SH.stopEvent(b)};SureHitsMortgageRates.showTerms=function(b,a){var f=a.childNodes;var g=b.target||b.srcElement;var d=1;for(var c=1;c<f.length;c++){if((f[c].getAttribute("term")===g.getAttribute("term"))||(g.getAttribute("term")==="30 Yr. Fixed"&&(f[c].getAttribute("term")==="FHA 30 Yr."||f[c].getAttribute("term")==="VA 30 Yr."))||(g.getAttribute("term")==="15 Yr. Fixed"&&(f[c].getAttribute("term")==="FHA 15 Yr."||f[c].getAttribute("term")==="VA 15 Yr."))){if(d%2==0){f[c].style.backgroundColor=f[c].getAttribute("altcolor")}else{f[c].style.backgroundColor="#fff"}f[c].style.display="";d++}else{f[c].style.display="none"}}a.style.display="";a.setAttribute("showingTerms","yes");SH.stopEvent(b)};SureHitsMortgageRates.showLoadingDiv=function(a){SH.removeObj("sh_loading");var b=$ce("div");b.id="sh_loading";b.innerHTML="Loading&hellip;<br />";SH.appendAfter(a,b);var c=$ce("img");c.src=SH.prototype.path+"/ListingDisplay/Images/thumper.gif";c.style.border="0";c.style.width="35px";c.style.height="35px";c.style.marginTop="5px";b.appendChild(c)};SureHitsMortgageRates.updateFilteredHeader=function(){$ge("sh_filteredHeading").innerHTML=SH.prototype.currentRateProduct+" in "+SH.prototype.currentStateCode+" for "+SH.prototype.currentFormattedLoanAmount};var $ce=function(a){return document.createElement(a)};var $ge=function(a){return document.getElementById(a)};function SFO(c,b,a){this.value=c;this.text=b;this.selected=a}function SHI(a,b){this.id=a;this.name=a;this.value=b}function SH(){}SH.prototype.supplierButton="";SH.prototype.bottomDisclaimer="";SH.prototype.SupplierTrackingPixel="";SH.prototype.DisplayOption="";SH.prototype.path="";SH.prototype.callNowText="Show Phone Number";SH.prototype.defaultLook=true;SH.prototype.hideNoMatches=false;SH.prototype.hideMoneyRatesBranding=false;SH.prototype.shopRateStyle=false;SH.prototype.rateProductPurchase=1;SH.prototype.rateProductRefinance=2;SH.prototype.rateProductCD=3;SH.prototype.rateProductMMA=5;SH.prototype.rateProductSavings=7;SH.prototype.rateProductInterestChecking=8;SH.prototype.rateProductFreeChecking=10;SH.prototype.categoryMortgage=10;SH.prototype.categoryDeposits=11;SH.prototype.categoryChecking=12;SH.prototype.unknownTermID=28;SH.prototype.defaultCDTermID=SH.prototype.unknownTermID;SH.prototype.currentCategoryID=null;SH.prototype.currentRateProductID=null;SH.prototype.currentRateProduct="";SH.prototype.currentTermID=SH.prototype.unknownTermID;SH.prototype.currentTermName="";SH.prototype.currentAmount=0;SH.prototype.currentAmountName="";SH.prototype.currentFormattedLoanAmount="";SH.prototype.currentStateCode="";SH.prototype.currentZipCode="";SH.prototype.stateOptions=[];SH.prototype.rateProductOptions=[];SH.prototype.termOptions=[];SH.addRateProductOption=function(a){SH.prototype.rateProductOptions[SH.prototype.rateProductOptions.length]=a};SH.addTermOption=function(a){SH.prototype.termOptions[SH.prototype.termOptions.length]=a};SH.addStateOption=function(a){SH.prototype.stateOptions[SH.prototype.stateOptions.length]=a};SH.addEvent=function(b,c,a){if(b.attachEvent){b["e"+c+a]=a;b[c+a]=function(){b["e"+c+a](window.event)};b.attachEvent("on"+c,b[c+a])}else{b.addEventListener(c,a,false)}};SH.removeEvent=function(b,c,a){if(b.detachEvent){b.detachEvent("on"+c,b[c+a]);b[c+a]=null}else{b.removeEventListener(c,a,false)}};SH.stopEvent=function(a){var b=a||window.event;if(b.stopPropagation){b.stopPropagation()}else{b.cancelBubble=true}if(b.preventDefault){b.preventDefault()}else{b.returnValue=false}};SH.appendAfter=function(b,a){if(b.nextSibling){b.parentNode.insertBefore(a,b.nextSibling)}else{b.parentNode.appendChild(a)}};SH.emptyNode=function(c){var a=c.childNodes;var d=a.length;for(var b=0;b<d;b++){c.removeChild(a[0])}};SH.removeObj=function(b){var a=document.getElementById(b);if(a!==null){a.parentNode.removeChild(a)}};SH.showInitialLoadingDiv=function(d){var a=document.getElementById("sh_initialLoading");if(a!==null){a.parentNode.removeChild(a)}var c=document.getElementById("shmktpl_retrieve");var b=$ce("div");b.id="sh_initialLoading";b.style.backgroundImage="url('http://www.nextinsure.com/ListingDisplay/Images/300x137_loading_bg.gif')";b.style.textAlign="center";b.style.width="300px";b.style.height="137px";b.style.fontFamily="Arial";b.style.fontWeight="bold";b.style.color="#333";b.style.backgroundRepeat="no-repeat";b.style.margin="10px auto";b.style.fontSize="16px";b.style.paddingTop="30px";b.innerHTML=d+"<br />";SH.appendAfter(c,b);var e=$ce("img");e.src="http://www.nextinsure.com/ListingDisplay/Images/thumper.gif";e.style.border="0";e.style.width="35px";e.style.height="35px";e.style.marginTop="5px";b.appendChild(e)};SH.selectedRateProductID=function(){var a=document.getElementById("sh_rpFilter");return parseInt(a.options[a.selectedIndex].value,10)};SH.setSelectedRateProductID=function(){var c=document.getElementById("sh_rpFilter");var b=SH.prototype.currentRateProductID;for(var a=0;a<c.options.length;a++){if(parseInt(c.options[a].value,10)===b){document.getElementById("sh_rpFilter").selectedIndex=a}}};SH.showInitialLoadingDiv('Finding Your Matches&hellip;');SureHitsMortgageRates.init();
