/*!
 * HIV/AIDS Locator Widget
 *
 * Copyright 2010 ICF International
 */
if(typeof hivaids_locator_config==="undefined"){var hivaids_locator_config={Analytics:{s:{reportSuite:"cdcsynd",omnitureProdID:"widget-040",omnitureProp8:"Widget",omnitureProp22:"AIDS Service Provider Locator",omnitureProp17:"",omnitureProp27:"CDC Framework",eventName:"Unspecified Page",oURI:"http://mtrics.cdc.gov/b/ss/%%reportSuite%%/1/G.5--FB/s1154008561883?cl=session&j=1.0&c8=%%omnitureProp8%%&c27=%%omnitureProp27%%&c17=%%omnitureProp17%%&pageName=%%eventName%%&v5=%%omnitureProdID%%&c32=%%omnitureProdID%%&v6=%%eventType%%&c33=%%eventType%%"},aaa:{omnitureProdID:"widget-047"},opa:{omnitureProdID:"widget-057"},eStr:{EVT_SEARCH:"Search: ",EVT_TABCLICK:"Tab: ",EVT_GETEMBED:"Embed Code View"}},Feeds:[{unique_name:"cdc",title:"HIV Testing"},{unique_name:"hud",title:"Housing"},{unique_name:"hrsa_hc",title:"Health Centers"},{unique_name:"hrsa_rw",title:"Ryan White HIV Care"},{unique_name:"samhsa_mh",title:"Mental Health"},{unique_name:"samhsa_sa",title:"Substance Abuse"},{unique_name:"opa",title:"Family Planning"}]}}(function(){var LOCATOR_URI=location.protocol+"//locator.aids.gov",CONFIG_URI=LOCATOR_URI+"/scripts/config.js",SHARE_URI=[{t:"Embed Code",id:"embed",h:LOCATOR_URI},{t:"Email to Friend",id:"email",h:"http://www.feedburner.com/fb/a/emailFlare?itemTitle=[TITLE]&uri=[URI]"},{t:"Facebook",id:"facebook",h:"http://www.facebook.com/sharer.php?u=[URI]&t=[TITLE]"},{t:"MySpace",id:"myspace",h:"http://www.myspace.com/Modules/PostTo/Pages/?u=[URI]&t=[TITLE]&c=%20"},{t:"Digg",id:"digg",h:"http://digg.com/submit?url=[URI]&title=[TITLE]&media=News&topic=health&thumbnails=0"},{t:"StumbleUpon",id:"stumbleupon",h:"http://www.stumbleupon.com/submit?url=[URI]&title=[TITLE]"},{t:"Technorati",id:"technorati",h:"http://technorati.com/faves?sub=addfavbtn&add=[URI]"},{t:"Reddit",id:"reddit",h:"http://reddit.com/submit?url=[URI]&title=[TITLE]"},{t:"Delicious",id:"delicious",h:"http://delicious.com/post?v=4&noui&jump=close&url=[URI]&title=[TITLE]"}],SPLASH_TIMEOUT=15000;var trueName="";for(var i=0;i<16;i++){trueName+=String.fromCharCode(Math.floor(Math.random()*26)+97)}window[trueName]={};var $=window[trueName];$.d=document;$.isIE6=((navigator.appName.indexOf("Microsoft")>=0)&&(parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5))<7));$.quirksMode=((navigator.appName.indexOf("Microsoft")>=0)&&(document.compatMode!=="CSS1Compat"));$.f=function(){return{addEvt:function(el,type,listener){if(typeof el.addEventListener!=="undefined"){el.addEventListener(type,listener,false)}else{if(typeof el.attachEvent!=="undefined"){el.attachEvent("on"+type,listener)}}},removeEvt:function(el,type,listener){if(typeof el.removeEventListener!=="undefined"){el.removeEventListener(type,listener,false)}else{if(typeof el.detachEvent!=="undefined"){el.detachEvent("on"+type,listener)}}},findParent:function(nodeNameToFind){var parent=$.container.parentNode;var nodeNameUpper=nodeNameToFind.toUpperCase();while(parent!==null){if(parent.nodeName===nodeNameUpper){return parent}else{parent=parent.parentNode}}},hasParent:function(child,potentialParent){var parent=child.parentNode;while(parent!==null){if(parent===potentialParent){return true}else{parent=parent.parentNode}}return false},gID:function(id){return $.d.getElementById(id)},gClass:function(classname,node){if(!node){node=$.d.getElementsByTagName("body")[0]}var a=[];var re=new RegExp("\\b"+classname+"\\b");var els=node.getElementsByTagName("*");for(var i=0,j=els.length;i<j;i++){if(re.test(els[i].className)){a.push(els[i])}}return a},nodeListToArray:function(nodeList){var i,results=[],length=results.length=nodeList.length;for(i=0;i<length;results[i]=nodeList[i++]){}return results},addStylesheet:function(){var base={css:{"object, embed":"{ position: relative; z-index: 0 }",".&&&.overlay":"{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5000; background-color: #000; opacity: .8; position: fixed; filter: alpha(opacity=80); }",".&&&.lightbox":"{ background: url("+LOCATOR_URI+"/images/bg_results.png) no-repeat; position: fixed; top: 50%; left: 50%; z-index: 9999; width: 735px; height: 530px; margin: -280px 0 0 -380px; padding: 30px 0 0 25px; text-align: left; }",".&&&.lightbox .close":"{ position: absolute; top: 26px; right: 30px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat 0 -100px; display: block; height: 15px; width: 25px; text-indent: -999em; overflow: hidden; cursor: pointer; }",".&&&.lightbox .loading":"{ color: #fff; position: absolute; top: 35%; left: 30%; font-size: 4em; font-family: Trebuchet MS; }",".&&&.lightbox iframe":"{ background: transparent; border: none; }",".&&&.locationBox":"{ width: 735px; height: 530px; margin: -280px 0 0 -380px; padding: 30px 0 0 25px; }",".&&&.shareBox":"{ width: 300px; height: 250px; margin: -125px 0 0 -150px; padding: 0; background: none; }",".&&&.shareBox .close":"{ text-indent: 0; text-transform: uppercase; font-weight: bold; width: auto; position: absolute; top: -20px; right: 5px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat -16px -125px; color: #FFF; padding: 2px 12px 2px 2px; display: block; height: 15px; overflow: hidden; cursor: pointer; font-size: 12px; }","#&&&":'{ position: relative; font-family: "Trebuchet MS",Arial,Helvetica,sans-serif; font-size: 11px; text-align: left; }',"#&&& *":'{ margin: 0; padding: 0; background: none; font-family: "Trebuchet MS",Arial,Helvetica,sans-serif; font-size: 11px; }',"#&&& p, #&&& label, #&&& li":"{ font-size: 11px; line-height: 15px; margin-bottom: 10px; font-family: arial,sans-serif; color: #000; font-weight: normal; }",li:"{ list-style: none; }",label:"{ display: inline; }",a:"{ text-decoration: underline; }",".tab ul":"{ list-style: none; margin: 0; padding: 0; }",".menu":"{ position: absolute; list-style: none; margin: 0; padding: 0; }",".menu li ":"{ display: inline; margin: 0; padding: 0; line-height: 15px; }","#&&& .menu li a, #&&& .menu li a:link":"{ float: left; display: block; color: #000; text-decoration: none; text-align: center; }","#&&& .menu li.current a, #&&& .menu li.current a:link":"{ cursor: default; }",".tab":"{ position: absolute; overflow: hidden; z-index: 1; opacity: 0; -moz-transition: opacity .3s ease-out; -o-transition: opacity .3s ease-out; -webkit-transition: opacity .1s ease-out; }",".backdrop":"{ position: absolute; overflow: hidden; z-index: 1; }",".active":"{ z-index: 10; opacity: 1; -moz-transition: opacity .5s ease-in; -o-transition: opacity .5s ease-in; -webkit-transition: opacity .5s ease-in; }",".search":"{ position: relative; border: none; }",".services":"{ overflow: auto; clear: both; }","li.three-col":"{ float: left; width: 99px; height: 18px; overflow: hidden; margin: 0 0 2px 2px; }",strong:"{ color: #fff; display: block; }",input:"{ color: #aaa; }","input:focus":"{ color: #000; }",".location":"{ position: absolute; border: none; border-width: 0; font-size: 11px; vertical-align: middle; }",".locator_submit":"{ position: absolute; background: transparent; border: none; cursor: pointer; text-indent: -999em; padding: 0; margin: 5px 0 0 5px; vertical-align: middle; height: 35px; width: 35px;}",".adv-field":"{ display: block; height: 40px; float: left; padding-right: 10px; }",".adv-field input, .adv-field select":"{ margin-top: 2px; }","div.adv-field":"{ background: url("+LOCATOR_URI+"/images/bg_loc_submit_sm.gif) no-repeat 0 bottom; width: 143px; position: relative; }","div.adv-field input":"{ border: none; border-width: 0; position: absolute; bottom: 5px; left: 10px; width: 100px; }","div.adv-field .locator_submit":"{ width: 18px; height: 18px; position: absolute; top: 16px; right: 13px; left: auto; }","label.adv-field":"{ width: 100px; margin-bottom: 0; }","label.adv-field select":"{ width: 100px; background-color: #fff; }","#&&& .adv-field span, #&&& .head":"{ font-family: Trebuchet MS; margin: 0; padding: 0; font-weight: bold; color: #000; }",".link-share a":"{ padding: 3px 0 3px 20px; background: url("+LOCATOR_URI+"/images/logos-share-this.gif) no-repeat 0 center; }",textarea:"{ height: 45px; margin-bottom: 10px; width: 100%; background-color: #FFF; }",".share-nav a":"{ display: block; width: 100%; height: 18px; float: left; padding: 2px 0 2px 20px; background-image: url("+LOCATOR_URI+"/images/logos-share-this.gif); background-repeat: no-repeat; background-position: 1px 1px; background-color: transparent; }",".share-nav a:hover":"{ background-color: #bdc4cf; }",".share-nav a.myspace":"{ background-position: 1px 1px; }",".share-nav a.facebook":"{ background-position: 1px -49px; }",".share-nav a.stumbleupon":"{ background-position: 1px  -99px; }",".share-nav a.technorati":"{ background-position: 1px  -149px; }",".share-nav a.reddit":"{ background-position: 1px  -199px; }",".share-nav a.digg":"{ background-position: 1px  -249px; }",".share-nav a.delicious":"{ background-position: 1px  -299px; }",".share-nav a.email":"{ background-position: 1px  -346px; }",".share-nav a.embed":"{ background-position: 1px -399px; }",".hide":"{ display: none; }",".tab .embed-code":"{ position: absolute; background-color: #9ba7c6; padding: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; border: 1px solid #9ba7c6; }",".tab .embed-code h3":"{ color: #FFF; }",".tab .embed-code textarea":"{ margin-top: 5px; font-family: arial; font-size: 11px; }",".tab .embed-close":"{ cursor: pointer; text-decoration: none; padding-left: 12px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat -16px -125px; float: right; color: #FFF; text-transform: uppercase; font-weight: bold; }",".tab .embed-close: hover":"{ text-decoration: underline; }"},ie:{".tab .embed-close":"{ background-image: url("+LOCATOR_URI+"/images/sprites-8bit.png); }",".tab":"{ filter: alpha(opacity=0); }",".active":"{ filter: alpha(opacity=100); }","label.adv-field select":"{ visibility: hidden; }",".active label.adv-field select":"{ visibility: visible; }"},quirks:{"li.three-col":"{ width: 101px; }","div.adv-field":"{ width: 153px; }"}};var skins={horizontal:{css:{"#&&&":"{ height: 131px; width: 333px; }",".tab ul":"{ margin-top: 2px; }",".menu":"{ top: 110px; left: 7px; z-index: 1; }","#&&& .menu li a, #&&& .menu li a:link":"{ background: url("+LOCATOR_URI+"/images/tabs.png) no-repeat 0 0; padding: 5px 0 0; width: 80px; height: 16px; }","#&&& .menu li.current a, #&&& .menu li a:hover":"{ background-position: 0 -21px; color: #000; }","#&&& .tab, #&&& .backdrop":"{ background: transparent url("+LOCATOR_URI+"/images/bg_tab.png) no-repeat 0 0; padding: 10px 15px; top: 0; left: 0; width: 305px; height: 95px; }",".search":"{ height: 104px; width: 333px; background: url("+LOCATOR_URI+"/images/bg_widget.png) no-repeat; padding: 11px 0 0; z-index: 3; text-align: center; }",".service-list":"{ width: 700px; }",".service-list .three-col":"{ width: auto; overflow: visible; margin-right: 5px; }",".share-nav .three-col":"{ margin-bottom: 5px; }",strong:"{ font-size: 14px; margin-bottom: 9px; height: 23px; }",".search a":"{ font-size: 13px; font-weight: bold; text-decoration: none; color: #000; display: block; }",".callout":"{ margin-top: 59px; }",".location":"{ left: 38px; top: 55px; width: 240px; }",".locator_submit":"{ right: 15px; top: 43px; }",".tab .embed-code":"{ top: 5px; left: 10px; width: 290px; height: 80px; }",".tab .embed-code textarea":"{ height: 60px; }"},ie:{"#&&& .tab, #&&& .backdrop":"{background-image:url("+LOCATOR_URI+"/images/bg_tab-8bit.png);}","#&&&-main.search":"{background-image:url("+LOCATOR_URI+"/images/bg_widget-8bit.png);}",".menu li a":"{background-image:url("+LOCATOR_URI+"/images/tabs-8bit.png);}",".services":"{ width: 305px; height: 60px; }"},quirks:{"#&&& .tab, #&&& .backdrop":"{ width: 335px; height: 115px; }",".search":"{ height: 115px; }",".menu li a":"{ height: 25px; }",".tab .embed-code":"{ width: 312px; height: 102px; }"}},headless:{css:{"#&&&":"{ display: none; top: -2px; }","#&&&.showing":"{ display: block; }",".menu":"{ display: none; top: 0px; left: 10px; z-index: 1; }","#&&&.showing .menu":"{ display: block; }","#&&&.active .menu":"{ top: 212px; }","#&&& .menu li a, #&&& .menu li a:link":"{ background: url("+LOCATOR_URI+"/images/tabs_narrow.png) no-repeat 0 -7px; padding: 0; width: 42px; height: 18px; position: relative; }","#&&&.active .menu li a":"{ background-position: 0 0; padding: 7px 0 0; }","#&&& .menu li.current a, #&&& .menu li.current a:link, #&&& .menu li a:hover":"{ color: #000; background-position: 0 -32px; }","#&&&.active .menu li.current a, #&&&.active .menu li a:hover":"{ background-position: 0 -25px; }",".tab":"{ display: none; background: transparent url("+LOCATOR_URI+"/images/bg_tab_narrow.png) no-repeat 0 0; padding: 10px 12px; top: 0; left: 4px; width: 113px; height: 200px; }",".active":"{ display: none; }","#&&&.showing .active":"{ display: block; }",".search":"{ background: none; padding: 10px 0 0; }",".share-nav li.three-col":"{ margin-bottom: 4px; }",strong:"{ font-size: 12px; line-height: 1.18; margin-bottom: 3px; text-align: center; }",".location":"{ left: 29px; top: 65px; width: 70px; }",".locator_submit":"{ right: 10px; top: 53px; }",".tab .embed-code":"{ top: 5px; left: 8px; width: 100px; height: 180px; }",".tab .embed-code textarea":"{ height: 120px; }",".splash":"{ background: url("+LOCATOR_URI+"/images/splash.png) no-repeat 0 0; }"},ie:{"#&&& .tab, #&&& .backdrop":"{background-image: url("+LOCATOR_URI+"/images/bg_tab_narrow-8bit.png);}",".splash":"{ background-image: url("+LOCATOR_URI+"/images/splash-8bit.png);}","#&&&-main.search":"{background-image:url("+LOCATOR_URI+"/images/bg_widget_narrow-8bit.png);}",".menu li a":"{background-image:url("+LOCATOR_URI+"/images/tabs_narrow-8bit.png);}"},quirks:{"#&&& .tab, #&&& .backdrop":"{ width: 137px; height: 220px; }",".search":"{ height: 360px; }",".menu li a":"{ height: 25px; }",".tab .embed-code":"{ width: 122px; height: 202px; }"}},opa_horz:{css:{".&&&.lightbox":"{ background: url("+LOCATOR_URI+"/images/opa-overlay-bg.png) no-repeat; position: fixed; top: 50%; left: 50%; z-index: 9999; width: 752px; height: 520px; margin: -280px 0 0 -380px; padding: 17px 0 0 12px; text-align: left; }",".&&&.lightbox .close":"{ position: absolute; top: 15px; right: 12px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat 0 -100px; display: block; height: 15px; width: 25px; text-indent: -999em; overflow: hidden; cursor: pointer; }","#&&&":"{ height: 144px; width: 345px; }",".tab ul":"{ margin-top: 2px; }",".menu":"{ top: 110px; left: 13px; z-index: 1; width: 320px; }","#&&& .menu li a, #&&& .menu li a:link":"{ background: url("+LOCATOR_URI+"/images/opa-horz-tab_up.png) no-repeat 0 0; padding: 5px 0 0 3px; width: 103px; height: 26px; outline: 0 }","#&&& .menu li.current a, #&&& .menu li a:hover":"{ background: url("+LOCATOR_URI+"/images/opa-horz-tab_down.png) no-repeat 0 0; color: #000; }","#&&& .tab, #&&& .backdrop":"{ background: transparent url("+LOCATOR_URI+"/images/opa-horz-clinic_image_bg.png) no-repeat 0 0; padding: 10px 15px; top: 0; left: 0; width: 312px; height: 95px; }",".search":"{ height: 104px; width: 348px; background: url("+LOCATOR_URI+"/images/opa-horz-search.png) no-repeat; padding: 11px 0 0; z-index: 3; text-align: center; }",".share-nav li.three-col":"{ margin-bottom: 5px; }",strong:"{ font-size: 14px; margin-bottom: 9px; height: 23px; }","strong.top":"{color: #f07e25; font-size: 18px; position: relative; left: 22px; top: -5px; text-align: left; }","strong.bottom":"{color: #006f3b; font-size: 12px; position: relative; left: 22px; top: -17px; text-align: left; }","div.adv-field":"{ background: url("+LOCATOR_URI+"/images/opa-horz-clinic_search.png) no-repeat 0 bottom; width: 143px; position: relative; height: 45px; }",".search a":"{ font-size: 13px; font-weight: bold; text-decoration: none; color: #000; display: block; }",".callout":"{ margin-top: 59px; }",".location":"{ left: 22px; top: 62px; width: 240px; }",".locator_submit":"{ right: 20px; top: 43px; width: 50px; height: 50px; }",".tab .embed-code":"{ top: 5px; left: 10px; width: 290px; height: 80px; }",".tab .embed-code textarea":"{ height: 60px; }"},quirks:{"#&&& .tab, #&&& .backdrop":"{ width: 345px; height: 115px; }",".search":"{ height: 115px; }",".menu li a":"{ height: 25px; }",".tab .embed-code":"{ width: 312px; height: 102px; }"}},opa_headless:{css:{".&&&.lightbox":"{ background: url("+LOCATOR_URI+"/images/opa-overlay-bg.png) no-repeat; position: fixed; top: 50%; left: 50%; z-index: 9999; width: 752px; height: 520px; margin: -280px 0 0 -380px; padding: 17px 0 0 12px; text-align: left; }",".&&&.lightbox .close":"{ position: absolute; top: 15px; right: 12px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat 0 -100px; display: block; height: 15px; width: 25px; text-indent: -999em; overflow: hidden; cursor: pointer; }","#&&&":"{ display: none; top: 6px; left:23px;}","#&&&.showing":"{ display: block; }",".menu":"{ display: none; top: 0px; left: 10px; z-index: 1; }","#&&&.showing .menu":"{ display: block; }","#&&&.active .menu":"{ top: 219px; }","#&&& .menu li a, #&&& .menu li a:link":"{  background: url("+LOCATOR_URI+"/images/opa-headless-tabup.png) no-repeat 0 0; padding: 2px 0 0; width: 64px; height: 16px; outline: 0;}","#&&&.active .menu li a":"{ background-position: 0 0; padding: 0px 0 0; }","#&&& .menu li.current a, #&&& .menu li.current a:link, #&&& .menu li a:hover":"{background: url("+LOCATOR_URI+"/images/opa-headless-tabdown.png) no-repeat 0 0; color: #000; }","#&&&.active .menu li.current a, #&&&.active .menu li a:hover":"{ background-position: 0 0px; }",".tab":"{ display: none; background: transparent url("+LOCATOR_URI+"/images/opa-vert-widget-bground.png) no-repeat 0 0; padding: 10px 12px; left: 4px; width: 113px; height: 200px; }",".active":"{ display: none; }","#&&&.showing .active":"{ display: block; }",".search":"{ background: none; padding: 10px 0 0; }",".share-nav li.three-col":"{ margin-bottom: 4px; }",strong:"{ font-size: 12px; line-height: 1.18; margin-bottom: 3px; text-align: center; }",".location":"{ left: 29px; top: 65px; width: 70px; }",".locator_submit":"{ right: 10px; top: 53px; }",".tab .embed-code":"{ top: 5px; left: 8px; width: 100px; height: 180px; }",".tab .embed-code textarea":"{ height: 120px; }",".splash":"{ background: url("+LOCATOR_URI+"/images/opa-vert-help.png) no-repeat 0 0; }"},ie:{"#&&& .tab, #&&& .backdrop":"{background-image: url("+LOCATOR_URI+"/images/bg_tab_narrow-8bit.png);}",".splash":"{ background-image: url("+LOCATOR_URI+"/images/splash-8bit.png);}","#&&&-main.search":"{background-image:url("+LOCATOR_URI+"/images/bg_widget_narrow-8bit.png);}",".menu li a":"{background-image:url("+LOCATOR_URI+"/images/tabs_narrow-8bit.png);}"},quirks:{"#&&& .tab, #&&& .backdrop":"{ width: 137px; height: 220px; }",".search":"{ height: 360px; }",".menu li a":"{ height: 25px; }",".tab .embed-code":"{ width: 122px; height: 202px; }"}},opa_vert:{css:{".&&&.lightbox":"{ background: url("+LOCATOR_URI+"/images/opa-overlay-bg.png) no-repeat; position: fixed; top: 50%; left: 50%; z-index: 9999; width: 752px; height: 520px; margin: -280px 0 0 -380px; padding: 17px 0 0 12px; text-align: left; }",".&&&.lightbox .close":"{ position: absolute; top: 15px; right: 12px; background: url("+LOCATOR_URI+"/images/sprites.png) no-repeat 0 -100px; display: block; height: 15px; width: 25px; text-indent: -999em; overflow: hidden; cursor: pointer; }","#&&&":"{ height: 350px; width: 145px; }",".menu":"{ top: 325px; left: 8px; z-index: 1; }","#&&& .menu li a, #&&& .menu li a:link":"{ background: url("+LOCATOR_URI+"/images/opa-vert-tabs-up.png) no-repeat 0 0; padding: 2px 0 0; width: 64px; height: 16px; outline: 0;}","#&&& .menu li.current a, #&&& .menu li a:hover":"{ background: url("+LOCATOR_URI+"/images/opa-vert-tabs-down.png) no-repeat 0 0; color: #000; }","#&&& .tab, #&&& .backdrop":"{ background: transparent url("+LOCATOR_URI+"/images/opa-vert-widget-bground.png) no-repeat 0 0; padding: 10px 12px; top: 108px; left: 4px; width: 113px; height: 200px; }",".search":"{ height: 350px; width: 145px; background: url("+LOCATOR_URI+"/images/opa-vert-main.png) no-repeat; padding: 10px 0 0; }",".share-nav li.three-col":"{ margin-bottom: 4px; }",strong:"{ font-size: 12px; line-height: 1.18; margin-bottom: 3px; text-align: center; }","strong.top":"{ color: #f07e25; font-size: 14px; position: relative; left: 0px; padding: 0 5px; top: -5px; text-align: center;}","strong.bottom":"{ color: #006f3b; font-size: 10px; position: relative; left: 0px; padding: 0 5px; top: -5px; text-align: center;}",".location":"{ left: 15px; top: 75px; width: 70px; }",".locator_submit":"{ right: 5px; top: 60px; }",".tab .embed-code":"{ top: 5px; left: 8px; width: 100px; height: 180px; }",".tab .embed-code textarea":"{ height: 120px; }",".splash":"{ background: url("+LOCATOR_URI+"/images/opa-vert-help.png) no-repeat 0 0; }"},quirks:{"#&&& .tab, #&&& .backdrop":"{ width: 137px; height: 220px; }",".search":"{ height: 360px; }",".menu li a":"{ height: 25px; }",".tab .embed-code":"{ width: 122px; height: 202px; }"}},utac_lite:{css:{"#&&&":"{ display: none; top: 0; }",a:"{ color: #fff; }","#&&&.showing":"{ display: block; }",".menu":"{ display: none; top: -2px; left: 8px; z-index: 1; }","#&&&.showing .menu":"{ display: block; }","#&&&.active .menu":"{ top: 213px; }","#&&& .menu li a, #&&& .menu li a:link":"{ color: #fff; border: 1px solid #841E11; background-color: #841E11; background-image: -moz-linear-gradient(top, #E15B53, #841E11); background-image: -ms-linear-gradient(top, #E15B53, #841E11); background-image: -o-linear-gradient(top, #E15B53, #841E11); background-image: -webkit-gradient(linear, left top, left bottom, from(#E15B53), to(#841E11)); background-image: -webkit-linear-gradient(top, #E15B53, #841E11); background-image: linear-gradient(top, #E15B53, #841E11); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#E15B53', EndColorStr='#841E11'); padding: 1px 0 0; width: 40px; height: 16px; }","#&&&.active .menu li a":"{ }","#&&& .menu li.current a, #&&& .menu li.current a:link, #&&& .menu li a:hover":"{ color: #fff; }","#&&&.active .menu li.current a, #&&&.active .menu li a:hover":"{ color: #fff; }",".tab":"{ display: none; background: #000; border: 2px solid #E7322E; padding: 10px 12px; top: 0; left: -2px; width: 120px; height: 190px; }",".active":"{ display: none; }","#&&&.showing .active":"{ display: block; }",".share-nav li.three-col":"{ margin-bottom: 4px; }",".share-nav a:hover":"{ background-color: #000; color: #ccc; }",".tab .embed-code":"{ top: 2px; left: 2px; width: 118px; height: 184px; }",".tab .embed-code textarea":"{ height: 147px; }","#&&& p, #&&& label, #&&& li, #&&& .adv-field span, #&&& .head":"{ color: #fff; }","#&&& label.adv-field, #&&& label.adv-field select":"{ width: 120px; }"},quirks:{".tab":"{ width: 144px; height: 210px; }",".menu li a":"{ height: 18px; }",".tab .embed-code":"{ width: 122px; height: 202px; }"}}};var addStyles=function(skin){var css="";var ie=skin.ie;var quirks=skin.quirks;skin=skin.css?skin.css:skin;var addTrueName=function(selector){if(selector.match(/&&&/g)){selector=selector.replace(/&&&/g,trueName)}else{selector="#"+trueName+" "+selector}return selector};for(var selector in skin){var rule=skin[selector];selector=addTrueName(selector);css+=selector+rule}if(ie&&$.isIE6){for(var selector in ie){var rule=ie[selector];selector=addTrueName(selector);css+=selector+rule}}if(quirks&&$.quirksMode){for(var selector in quirks){var rule=quirks[selector];selector=addTrueName(selector);css+=selector+rule}}return css};var cssString=addStyles(base);var skin=skins[$.config.skin]||$.config.styles;cssString+=addStyles(skin);var styles=$.d.createElement("style");styles.setAttribute("type","text/css");$.d.getElementsByTagName("head")[0].appendChild(styles);if(styles.styleSheet){styles.styleSheet.cssText=cssString}else{styles.appendChild($.d.createTextNode(cssString))}},toggleClass:function(el,c){if(typeof el==="undefined"||el===null){return}if(el.className.indexOf(c)>=0){el.className=el.className.replace(c,"")}else{el.className+=" "+c}},addClass:function(el,c){if(typeof el==="undefined"||el===null){return}if(el.className.indexOf(c)==-1){el.className+=" "+c}},removeClass:function(el,c){if(typeof el==="undefined"||el===null){return}if(el.className.indexOf(c)>=0){el.className=el.className.replace(c,"")}},createNode:function(type,attr,txt){var n=$.d.createElement(type);if((type)&&(typeof type=="string")){if((attr)&&(typeof attr=="object")){for(var k in attr){var v=attr[k];switch(k){case"className":n.className=v;break;case"inputName":n.name=v;break;default:n.setAttribute(k,v);break}}}if((txt)&&(typeof txt=="string")){n.appendChild($.d.createTextNode(txt))}return n}},init:function(target){var theScripts=$.d.getElementsByTagName("script");for(var i=0;i<theScripts.length;i++){if(theScripts[i].src.match(target)){$.config=$.f.parseConfig(theScripts[i].innerHTML);if(typeof $.config.skin==="undefined"){$.config.skin="horizontal"}if(typeof $.config.disposition==="undefined"){if($.config.skin==="headless"||$.config.skin==="opa_headless"){$.config.disposition="lite"}}if(typeof $.config.callToAction==="undefined"){if($.config.skin==="horizontal"||$.config.skin==="opa_horz"){$.config.callToAction="Enter your address, city & state, or ZIP Code"}else{$.config.callToAction="City, ST / ZIP"}}if(typeof $.config.contactTitle==="undefined"){$.config.contactTitle="AIDS.gov";if($.config.skin==="opa_headless"){$.config.contactTitle="OPA"}if($.config.skin==="utac_lite"){$.config.contactTitle="until.org"}}if(typeof $.config.contactUrl==="undefined"){$.config.contactUrl="http://aids.gov/locator";if($.config.skin==="opa_headless"){$.config.contactUrl="http://hhs.gov/opa/"}if($.config.skin==="utac_lite"){$.config.contactUrl="http://until.org"}}if(typeof $.config.contactEmail==="undefined"){$.config.contactEmail="contact@aids.gov";if($.config.skin==="opa_headless"){$.config.contactEmail="contact@hhs.gov"}if($.config.skin==="utac_lite"){$.config.contactEmail="info@utac.org"}}$.horizontal_embed_snippet='<!-- Horizontal Embed Snippet --><noscript><div style="height:115px;position:relative;width:314px;background:url('+LOCATOR_URI+'/images/bg_widget-8bit.png) no-repeat;padding-left:19px;"><strong style="padding-top:6px;color:#fff;display:block;font-family:Trebuchet MS;font-size:14px;line-height:16px;">Find HIV/AIDS Prevention & Service Providers</strong><p style="font-size:9px;margin: 3px 0 4px;color:#fff;">Enter your address, city and state, or ZIP Code:</p><form action="'+LOCATOR_URI+'/index.php" style="margin:0;"><input type="text" name="location" style="border:0 none;font-size:11px;width:230px;margin-left:22px;" title="Enter your address, city and state, or ZIP Code."/><button type="submit" style="background:none;border:none;cursor:pointer;height:40px;margin-top:5px;padding:0;text-indent:-999em;overflow:hidden;vertical-align:middle;width:40px;">GO</button><input type="hidden" name="text_only" value="true" /></form><p style="font-size:9px;margin: 10px 0 0;color:#fff;">For more information on this widget, please visit <a href="http://aids.gov/locator" style="color:#fff;">AIDS.gov</a>.</p></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/widget.js"><\/script>';$.vertical_embed_snippet='<!-- Vertical Embed Snippet --><noscript><div style="height:350px;position:relative;width:145px;background:url('+LOCATOR_URI+'/images/bg_widget_narrow-8bit.png) no-repeat;"><strong style="text-align:center;padding-top:6px;color:#fff;display:block;font-family:Trebuchet MS;font-size:12px;line-height:1.18;margin-bottom:5px;">Find HIV/AIDS<br/>Prevention &amp; Service<br/>Providers</strong><form action="'+LOCATOR_URI+'/index.php" style="margin:0;"><input type="text" name="location" style="border:0 none;font-size:11px;width:65px;margin-left:31px;" title="City, ST / ZIP"/><button type="submit" style="background:none;border:none;cursor:pointer;height:34px;margin-top:5px;padding:0;text-indent:-999em;overflow:hidden;vertical-align:middle;width:34px;">GO</button><input type="hidden" name="text_only" value="true" /></form><div style="background:url('+LOCATOR_URI+'/images/bg_tab_narrow-8bit.png) no-repeat scroll 0 0;height:200px;left:4px;overflow:hidden;padding:10px 12px;position:absolute;top:100px;width:113px;z-index:1;font-family:arial,sans-serif;font-size:11px;line-height:15px;"><p>Enter your location, such as: "Washington, DC", or "20002".</p><p>For more information on this widget, please visit <a href="http://aids.gov/locator" style="color:#1111CC;">AIDS.gov</a>.</p><p>Please contact <a href="mailto:contact@aids.gov" style="color:#1111CC;">contact@aids.gov</a> with any comments or concerns.</p></div></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/narrowwidget.js"><\/script>';$.actagainstaids_embed_snippet='<!-- Act Against AIDS Embed Snippet --><noscript><div style="height:331px;position:relative;width:147px;background:url('+LOCATOR_URI+'/images/cdc/bg_widget_narrow-8bit-v2.png) no-repeat;"><strong style="text-align:center;padding-top:11px;color:#fff;display:block;font-family:Trebuchet MS;font-size:12px;line-height:1.18;margin-bottom:8px;">Find an HIV Test Site</strong><form action="'+LOCATOR_URI+'/index.php" style="margin:0;"><input type="text" name="location" style="border:0 none;font-size:11px;width:62px;margin-left:32px;" title="City, ST / ZIP"/><button type="submit" style="background:none;border:none;cursor:pointer;height:34px;margin-top:5px;padding:0;text-indent:-999em;overflow:hidden;vertical-align:middle;width:34px;">GO</button><input type="hidden" name="text_only" value="true" /></form><div style="background:url('+LOCATOR_URI+'/images/cdc/bg_tab_narrow-8bit.png) no-repeat scroll 0 0;height:200px;left:5px;overflow:hidden;padding:10px 12px;position:absolute;top:85px;width:113px;z-index:1;font-family:arial,sans-serif;font-size:11px;line-height:15px;"><p>Enter your location, such as: "Washington, DC", or "20002".</p><p>For more information on this widget, please visit <a href="http://aids.gov/locator" style="color:#1111CC;">AIDS.gov</a>.</p><p>Please contact <a href="mailto:contact@aids.gov" style="color:#1111CC;">contact@aids.gov</a> with any comments or concerns.</p></div></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/cdcwidget.js"><\/script>';$.opa_horz_embed_snippet='<!-- Family Planning Horizontal Embed Snippet --><noscript><div style="height: 115px; position: relative; width: 343px; background: url('+LOCATOR_URI+'/images/opa-horz-clinic_image_main.png) no-repeat; padding-left: 19px;"><strong style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif; color: #f07e25; font-size: 18px; display: block; padding: 5px 0 0 5px; text-align: left; ">Find a Family Planning Clinic</strong><strong style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif; color: #006f3b; font-size: 12px; display: block; padding: 0px 0 0 5px; text-align: left; ">OFFICE OF POPULATION AFFAIRS</strong><form action="'+LOCATOR_URI+'/index.php" style="margin: 0; position: relative; top: 3px;"><input type="text" name="location" style="border: 0; font-size: 11px; width: 230px; position: relative; top: 0px; left: 2px; margin-left: 1px;" title="Enter your address, city and state, or ZIP Code"/><input type="hidden" value="opa" name="feeds"/><input type="hidden" value="opa" name="skin"/><button type="submit" style="background: none; border: none; cursor: pointer; height: 40px; margin-top: 5px; margin-left: 25px; padding: 0; text-indent: -999em; overflow: hidden; vertical-align: middle; width: 40px;">GO</button><input type="hidden" name="text_only" value="true" /></form><p style="font-size: 9px; margin: 10px 0 0; color: #fff; position: relative; top: -7px;">For more information on this widget, please visit <a href="http://www.hhs.gov/opa/" style="color: #fff;">OPA</a>.</p></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/opa-widget.js"><\/script>';$.opa_vert_embed_snippet='<!-- Family Planning Vertical Embed Snippet --><noscript><div style="height: 350px; width: 145px; background: url('+LOCATOR_URI+'/images/opa-vert-widgetlarge.png) no-repeat;" ><strong style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif; color: #f07e25; font-size: 14px; display: block; padding: 5px 5px 0px 5px; text-align: center;">Find a Family Planning Clinic</strong><strong style="font-family:Trebuchet MS,Arial,Helvetica,sans-serif; color: #006f3b; font-size: 10px; display: block; padding: 0px 5px; text-align: center;"> OFFICE OF POPULATION AFFAIRS</strong><form action="'+LOCATOR_URI+'/index.php" style="margin: 0;"><input type="text" name="location" style="border: 0; font-size: 11px; width: 75px; position: relative; top: -5px; margin-left: 18px;" title="City, ST / ZIP" /><button type="submit" style="position: relative; left: 5px; top: -8px; background: none; border: none; cursor: pointer; height: 34px; margin: 5px 0 0 5px; padding: 0; text-indent: -999em; overflow: hidden; vertical-align: middle; width: 34px;">GO</button><input type="hidden" name="text_only" value="true" /><input type="hidden" value="opa" name="feeds"/><input type="hidden" value="opa" name="skin"/></form><div style="background: url('+LOCATOR_URI+'/images/opa-vert-help.png) no-repeat scroll 0 0; height: 220px; left: 3px; overflow: hidden; padding: 10px 12px; position: relative; top: 0px; width: 115px; z-index: 1; font-family: arial, sans-serif; font-size: 11px; line-height: 15px;"><p style="width: 113px;">Enter your location, such as: "Washington, DC", or "20002".</p><p style="width: 113px;">For more information on this widget, please visit <a href="http://www.hhs.gov/opa/">OPA</a>.</p><p style="width: 113px;">Please contact <a href="mailto:contact@aids.gov">contact@hhs.gov</a> with any comments or concerns.</p></div></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/opa-vert-widget.js"><\/script>';$.utac_embed_snippet='<!-- Until.org Embed Snippet --><noscript> <div style="height: 116px; position: relative; width: 157px; background: url('+LOCATOR_URI+'/images/utac/logo.png) no-repeat scroll 50% 0pt #000; border: 2px solid #E7322E;"> <strong style="text-align: center; color: #fff; display: block; font-family: Trebuchet MS; font-size: 12px; line-height: 1.18; margin-bottom: 5px; position: absolute; top: 50px; width: 157px;">Find An HIV Test Site</strong> <form action="'+LOCATOR_URI+'/index.php" style="margin: 0pt; position: absolute; width: 157px; height: 25px; background: url('+LOCATOR_URI+'/images/bg_loc_submit_sm.gif) no-repeat scroll 50% 0pt transparent; top: 65px;"> <input type="text" name="location" style="border: 0pt none; font-size: 11px; vertical-align: middle; width: 104px; margin-left: 20px;" title="City, ST / ZIP"/> <button type="submit" style="background: none repeat scroll 0% 0% transparent; border: medium none; cursor: pointer; padding: 0pt; text-indent: -999em; overflow: hidden; vertical-align: middle; width: 20px; margin-top: 0px; height: 25px;">GO</button> <input type="hidden" name="text_only" value="true"> </form> <p style="color: #E7322E; position: absolute; font-family: Trebuchet MS; font-size: 10px; bottom: 0px; margin: 0pt 3px; text-align: center;">Please contact <a style="color:#fff;" href="mailto:info@utac.org">info@utac.org</a> with any comments or concerns.</p> </div> </noscript> <script type="text/javascript" src="'+LOCATOR_URI+'/utacwidget.js"><\/script>';$.levi_embed_snippet='<!-- Levi Embed Snippet --><noscript><div style="height: 316px; width: 263px; position: relative; background: url('+LOCATOR_URI+'/images/levi/levi-background.png) no-repeat; "><strong style="text-align: left; position: relative; top: 23px;margin: 10px 0 0 36px;color: rgb(255, 255, 255); display: inline; font-family: Trebuchet MS; font-size: 14px;">HIV</strong><span style="font-family: Trebuchet MS; position: relative; top: 23px;font-size: 14px; color:rgb(255, 255, 255);">Connect:</span><p style="position: relative; top: 23px;margin: 0 0 0 36px;font-family: Trebuchet MS; font-size: 14px; color:rgb(255, 255, 255);">Find HIV/AIDS Service Providers</p><form action="'+LOCATOR_URI+'/index.php" style="margin: 0pt; position: absolute; width: 122px; height: 25px; top: 86px;left: 80px;"><input type="text" name="location" style="border: 0pt none; font-size: 11px; vertical-align: middle; width: 104px;" title="City, ST / ZIP" /><button type="submit" style="position: relative; top: -20px; left: 121px;background: none; border: medium none; cursor: pointer; padding: 0pt; text-indent: -999em; overflow: hidden; vertical-align: middle; width: 25px; margin-top: 0px; height: 25px;">GO</button><input type="hidden" name="text_only" value="true"></form><div style="position: relative; top: 90px; left: 17px;width: 203px; height: 130px; padding: 10px 15px; font-size: 11px;background: url('+LOCATOR_URI+'/images/levi/levi-splash-map.png) no-repeat"><p style="margin: 0 0 9px 0;">Enter your location, such as: "Washington, DC", or "20002".</p><p style="margin: 0 0 9px 0;">For more information on this widget, please visit <a href="http://aids.gov">AIDS.gov</a>.</p><p style="margin: 0 0 10px 0;">Please contact <a href="mailto:hivaids@levi.com">hivaids@levi.com</a> with any comments, suggestions, or concerns.</p></div></div></noscript><script type="text/javascript" src="'+LOCATOR_URI+'/levi-widget.js"><\/script>';$.container=$.f.createNode("div",{id:trueName,className:trueName+" aidsgovwidget"});theScripts[i].parentNode.insertBefore($.container,theScripts[i]);theScripts[i].parentNode.removeChild(theScripts[i]);$.f.addStylesheet();$.f.createTabs();if($.config.skin==="actagainstaids"){$.f.addEvt($.container,"click",function(e){if($.inactivity){clearTimeout($.inactivity)}$.inactivity=setTimeout(function(){$.f.setActiveTab(trueName+"-splash",false)},SPLASH_TIMEOUT)})}var inputs=$.container.getElementsByTagName("input");for(var c=0,cl=inputs.length;c<cl;c++){if(inputs[c].type=="checkbox"){if($.config&&$.config.feeds){if((typeof $.config.feeds==="object"&&$.f.inArray($.config.feeds,inputs[c].value))||(typeof $.config.feeds==="string"&&$.config.feeds===inputs[c].value)){inputs[c].checked=true}else{inputs[c].checked=false}}else{inputs[c].checked=true}if($.config&&$.config.skin&&$.config.skin==="actagainstaids"){if(inputs[c].value=="cdc"){inputs[c].checked=true}else{inputs[c].checked=false}}}}var loadString="";switch($.config.skin){case"actagainstaids":loadString="AAA: ";break;case"vertical":loadString="V: ";break;case"headless":loadString="Lite: ";break;case"opa_horz":loadString="OPA: ";break;case"opa_vert":loadString="OPA-V: ";break;case"opa_headless":loadString="OPA-Lite: ";break;case"utac":loadString="Until: ";break;case"utac_lite":loadString="UTAC-Lite: ";break;case"levi":loadString="Levi: ";break;default:loadString=""}$.f.trackEvent(loadString+window.location.href.toString());$.f.gifTracker();break}}},createTabs:function(){var tabData={horizontal:[{name:"Backdrop",nav:false,classes:"backdrop"},{name:"Search",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,current:true,disposition:"search"},{name:"Services",id:trueName+"-advanced",init:$.f.initAdvancedForm},{name:"Share This",id:trueName+"-share",init:$.f.initShareThis},{name:"Help",id:trueName+"-help",init:$.f.initHelp}],vertical:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,disposition:"search"},{name:"Backdrop",nav:false,classes:"backdrop"},{name:"Help",id:trueName+"-help",init:$.f.initHelp,current:true,classes:"splash"},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm}],actagainstaids:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,disposition:"search"},{name:"Backdrop",nav:false,classes:"backdrop"},{name:"Help",id:trueName+"-help",init:$.f.initHelp},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm},{name:"actagainstaids",id:trueName+"-splash",init:$.f.initSplash,nav:false,current:true,classes:"tab"}],headless:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,body:false,disposition:"search"},{name:"Help",id:trueName+"-help",init:$.f.initHelp,classes:"splash"},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm}],opa_headless:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,body:false,disposition:"search"},{name:"Help",id:trueName+"-help",init:$.f.initHelp,classes:"splash"},{name:"Share",id:trueName+"-share",init:$.f.initShareThis}],opa_horz:[{name:"Search",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,current:true,disposition:"search"},{name:"Backdrop",nav:false,classes:"backdrop"},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"Help",id:trueName+"-help",init:$.f.initHelp,classes:"splash"}],opa_vert:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,disposition:"search"},{name:"Backdrop",nav:false,classes:"backdrop"},{name:"Help",id:trueName+"-help",init:$.f.initHelp,current:true,classes:"splash"},{name:"Share",id:trueName+"-share",init:$.f.initShareThis}],utac:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,disposition:"search"},{name:"Help",id:trueName+"-help",init:$.f.initHelp},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm}],utac_lite:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,body:false,disposition:"search"},{name:"Help",id:trueName+"-help",init:$.f.initHelp},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm}],levi:[{name:"Main",id:trueName+"-main",classes:"search",init:$.f.initSearchForm,nav:false,disposition:"search"},{name:"Help",id:trueName+"-help",init:$.f.initHelp,current:true},{name:"Share",id:trueName+"-share",init:$.f.initShareThis},{name:"More",id:trueName+"-advanced",init:$.f.initAdvancedForm}]};var tData=tabData.horizontal;tData=tabData[$.config.skin];$.container.tabs=$.f.createNode("ul",{className:"menu"});$.container.appendChild($.container.tabs);for(var i=0,l=tData.length;i<l;i++){if(typeof tData[i].nav==="undefined"||tData[i].nav){var li=$.f.createNode("li",{id:"link-"+tData[i].id});if(tData[i].current){li.className="current"}var a=$.f.createNode("a",{href:"#"+tData[i].id,rel:tData[i].id},tData[i].name);li.appendChild(a);$.container.tabs.appendChild(li);$.f.addEvt(a,"click",function(e){var target=e.target||e.srcElement;$.f.setActiveTab(target.rel.replace("link-",""));if(e.preventDefault){e.preventDefault()}return false})}if(typeof tData[i].body==="undefined"||tData[i].body){var tabEl=(($.isIE6||$.quirksMode)&&tData[i].disposition==="search")?"form":"div";var tab=(typeof tData[i].id!=="undefined")?$.f.createNode(tabEl,{id:tData[i].id}):$.f.createNode(tabEl);if(typeof tData[i].nav==="undefined"||tData[i].nav){tab.className=(typeof tData[i].classes==="undefined")?"tab":tData[i].classes+" tab"}else{tab.className=tData[i].classes}$.container.appendChild(tab)}if(typeof tData[i].init!=="undefined"){tData[i].init.call(this,tab)}if(tData[i].current){$.f.setActiveTab(tData[i].id,false)}}},setActiveTab:function(tab,doTracking){if(tab===$.f.getActiveTab()){return}if(typeof doTracking==="undefined"||doTracking){$.f.trackEvent(hivaids_locator_config.Analytics.eStr.EVT_TABCLICK+tab.split("-")[1]);$.f.gifTracker("Tab",tab.split("-")[1])}var oldT=$.f.gClass("active",$.container)[0];var newT=$.f.gID(tab);$.f.toggleClass($.f.gClass("current",$.container)[0],"current");if(typeof oldT!=="undefined"){$.f.toggleClass(oldT,"active")}$.f.toggleClass(newT,"active");$.f.toggleClass($.f.gID("link-"+tab),"current");$.f.addClass($.container,"active")},getActiveTab:function(){var active=$.f.gClass("active",$.container);if(active.length>0){var parts=active[0].id.split("-");return parts[parts.length-1]}return false},cancelFormSubmission:function(e){if(e.preventDefault){e.preventDefault()}return false},initSearchForm:function(form){if($.config.disposition==="lite"){form=$.f.findParent("form");form.locField=$.d.getElementById($.config.input_field);form.locField.value=$.config.callToAction;form.locField.style.color="#aaa";form.goButton=$.d.getElementById($.config.go_button)}else{form.header=$.f.createNode("strong",false,"Find HIV/AIDS Prevention & Service Providers");if($.config.title){form.header=$.f.createNode("strong",false,$.config.title)}else{if($.config.skin==="vertical"){form.header=$.f.createNode("strong",false,"Find HIV/AIDS");form.header.appendChild($.d.createElement("br"));form.header.appendChild($.d.createTextNode("Prevention & Service"));form.header.appendChild($.d.createElement("br"));form.header.appendChild($.d.createTextNode("Providers"))}else{if($.config.skin==="actagainstaids"){form.header=$.f.createNode("strong",false,"Find an HIV Test Site")}else{if($.config.skin==="opa_vert"||$.config.skin==="opa_horz"){form.header=$.f.createNode("strong",{className:"top"},"Find a Family Planning Clinic")}else{if($.config.skin==="levi"){form.header=$.f.createNode("div",{className:"top title"},"")}}}}}form.appendChild(form.header);if($.config.skin==="opa_vert"||$.config.skin==="opa_horz"){form.subheader=$.f.createNode("strong",{className:"bottom"},"OFFICE OF POPULATION AFFAIRS");form.appendChild(form.subheader)}else{if($.config.skin==="levi"){form.strong=$.f.createNode("strong",{className:"title"},"HIV");form.header.appendChild(form.strong);form.extraHeader=$.f.createNode("span",{className:"title"},"Connect:");form.header.appendChild(form.extraHeader);form.subheader=$.f.createNode("p",{className:"title"},"Find HIV/AIDS Service Providers");form.appendChild(form.subheader)}}form.locField=$.f.createNode("input",{name:"location",type:"text",id:trueName+"location",className:"location",title:$.config.callToAction});form.locField.tabIndex=1;form.locField.value=$.config.callToAction;form.appendChild(form.locField);if($.isIE6||$.quirksMode){form.goButton=$.f.createNode("input",{type:"submit",id:trueName+"locator_submit",className:"locator_submit",value:""})}else{form.goButton=$.f.createNode("a",{href:"#",id:trueName+"locator_submit",className:"locator_submit",title:"Go"})}form.appendChild(form.goButton);if(typeof navigator.geolocation!=="undefined"){if($.config.skin==="levi"){$.f.addClass($.container,"geo-enabled");if($.quirksMode){form.nearMeButton=$.f.createNode("input",{type:"submit",id:trueName+"nearme",className:"nearme",value:""})}else{form.nearMeButton=$.f.createNode("a",{href:"#",id:trueName+"nearme",className:"nearme",title:"Near Me"})}form.appendChild(form.nearMeButton)}}}if($.isIE6||$.quirksMode){if($.config.singleFeed){form.appendChild($.f.createNode("input",{name:"feeds",type:"hidden",value:$.config.singleFeed,id:trueName+"feeds"}))}if($.config.singleSubmit||$.config.disposition==="lite"){$.f.addEvt(form,"submit",function(){if($.f.getActiveTab()==="advanced"){var params=$.f.serializeAdv();if($.d.getElementById(trueName+"feeds")){$.d.getElementById(trueName+"feeds").value=params.feeds}else{form.appendChild($.f.createNode("input",{name:"feeds",type:"hidden",value:params.feeds,id:trueName+"feeds"}))}if($.d.getElementById(trueName+"radius")){$.d.getElementById(trueName+"radius").value=params.radius}else{form.appendChild($.f.createNode("input",{name:"radius",type:"hidden",value:params.radius,id:trueName+"radius"}))}}})}if($.config.overlaySkin){form.appendChild($.f.createNode("input",{name:"skin",type:"hidden",value:$.config.overlaySkin,id:trueName+"skin"}))}form.action=LOCATOR_URI+"/index.php";form.target="_blank"}else{var goHandler=function(e){if(e.keyCode&&e.keyCode!==13){return}var opts={};if($.f.getActiveTab()==="advanced"){opts=$.f.serializeAdv()}if($.config.singleFeed){opts.feeds=opts.feeds?opts.feeds+","+$.config.singleFeed:$.config.singleFeed}if($.config.singleFeedOnly){opts.feeds=$.config.singleFeed}if($.config.overlaySkin){opts.skin=$.config.overlaySkin}opts.location=form.locField.value===$.config.callToAction?"":form.locField.value;$.f.loadIFrame(opts);if(e.preventDefault){e.preventDefault()}return false};if(form.nearMeButton){$.f.addEvt(form.nearMeButton,"click",goHandler)}if($.config.disposition==="lite"){$.f.addEvt(form,"submit",goHandler)}else{$.f.addEvt(form.locField,"keyup",goHandler);$.f.addEvt(form.goButton,"click",goHandler);var addCancelForm=function(){var parentForm=$.f.findParent("form");if(parentForm){$.f.addEvt(parentForm,"submit",$.f.cancelFormSubmission)}};var removeCancelForm=function(){var parentForm=$.f.findParent("form");if(parentForm){$.f.removeEvt(parentForm,"submit",$.f.cancelFormSubmission)}};$.f.addEvt(form.locField,"focus",addCancelForm);$.f.addEvt(form.goButton,"focus",addCancelForm);$.f.addEvt(form.locField,"blur",removeCancelForm);$.f.addEvt(form.goButton,"blur",removeCancelForm)}}$.f.addEvt(form.locField,"focus",function(e){if(form.locField.value===$.config.callToAction){form.locField.value=""}form.locField.style.color="#000";$.f.addClass($.container,"showing")});$.f.addEvt(form.locField,"click",function(){$.f.addClass($.container,"showing")});$.f.addEvt(form.locField,"blur",function(e){if(form.locField.value===""){form.locField.value=$.config.callToAction;form.locField.style.color="#aaa"}else{form.locField.style.color="#000";if(!$.config.singleSubmit&&$.config.disposition!=="lite"){$.f.gID(trueName+"advlocation").value=form.locField.value}}});if($.config.clickToClose||$.config.disposition==="lite"){$.f.addEvt(document,"click",function(e){var targ=null;if(!e){e=window.event}if(e.target){targ=e.target}else{if(e.srcElement){targ=e.srcElement}}if(targ.nodeType===3){targ=targ.parentNode}if(targ!=$.container&&targ!=form.locField&&targ!=form.goButton&&!$.f.hasParent(targ,$.container)){$.f.removeClass($.container,"showing");$.f.removeClass($.container,"active");$.f.removeClass($.f.gClass("active",$.container)[0],"active");$.f.removeClass($.f.gClass("current",$.container)[0],"current")}})}},serializeAdv:function(){var opts={},locField=$.f.gID(trueName+"advlocation"),radField=$.f.gID(trueName+"advradius"),l=locField?locField.value:"",r=radField?radField.value:"";if(l){opts.location=l}if(r){opts.radius=r}var f=[];var fBox=$.f.gClass("feedCheck",$.container);for(var i=0,len=fBox.length;i<len;i++){if(fBox[i].checked){f.push(fBox[i].value)}}opts.feeds=f.join(",");return opts},initAdvancedForm:function(b){var hold=$.d.createDocumentFragment();if(!$.config.singleSubmit&&$.config.disposition!=="lite"){b.inputDiv=$.f.createNode("div",{className:"adv-field"});b.inputLabel=$.f.createNode("label");b.inputLabel.appendChild($.f.createNode("span",null,"Location"));b.locField=$.f.createNode("input",{inputName:"location",type:"text",id:trueName+"advlocation"});b.inputLabel.appendChild(b.locField);b.inputDiv.appendChild(b.inputLabel);if($.isIE6||$.quirksMode){b.goButton=$.f.createNode("input",{type:"submit",className:"locator_submit",value:""})}else{b.goButton=$.f.createNode("a",{href:"#",className:"locator_submit",title:"Go"})}b.inputDiv.appendChild(b.goButton);hold.appendChild(b.inputDiv);if(!$.isIE6){$.f.addEvt(b.goButton,"click",function(e){$.f.loadIFrame($.f.serializeAdv());if(e.preventDefault){e.preventDefault()}return false});$.f.addEvt(b.locField,"keyup",function(e){if(e.keyCode==13){$.f.loadIFrame($.f.serializeAdv())}})}}b.radius=$.f.createNode("label",{className:"adv-field"});b.radius.appendChild($.f.createNode("span",null,"Distance"));b.select=$.f.createNode("select",{inputName:"radius",id:trueName+"advradius"});var radii=[5,10,15,20,25,30,35,40,45,50];for(var i=0,l=radii.length;i<l;i++){b.select.appendChild($.f.createNode("option",{value:radii[i]},radii[i]+" Miles"))}b.radius.appendChild(b.select);hold.appendChild(b.radius);b.serviceSelector=$.f.createNode("div",{className:"services"});b.serviceSelector.appendChild($.f.createNode("p",{className:"head"},"Services"));b.serviceList=$.f.createNode("ul",{className:"service-list"});b.serviceSelector.appendChild(b.serviceList);for(var i=0,l=hivaids_locator_config.Feeds.length;i<l;i++){b.serviceSelector.label=$.f.createNode("label");b.serviceSelector.input=$.f.createNode("input",{type:"checkbox",className:"feedCheck",inputName:hivaids_locator_config.Feeds[i].unique_name,value:hivaids_locator_config.Feeds[i].unique_name});b.serviceSelector.text=$.f.createNode("span",null," "+hivaids_locator_config.Feeds[i].title);b.serviceSelector.li=$.f.createNode("li",{className:"three-col"});b.serviceSelector.label.appendChild(b.serviceSelector.input);b.serviceSelector.label.appendChild(b.serviceSelector.text);b.serviceSelector.li.appendChild(b.serviceSelector.label);b.serviceList.appendChild(b.serviceSelector.li)}hold.appendChild(b.serviceSelector);if(!$.config.singleSubmit&&$.config.disposition!=="lite"&&$.isIE6||$.quirksMode){b.advForm=$.f.createNode("form",{action:LOCATOR_URI+"/index.php",method:"get",id:trueName+"advForm"});b.advForm.appendChild(hold);b.appendChild(b.advForm);$.f.addEvt(b.advForm,"submit",function(){var fBox=$.f.gClass("feedCheck",$.container);var f=[];for(var i=0,l=fBox.length;i<l;i++){if(fBox[i].checked){f.push(fBox[i].value)}}if($.f.gID(trueName+"feeds")){$.f.gID(trueName+"feeds").value=f.join(",")}else{var feeds=$.f.createNode("input",{name:"feeds",type:"hidden",value:f.join(","),id:trueName+"feeds"});b.advForm.appendChild(feeds)}});b.advForm.target="_blank"}else{b.appendChild(hold)}},initShareThis:function(b){var shareList=$.f.createNode("ul",{className:"share-nav"});b.appendChild(shareList);if($.config.skin==="opa_horz"||$.config.skin==="opa_vert"||$.config.skin==="opa_headless"){var opa_locator_uri=LOCATOR_URI+"?feeds=opa%26skin=opa";for(var i=0;i<SHARE_URI.length;i++){var a=$.f.createNode("a",{className:SHARE_URI[i].id,href:SHARE_URI[i].h.replace("[URI]",opa_locator_uri).replace("[TITLE]","Find Family Planning Clinics")},SHARE_URI[i].t);var li=$.f.createNode("li",{className:"three-col"});li.appendChild(a);shareList.appendChild(li)}}else{for(var i=0;i<SHARE_URI.length;i++){var a=$.f.createNode("a",{className:SHARE_URI[i].id,href:SHARE_URI[i].h.replace("[URI]",LOCATOR_URI).replace("[TITLE]","Find HIV/AIDS Prevention and Service Providers")},SHARE_URI[i].t);li=$.f.createNode("li",{className:"three-col"});li.appendChild(a);shareList.appendChild(li)}}var embedPane=$.f.createNode("div",{className:"embed-code hide"});embedPane.appendChild($.f.createNode("a",{className:"embed-close"},"Close"));embedPane.appendChild($.f.createNode("label",{"for":trueName+"_shareCode",className:"head"},"Get the embed code"));var embed_snippet=$[$.config.skin+"_embed_snippet"];if($.config.skin==="opa_headless"){embed_snippet=$.opa_vert_embed_snippet}if($.config.skin==="headless"){embed_snippet=$.vertical_embed_snippet}if($.config.skin==="utac_lite"){embed_snippet=$.utac_embed_snippet}var textarea=$.f.createNode("textarea",{id:trueName+"_shareCode",rows:1,cols:10},embed_snippet);embedPane.appendChild(textarea);$.f.addEvt(textarea,"focus",function(e){$.f.trackEvent(hivaids_locator_config.Analytics.eStr.EVT_GETEMBED);$.f.gifTracker("Embed");var target=e.target||e.srcElement;target.select();if(e.preventDefault){e.preventDefault()}return false});$.f.addEvt(textarea,"click",function(e){var target=e.target||e.srcElement;target.select();if(e.preventDefault){e.preventDefault()}return false});b.appendChild(embedPane);$.f.addEvt($.f.gClass("embed",b)[0],"click",function(e){if(e.preventDefault){e.preventDefault()}$.f.toggleClass($.f.gClass("embed-code",b)[0],"hide");return false});$.f.addEvt($.f.gClass("embed-close",b)[0],"click",function(e){if(e.preventDefault){e.preventDefault()}$.f.toggleClass($.f.gClass("embed-code",b)[0],"hide");return false})},initHelp:function(b){var markup='<p>Enter your location, such as: "Washington, DC", or "20002".</p><p>For more information on this widget, please visit <a href="'+$.config.contactUrl+'">'+$.config.contactTitle+'</a>.</p><p>Please contact <a href="mailto:'+$.config.contactEmail+'">'+$.config.contactEmail+"</a> with any comments, suggestions, or concerns.</p>";b.innerHTML=markup},initSplash:function(b){$.f.toggleClass(b,"splash");if($.config.skin==="actagainstaids"){b.header=$.f.createNode("a",{id:trueName+"_splash",href:"http://www.nineandahalfminutes.org/"});b.header.innerHTML="Act Against AIDS";b.appendChild(b.header);b.appendChild($.f.createNode("p",{},'Find an HIV testing site near you.  For additional HIV services, select the "More" tab.'))}},initOverlay:function(){var overlay=$.f.createNode("div",{className:trueName+" overlay"});overlay.style.display="none";$.d.body.appendChild(overlay);return overlay},queryParams:function(searchStr){var queryString=[];for(var k in searchStr){queryString.push(k+"="+searchStr[k])}return queryString.join("&")},loadIFrame:function(opts){$.f.trackEvent(hivaids_locator_config.Analytics.eStr.EVT_SEARCH+window.location.hostname);$.f.gifTracker("Search",opts.location);var lightbox=$.f.createNode("div",{className:trueName+" lightbox locationBox"});var overlay=$.f.initOverlay();lightbox.style.display="none";var title=$.f.createNode("div",{className:"title"});var closeButton=$.f.createNode("span",{className:"close"},"Close");$.f.addEvt(closeButton,"click",function(){lightbox.parentNode.removeChild(lightbox);overlay.parentNode.removeChild(overlay)});title.appendChild(closeButton);lightbox.appendChild(title);var loader=$.f.createNode("div",{id:"aidsgovwidget_loader",className:"loading"},"Loading results...");lightbox.appendChild(loader);$.d.body.appendChild(lightbox);var iframe=$.d.createElement("iframe");if($.config.skin==="opa_horz"||$.config.skin==="opa_vert"||$.config.skin==="opa_headless"){iframe.setAttribute("width","745");iframe.setAttribute("height","514")}else{iframe.setAttribute("width","712");iframe.setAttribute("height","493")}iframe.setAttribute("frameBorder","0");iframe.setAttribute("allowTransparency","allowtransparency");iframe.setAttribute("src",LOCATOR_URI+"/index.php?"+$.f.queryParams(opts));lightbox.appendChild(iframe);var objects=$.f.nodeListToArray($.d.getElementsByTagName("object"));var embeds=$.f.nodeListToArray($.d.getElementsByTagName("embed"));var flashes=objects.concat(embeds);if(flashes.length>0){for(var i=0,l=flashes.length;i<l;i++){flashes[i].style.visibility="hidden"}$.f.addEvt(closeButton,"click",function(){for(var i=0,l=flashes.length;i<l;i++){flashes[i].style.visibility="visible"}})}overlay.style.display="";lightbox.style.display="";lightbox.removeChild(loader)},trackEvent:function(eventType){var ping=new Image(),conf=master=hivaids_locator_config.Analytics.s;if($.config.skin==="actagainstaids"){conf=hivaids_locator_config.Analytics.aaa}else{if($.config.skin==="opa_horz"||$.config.skin==="opa_vert"||$.config.skin==="opa_headless"){conf=hivaids_locator_config.Analytics.opa}}var URI=conf.oURI||master.oURI;URI=URI.replace(/%%reportSuite%%/g,conf.reportSuite||master.reportSuite);URI=URI.replace(/%%omnitureProp8%%/g,conf.omnitureProp8||master.omnitureProp8);URI=URI.replace(/%%omnitureProp27%%/g,conf.omnitureProp27||master.omnitureProp27);URI=URI.replace(/%%omnitureProp17%%/g,window.location.href.toString());URI=URI.replace(/%%eventName%%/g,conf.omnitureProp22||master.omnitureProp22);URI=URI.replace(/%%omnitureProdID%%/g,conf.omnitureProdID||master.omnitureProdID);URI=URI.replace(/%%eventType%%/g,eventType);ping.src=URI},gifTracker:function(action,label){var a=action||"",l=label||"",cs=document.charset||document.characterSet||"-",lang=navigator.userLanguage||navigator.language||"-",loc=window.location,domain=loc.hostname,widget="/widgets/"+$.config.skin,urchinCode="UA-23452052-1",utme="",i=1000000000,rand=function(min,max){return min+Math.floor(Math.random()*(max-min))},utmn=rand(i,9999999999),cookie=rand(10000000,99999999),random=rand(i,2147483647),today=(new Date()).getTime(),img=new Image();if(a!==""){utme="&utmt=event&utme=5(Widget*"+a;if(l!==""){utme+="*"+l}utme+=")"}var gaScheme=document.location.protocol==="https:"?"https://ssl":"http://www";img.src=gaScheme+".google-analytics.com/__utm.gif?utmwv=5.1.2&utmn="+utmn+"&utmsr="+screen.width+"x"+screen.height+"&utmsc="+screen.colorDepth+"-bit&utmcs="+cs.toLowerCase()+"&utmul="+lang.toLowerCase()+"&utmje=0&utmfl=-&utmdt="+encodeURIComponent(document.title)+"&utmhn="+encodeURIComponent(domain)+"&utmr="+encodeURIComponent(loc.href)+"&utmp="+encodeURIComponent(widget)+"&utmac="+urchinCode+utme+"&utmcc=__utma%3D"+cookie+"."+random+"."+today+"."+today+"."+today+".2%3B%2B__utmb%3D"+cookie+"%3B%2B__utmc%3D"+cookie+"%3B%2B__utmz%3D"+cookie+"."+today+".2.2.utmccn%3D(referral)%7Cutmcsr%3D"+domain+"%7Cutmcct%3D"+encodeURIComponent(loc.pathname)+"%7Cutmcmd%3Dreferral%3B%2B__utmv%3D"+cookie+".-%3B"},parseConfig:function(configString){if(typeof configString==="undefined"||configString===""){return{}}if(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]+$/.test(configString.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){try{return eval("("+configString+")")}catch(err){}}return{}},inArray:function(array,value){var i=array.length-1;if(i>=0){do{if(array[i]===value){return true}}while(i--)}return false}}}();var thisScript=/^https?:\/\/[^\/]*locator.aids.gov\/widget.js$/;if(document.readyState==="complete"&&document.body){$.f.init(thisScript)}else{if(typeof window.addEventListener!=="undefined"){window.addEventListener("load",function(){$.f.init(thisScript)},false)}else{if(typeof window.attachEvent!=="undefined"){window.attachEvent("onload",function(){$.f.init(thisScript)})}}}})();
