/* abc.location 1.0.0 */
var ABC=ABC||{};ABC.Location=(function(g){var k={expires:365,domain:".abc.net.au",path:"/"},h="ABC_LD",c="ABC_LP",e="na";var f={ACT:{abbr:"ACT",title:"Australian Capital Territory"},NSW:{abbr:"NSW",title:"New South Wales"},NT:{abbr:"NT",title:"Northern Territory"},QLD:{abbr:"Qld",title:"Queensland"},SA:{abbr:"SA",title:"South Australia"},TAS:{abbr:"Tas",title:"Tasmania"},VIC:{abbr:"Vic",title:"Victoria"},WA:{abbr:"WA",title:"Western Australia"}};var i={geo:{}};function b(m){if(typeof m==="string"){for(var n in f){if(f.hasOwnProperty(n)&&m.toLowerCase()===f[n].abbr.toLowerCase()){return f[n]}}}return false}function l(){var n=ABC.Storage.Cookies.get(c);if(n===e){return g.extend(true,{},i,{optout:true})}else{if(n){var m=b(n);if(m){return g.extend(true,{},i,{geo:{stateAbbr:m.abbr,stateTitle:m.title,countryCode:"AU",countryTitle:"Australia"}})}}}return null}function d(m){m=b(m);if(m){ABC.Storage.Cookies.set(c,m.abbr.toLowerCase(),k);return m.abbr}else{throw new Error("State/territory invalid or not specified; cookie not set")}}function j(){ABC.Storage.Cookies.set(c,e,k)}function a(){var n,m=ABC.Storage.Cookies.get(h);if(m){if(m==="int"){n={countryCode:"ZZ",countryTitle:null}}else{var o=b(m);if(o){n={stateAbbr:o.abbr,stateTitle:o.title,countryCode:"AU",countryTitle:"Australia"}}}if(n){n.source="A";return g.extend(true,{},i,{geo:n})}}return null}return{AU_STATE:f,getDetected:a,getPref:l,setPrefState:d,removePref:j,version:"1.0.0"}})(window.jQuery);