PageSourceSearch

https://lifehappens.org/wp-content/themes/divi-child/cost-of-care/mapDataSwitcher.js

js lifehappens.org collected 2026-09-24 09:26:35 UTC 28,073 bytes, 647 lines download raw bytes

1	window.log = function() {
2        if (log.history = log.history || [], log.history.push(arguments), this.console) {
3            var a, b = arguments;
4            b.callee = b.callee.caller, a = [].slice.call(b), "object" == typeof console.log ? log.apply.call(console.log, console, a) : console.log.apply(console, a)
5        }
6    },
7    function(a) {
8        function b() {}
9        for (var c, d = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","); c = d.pop();) a[c] = a[c] || b
10    }(function() {
11        try {
12            return console.log(), window.console
13        } catch (a) {
14            return window.console = {}
15        }
16    }()), life = life || {},
17    function(a) {
18        a(function() {
19            life.consumer = {}, life.industry = {}, life.global = {
20                options: {
21                    easing: "easeOutExpo",
22                    fadeSpeed: 500,
23                    slideSpeed: 500,
24                    animate: !1
25                },
26                device: {
27                    ipad: function() {
28                        return /iPad/.test(navigator.userAgent)
29                    }()
30                },
31                init: function() {
32                    life.global.tutorial(), life.global.utils.accordion.init(), life.global.utils.tabs.init(), life.global.utils.searchfix(), life.global.utils.scroll.init(), life.global.utils.enterprise_code_form()
33                },
34                getQueryStringValue: function(a) {
35                    return unescape(window.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(a).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"))
36                },
37                createIntercomEvent: function(b, c) {
38                    return a.ajax({
39                        type: "POST",
40                        url: life.data.ajax_url,
41                        data: {
42                            action: "create_intercom_event",
43                            event: b,
44                            properties: c
45                        },
46                        dataType: "json",
47                        success: function(a) {
48                            return !0
49                        }
50                    }), !1
51                },
52                generate_munchkin_hash: function(b, c) {
53                    return b.length && a.ajax({
54                        type: "POST",
55                        url: life.data.ajax_url,
56                        data: {
57                            action: "generate_munchkin_hash",
58                            email: b
59                        },
60                        dataType: "json",
61                        success: function(a) {
62                            Munchkin.munchkinFunction("associateLead", c, a.hash)
63                        }
64                    }), !1
65                },
66                associate_munchkin_lead: function(a) {
67                    life.global.generate_munchkin_hash(a.Email, a)
68                },
69                tutorial: function() {
70                    a("body").on("click", ".modal_close, #modal_bg", function() {
71                        a("#modal_container .modal-inner").html(""), life.global.utils.modal.close()
72                    }), a(".tutorial-embed-modal-cta").on("click", function() {
73                        a(".tutorial-embed-modal").clone().appendTo(a("#modal_container")), life.global.utils.modal.open(a(".tutorial-embed-modal"))
74                    })
75                },
76                utils: {
77                    Base64: {
78                        _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
79                        encode: function(a) {
80                            var b, c, d, e, f, g, h, i = "",
81                                j = 0;
82                            for (a = life.global.utils.Base64._utf8_encode(a); j < a.length;) b = a.charCodeAt(j++), c = a.charCodeAt(j++), d = a.charCodeAt(j++), e = b >> 2, f = (3 & b) << 4 | c >> 4, g = (15 & c) << 2 | d >> 6, h = 63 & d, isNaN(c) ? g = h = 64 : isNaN(d) && (h = 64), i = i + this._keyStr.charAt(e) + this._keyStr.charAt(f) + this._keyStr.charAt(g) + this._keyStr.charAt(h);
83                            return i
84                        },
85                        decode: function(a) {
86                            var b, c, d, e, f, g, h, i = "",
87                                j = 0;
88                            for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); j < a.length;) e = this._keyStr.indexOf(a.charAt(j++)), f = this._keyStr.indexOf(a.charAt(j++)), g = this._keyStr.indexOf(a.charAt(j++)), h = this._keyStr.indexOf(a.charAt(j++)), b = e << 2 | f >> 4, c = (15 & f) << 4 | g >> 2, d = (3 & g) << 6 | h, i += String.fromCharCode(b), 64 != g && (i += String.fromCharCode(c)), 64 != h && (i += String.fromCharCode(d));
89                            return i = life.global.utils.Base64._utf8_decode(i)
90                        },
91                        _utf8_encode: function(a) {
92                            a = a.replace(/\r\n/g, "\n");
93                            for (var b = "", c = 0; c < a.length; c++) {
94                                var d = a.charCodeAt(c);
95                                d < 128 ? b += String.fromCharCode(d) : d > 127 && d < 2048 ? (b += String.fromCharCode(d >> 6 | 192), b += String.fromCharCode(63 & d | 128)) : (b += String.fromCharCode(d >> 12 | 224), b += String.fromCharCode(d >> 6 & 63 | 128), b += String.fromCharCode(63 & d | 128))
96                            }
97                            return b
98                        },
99                        _utf8_decode: function(a) {
100                            for (var b = "", c = 0, d = c1 = c2 = 0; c < a.length;) d = a.charCodeAt(c), d < 128 ? (b += String.fromCharCode(d), c++) : d > 191 && d < 224 ? (c2 = a.charCodeAt(c + 1), b += String.fromCharCode((31 & d) << 6 | 63 & c2), c += 2) : (c2 = a.charCodeAt(c + 1), c3 = a.charCodeAt(c + 2), b += String.fromCharCode((1
1005 & d) << 12 | (63 & c2) << 6 | 63 & c3), c += 3);
101                            return b
102                        }
103                    },
104                    accordion: {
105                        init: function() {
106                            a(".accordion").length > 0 && life.global.utils.accordion.listeners()
107                        },
108                        listeners: function() {
109                            a(".accordion dt .opener").click(function(b) {
110                                a(this).hasClass("disabled") || life.global.utils.accordion.openclose(a(this)), b.preventDefault()
111                            })
112                        },
113                        openclose: function(b) {
114                            var c = a(".accordion dd"),
115                                d = a(".accordion dt"),
116                                e = life.global.options.slideSpeed;
117                            b.parent().next().hasClass("active") ? (c.removeClass("active"), d.removeClass("active"), b.parent().next().stop().slideUp(e)) : (c.slideUp(e).removeClass("active"), d.removeClass("active"), b.parent().next().stop().slideDown(e).addClass("active"), b.parent().closest("dt").addClass("active"))
118                        }
119                    },
120                    tabs: {
121                        init: function() {
122                            a(".tabs").length > 0 && (life.global.utils.tabs.listeners(), 0 == a(".tab-headers .opener.active").length && (a(".tab-headers .opener").first().addClass("active"), a(".tab-content .tab-panel").first().addClass("active")))
123                        },
124                        listeners: function() {
125                            a(".tabs .opener").click(function(b) {
126                                life.global.utils.tabs.openTab(a(this)), b.preventDefault()
127                            })
128                        },
129                        openTab: function(b) {
130                            var c = a(".tab-headers .opener"),
131                                d = a(".tab-content .tab-panel"),
132                                e = b.index();
133                            c.removeClass("active"), d.removeClass("active"), b.addClass("active"), a(d[e]).addClass("active")
134                        }
135                    },
136                    modal: {
137                        listen: function() {
138                            a("#modal_close, #modal_bg").on("click", function() {
139                                life.global.utils.modal.close()
140                            })
141                        },
142                        open: function(b) {
143                            b.css("top", a(window).scrollTop() + 100).show(), a("#modal_container").fadeIn()
144                        },
145                        close: function() {
146                            a("#modal_container").fadeOut(function() {
147                                a(".modal-content").hide()
148                            })
149                        }
150                    },
151                    scrollToElement: function(a, b) {
152                        life.global.options.animate = !0;
153                        var c = 800,
154                            d = a.offset().top - b;
155                        return jQuery("html:not(:animated),body:not(:animated)").stop(), jQuery("html:not(:animated),body:not(:animated)").animate({
156                            scrollTop: d
157                        }, c, function() {
158                            life.global.options.animate = !1
159                        }), !1
160                    },
161                    firstlast: function(a) {
162                        a.first().addClass("first"), a.last().addClass("last")
163                    },
164                    searchfix: function() {
165                        a(".search-form .icon").click(function() {
166                            a(".search-form .search-field").hasClass("open") ? a(".search-form .search-field").removeClass("open error") : (a(".search-form .search-field").addClass("open"), a(".search-form .search-field").focus())
167                        }), a(document).bind("click", function(b) {
168                            a(b.target).is(".search-field") || a(b.target).is(".search-form .icon") || a(".search-form .search-field").width() > 29 && a(".search-form .search-field").removeClass("open error")
169                        })
170                    },
171                    customDD: {
172                        listeners: function(b, c, d, e) {
173                            e = "undefined" != typeof e ? e : life.global.options.slideSpeed, b.click(function(a) {
174                                life.global.utils.customDD.toggleDD(b, c, d, e), a.preventDefault()
175                            }), a(document).bind("click", function(a) {
176                                c.is(":visible") && life.global.utils.customDD.toggleDD(b, c, d, e)
177                            }), b.add(c).bind("click", function(a) {
178                                a.stopPropagation()
179                            });
180                            var f = 0;
181                            b.add(c).on({
182                                "mouseenter.toggle": function() {
183                                    clearTimeout(f)
184                                },
185                                "mouseleave.toggle": function() {
186                                    f = setTimeout(function() {
187                                        b.hasClass("open") && life.global.utils.customDD.toggleDD(b, c, d, e)
188                                    }, 400)
189                                }
190                            })
191                        },
192                        toggleDD: function(a, b, c, d) {
193                            d = "undefined" != typeof d ? d : life.global.options.slideSpeed;
194                            var e = a;
195                            e.toggleClass("open", !e.hasClass("open")), c.toggleClass("ss-navigatedown", !c.hasClass("ss-navigatedown")), c.toggleClass("ss-navigateup", !c.hasClass("ss-navigateup")), b.stop().slideToggle(d)
196                        }
197                    },
198                    scroll: {
199                        init: function() {
200                            if (a(".scroll-fix").length > 0) {
201                                var b = a(".scroll-fix"),
202                                    c = b.offset(),
203                                    d = c.top;
204                                a(window).scroll(function() {
205                                    life.global.utils.scroll.pinned(b, d)
206                                })
207                            }
208                        },
209                        pinned: function(b, c) {
210                            var d = a(window).scrollTop();
211                            d > c ? b.addClass("make-me-fixed") : b.removeClass("make-me-fixed")
212                        },
213                        browserCheck: function() {},
214                        resize: function(a) {},
215                        buttons: function(a) {},
216                        share: function() {}
217                    },
218                    getTweets: function(b) {
219                        return a.ajax({
220                            type: "POST",
221                            url: "/services/twitter.php?notweets=" + b,
222                            dataType: "json"
223                        })
224                    },
225                    enterprise_code_form: function() {
226                        a(".enterprise_code_form").on("submit", function(b) {
227                            b.preventDefault();
228                            var c = a(this),
229                                d = c.find(".question"),
230                                e = d.find(".button-round"),
231                                f = (c.find(".error-message"), c.attr("action"), c.find(".code").val()),
232                                g = life.data.ajax_url + "?action=check_enterprise_code&enterprise_code=" + f;
233                            d.addClass("loading"), e.addClass("disabled"), a.ajax({
234                                type: "POST",
235                                dataType: "json",
236                                data: c.serialize(),
237                                url: g,
238                                success: function(a) {
239                                    e.removeClass("disabled"), console.log(a), "success" !== a.status ? (d.addClass("error"), console.log("error"), d.removeClass("loading")) : (d.removeClass("error"), console.log(c), c.off("submit").find("button#submit_button").trigger("click"))
240                                }
241                            })
242                        })
243                    },
244                    callAmplitude: function(a, b) {
245                        amplitude.logEvent(a, b)
246                    },
247                    setUserPropertiesAmplitude: function(a) {
248                        amplitude.setUserProperties(a)
249                    }
250                }
251            }, a(document).ready(function() {
252                life.global.init()
253            })
254        })
255    }(jQuery);
256	var stateNumberKey;
257
258	var fillcolor1 = "#009966";
259	var fillcolor2 = "#00604e";
260
261	var fillcolor = fillcolor1;
262
263
264
265	jQuery(document).ready(function(){
266
267		if(Raphael.vml) {
268
269			jQuery('.rvml').hover(function(){
270				jQuery('#feedback-box').fadeIn(400);
271
272				var thisIndex = jQuery(this).index();
273
274				stateNumberKey = thisIndex + 1;
275				var raphaelid = jQuery(this).attr('raphaelid');
276				var getPath = rsr.getById(raphaelid);
277				getPath.attr('fill',fillcolor);
278				showStateInfo();
279
280			}, function(){
281
282				var raphaelid = jQuery(this).attr('raphaelid');
283				var getPath = rsr.getById(raphaelid);
284				getPath.attr('fill','#ededed');
285
286			});
287
288		} else {
289
290			jQuery('#rsr svg path').hover(function(){
291
292				jQuery('#feedback-box').fadeIn(400);
293
294				jQuery(this).attr('fill', fillcolor);
295				stateNumberKey = jQuery(this).index();
296
297
298				if(stateNumberKey===53 || stateNumberKey===54 || stateNumberKey===56 || stateNumberKey===59 || stateNumberKey===60 || stateNumberKey===63 || stateNumberKey===64 || stateNumberKey===62){
299					jQuery('path:nth-child(54)').attr('fill', fillcolor);
300					jQuery('path:nth-child(55)').attr('fill', fillcolor);
301					jQuery('path:nth-child(57)').attr('fill', fillcolor);
302					jQuery('path:nth-child(60)').attr('fill', fillcolor);
303					jQuery('path:nth-child(61)').attr('fill', fillcolor);
304					jQuery('path:nth-child(63)').attr('fill', fillcolor);
305					jQuery('path:nth-child(64)').attr('fill', fillcolor);
306					jQuery('path:nth-child(65)').attr('fill', fillcolor);
307				}
308
309				if(stateNumberKey===46 || stateNumberKey===48) {
310					jQuery('path:nth-child(47)').attr('fill', fillcolor);
311					jQuery('path:nth-child(49)').attr('fill', fillcolor);
312				}
313
314				showStateInfo();
315
316			}, function(){
317				jQuery('path').attr('fill', '#ededed');
318				jQuery(this).attr('fill', '#ededed');
319			});
320
321
322			jQuery('#rsr svg path').on('click', function(){
323
324				jQuery('#feedback-box').fadeIn(400);
325
326				jQuery('path').attr('fill', '#ededed');
327
328				jQuery(this).attr('fill', fillcolor);
329				stateNumberKey = jQuery(this).index();
330
331				if(stateNumberKey===53 || stateNumberKey===54 || stateNumberKey===56 || stateNumberKey===59 || stateNumberKey===60 || stateNumberKey===63 || stateNumberKey===64 || stateNumberKey===62){
332					jQuery('path:nth-child(54)').attr('fill', fillcolor);
333					jQuery('path:nth-child(55)').attr('fill', fillcolor);
334					jQuery('path:nth-child(57)').attr('fill', fillcolor);
335					jQuery('path:nth-child(60)').attr('fill', fillcolor);
336					jQuery('path:nth-child(61)').attr('fill', fillcolor);
337					jQuery('path:nth-child(63)').attr('fill', fillcolor);
338					jQuery('path:nth-child(64)').attr('fill', fillcolor);
339					jQuery('path:nth-child(65)').attr('fill', fillcolor);
340				}
341
342				if(stateNumberKey===46 || stateNumberKey===48) {
343					jQuery('path:nth-child(47)').attr('fill', fillcolor);
344					jQuery('path:nth-child(49)').attr('fill', fillcolor);
345				}
346
347				showStateInfo();
348			});
349
350		}
351
352	});//END DOC READY
353
354
355	var mapData = "home",
356    showStateInfo = function() {
357        var a, b, c, d;
358        36 === stateNumberKey && (a = costofCareData.alabama), 53 !== stateNumberKey && 64 !== stateNumberKey && 54 !== stateNumberKey && 59 !== stateNumberKey && 60 !== stateNumberKey && 56 !== stateNumberKey && 63 !== stateNumberKey && 62 !== stateNumberKey || (a = costofCareData.alaska), 42 === stateNumberKey && (a = costofCareData.arizona), 20 === stateNumberKey && (a = costofCareData.arkansas), 29 === stateNumberKey && (a = costofCareData.california), 39 === stateNumberKey && (a = costofCareData.colorado), 45 === stateNumberKey && (a = costofCareData.connecticut), 33 === stateNumberKey && (a = costofCareData.delaware), 27 === stateNumberKey && (a = costofCareData.florida), 16 === stateNumberKey && (a = costofCareData.georgia), 2 === stateNumberKey && (a = costofCareData.hawaii), 24 === stateNumberKey && (a = costofCareData.idaho), 16 === stateNumberKey && (a = costofCareData.georgia), 8 === stateNumberKey && (a = costofCareData.illinois), 12 === stateNumberKey && (a = costofCareData.indiana), 17 === stateNumberKey && (a = costofCareData.iowa), 21 === stateNumberKey && (a = costofCareData.kansas), 52 === stateNumberKey && (a = costofCareData.kentucky), 3 === stateNumberKey && (a = costofCareData.louisiana), 25 === stateNumberKey && (a = costofCareData.maine), 43 === stateNumberKey && (a = costofCareData.maryland), 14 === stateNumberKey && (a = costofCareData.massachusetts), 46 !== stateNumberKey && 48 !== stateNumberKey || (a = costofCareData.michigan), 9 === stateNumberKey && (a = costofCareData.minnesota), 40 === stateNumberKey && (a = costofCareData.mississippi), 32 === stateNumberKey && (a = costofCareData.missouri), 4 === stateNumberKey && (a = costofCareData.montana), 50 === stateNumberKey && (a = costofCareData.nebraska), 18 === stateNumberKey && (a = costofCareData.nevada), 44 === stateNumberKey && (a = costofCareData.newhampshire), 6 === stateNumberKey && (a = costofCareData.newjersey), 13 === stateNumberKey && (a = costofCareData.newmexico), 35 === stateNumberKey && (a = costofCareData.newyork), 47 === stateNumberKey && (a = costofCareData.northcarol
358ina), 37 === stateNumberKey && (a = costofCareData.northdakota), 31 === stateNumberKey && (a = costofCareData.ohio), 51 === stateNumberKey && (a = costofCareData.oklahoma), 49 === stateNumberKey && (a = costofCareData.oregon), 15 === stateNumberKey && (a = costofCareData.pennsylvania), 34 === stateNumberKey && (a = costofCareData.rhodeisland), 22 === stateNumberKey && (a = costofCareData.southcarolina), 30 === stateNumberKey && (a = costofCareData.southdakota), 11 === stateNumberKey && (a = costofCareData.tennessee), 23 === stateNumberKey && (a = costofCareData.texas), 10 === stateNumberKey && (a = costofCareData.utah), 7 === stateNumberKey && (a = costofCareData.vermont), 26 === stateNumberKey && (a = costofCareData.virginia), 38 === stateNumberKey && (a = costofCareData.washington), 5 === stateNumberKey && (a = costofCareData.westvirginia), 28 === stateNumberKey && (a = costofCareData.wisconsin), 19 === stateNumberKey && (a = costofCareData.wyoming), b = a.statename, c = a.hourly, d = a.yearly, stateNurseYearly = a.nursingyear, "home" === mapData && (jQuery("#feedback-box").removeClass("yellow"), jQuery(".footnotes p").hide(), jQuery(".footnotes p.home-care").show(), fillcolor = fillcolor1, jQuery("#feedback-box").removeClass("small"), jQuery("#feedback-box .copy .hourly").css({
359            display: "block"
360        }), jQuery("#feedback-box .copy .statetitle").text(b), jQuery("#feedback-box .copy .hourly").text("$" + c + " per hour"), jQuery("#feedback-box .copy .yearly").text("$" + d + " per year")), "nursinghome" === mapData && (jQuery("#feedback-box").addClass("yellow"), jQuery(".footnotes p").hide(), jQuery(".footnotes p.nursing-home-care").show(), fillcolor = fillcolor2, jQuery("#feedback-box").addClass("small"), jQuery("#feedback-box .copy .hourly").css({
361            display: "none"
362        }), jQuery("#feedback-box .copy .statetitle").text(b), jQuery("#feedback-box .copy .yearly").text("$" + stateNurseYearly + " per year"))
363    },
364    life = life || {};
365! function(a) {
366    a(function() {
367        life.costofcare = {
368            init: function() {
369                var b = a("#filter-toggle"),
370                    c = a("#filters-list"),
371                    d = 0;
372                life.global.utils.customDD.listeners(b, c, b, d), a(".filter").click(function(b) {
373                    b.preventDefault();
374                    var c = a(this),
375                        d = c.text();
376                    a("#filter-toggle").text(d);
377                    var e = jQuery(this).attr("data-filter");
378                    "home" === e && (mapData = e), "nursinghome" === e && (mapData = e), showStateInfo()
379                })
380            }
381        }, a(document).ready(function() {
382            life.costofcare.init()
383        })
384    })
385}(jQuery);
386
387	var mapData = 'home';
388
389
390	var showStateInfo = function() {
391
392		var stateId;
393		var stateTitle;
394		var stateHourly;
395		var stateYearly;
396		//console.log(stateNumberKey);
397
398		if(stateNumberKey===36) {
399			stateId = costofCareData.alabama;
400		}
401
402		if(stateNumberKey===53 || stateNumberKey===64  || stateNumberKey===54 || stateNumberKey===59 || stateNumberKey===60 || stateNumberKey===56 || stateNumberKey===63 || stateNumberKey===62) {
403			stateId = costofCareData.alaska;
404		}
405
406		if(stateNumberKey===42) {
407			stateId = costofCareData.arizona;
408		}
409
410		if(stateNumberKey===20) {
411			stateId = costofCareData.arkansas;
412		}
413
414		if(stateNumberKey===29) {
415			stateId = costofCareData.california;
416		}
417
418		if(stateNumberKey===39) {
419		 stateId = costofCareData.colorado;
420		}
421
422		if(stateNumberKey===45) {
423			stateId = costofCareData.connecticut;
424		}
425
426		if(stateNumberKey===33) {
427			stateId = costofCareData.delaware;
428		}
429
430		if(stateNumberKey===27) {
431			stateId = costofCareData.florida;
432		}
433
434		if(stateNumberKey===16) {
435			stateId = costofCareData.georgia;
436		}
437
438		if(stateNumberKey===2) {
439			stateId = costofCareData.hawaii;
440		}
441
442		if(stateNumberKey===24) {
443			stateId = costofCareData.idaho;
444		}
445
446		if(stateNumberKey===16) {
447			stateId = costofCareData.georgia;
448		}
449
450		if(stateNumberKey===8) {
451			stateId = costofCareData.illinois;
452		}
453
454		if(stateNumberKey===12) {
455			stateId = costofCareData.indiana;
456		}
457
458		if(stateNumberKey===17) {
459			stateId = costofCareData.iowa;
460		}
461
462		if(stateNumberKey===21) {
463			stateId = costofCareData.kansas;
464		}
465
466		if(stateNumberKey===52) {
467			stateId = costofCareData.kentucky;
468		}
469
470		if(stateNumberKey===3) {
471			stateId = costofCareData.louisiana;
472		}
473
474		if(stateNumberKey===25) {
475			stateId = costofCareData.maine;
476		}
477
478		if(stateNumberKey===43) {
479			stateId = costofCareData.maryland;
480		}
481
482		if(stateNumberKey===14) {
483			stateId = costofCareData.massachusetts;
484		}
485
486		if(stateNumberKey===46 || stateNumberKey===48) {
487			stateId = costofCareData.michigan;
488		}
489
490		if(stateNumberKey===9) {
491			stateId = costofCareData.minnesota;
492		}
493
494		if(stateNumberKey===40) {
495			stateId = costofCareData.mississippi;
496		}
497
498		if(stateNumberKey===32) {
499			stateId = costofCareData.missouri;
500		}
501
502		if(stateNumberKey===4) {
503			stateId = costofCareData.montana;
504		}
505
506		if(stateNumberKey===50) {
507			stateId = costofCareData.nebraska;
508		}
509
510		if(stateNumberKey===18) {
511			stateId = costofCareData.nevada;
512		}
513
514		if(stateNumberKey===44) {
515			stateId = costofCareData.newhampshire;
516		}
517
518		if(stateNumberKey===6) {
519			stateId = costofCareData.newjersey;
520		}
521
522		if(stateNumberKey===13) {
523			stateId = costofCareData.newmexico;
524		}
525
526		if(stateNumberKey===35) {
527			stateId = costofCareData.newyork;
528		}
529
530		if(stateNumberKey===47) {
531			stateId = costofCareData.northcarolina;
532		}
533
534		if(stateNumberKey===37) {
535			stateId = costofCareData.northdakota;
536		}
537
538		if(stateNumberKey===31) {
539			stateId = costofCareData.ohio;
540		}
541
542		if(stateNumberKey===51) {
543			stateId = costofCareData.oklahoma;
544		}
545
546		if(stateNumberKey===49) {
547			stateId = costofCareData.oregon;
548		}
549
550		if(stateNumberKey===15) {
551			stateId = costofCareData.pennsylvania;
552		}
553
554		if(stateNumberKey===34) {
555			stateId = costofCareData.rhodeisland;
556		}
557
558		if(stateNumberKey===22) {
559			stateId = costofCareData.southcarolina;
560		}
561
562		if(stateNumberKey===30) {
563			stateId = costofCareData.southdakota;
564		}
565
566		if(stateNumberKey===11) {
567			stateId = costofCareData.tennessee;
568		}
569
570		if(stateNumberKey===23) {
571			stateId = costofCareData.texas;
572		}
573
574		if(stateNumberKey===10) {
575			stateId = costofCareData.utah;
576		}
577
578		if(stateNumberKey===7) {
579			stateId = costofCareData.vermont;
580		}
581
582		if(stateNumberKey===26) {
583			stateId = costofCareData.virginia;
584		}
585
586		if(stateNumberKey===38) {
587			stateId = costofCareData.washington;
588		}
589
590		if(stateNumberKey===5) {
591			stateId = costofCareData.westvirginia;
592		}
593
594		if(stateNumberKey===28) {
595			stateId = costofCareData.wisconsin;
596		}
597
598		if(stateNumberKey===19) {
599			stateId = costofCareData.wyoming;
600		}
601
602
603
604		stateTitle = stateId.statename;
605		//console.log(stateTitle);
606		stateHourly = stateId.hourly;
607		stateYearly = stateId.yearly;
608		stateNurseYearly = stateId.nursingyear;
609
610		if(mapData==='home'){
611
612			jQuery('#feedback-box').removeClass('yellow');
613
614			jQuery('.footnotes p').hide()
615			jQuery('.footnotes p.home-care').show();
616
617			fillcolor = fillcolor1;
618
619			jQuery('#feedback-box').removeClass('small');
620
621			jQuery('#feedback-box .copy .hourly').css({'display':'block'});
622
623			jQuery('#feedback-box .copy .statetitle').text(stateTitle);
624			jQuery('#feedback-box .copy .hourly').text('$' + stateHourly + ' per hour');
625			jQuery('#feedback-box .copy .yearly').text('$' + stateYearly + ' per year');
626		}
627
628		if(mapData==='nursinghome'){
629
630			jQuery('#feedback-box').addClass('yellow');
631
632			jQuery('.footnotes p').hide()
633			jQuery('.footnotes p.nursing-home-care').show();
634
635			fillcolor = fillcolor2;
636
637			jQuery('#feedback-box').addClass('small');
638
639			jQuery('#feedback-box .copy .hourly').css({'display':'none'});
640
641			jQuery('#feedback-box .copy .statetitle').text(stateTitle);
642			jQuery('#feedback-box .copy .yearly').text('$' + stateNurseYearly + ' per year');
643
644		}
645
646
647	};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.