var Spry;if(!Spry){Spry={}}if(!Spry.Utils){Spry.Utils={}}Spry.Utils.urlComponentToObject=function(h,f,g){var b=new Object;if(h){if(!f){f="&"}if(!g){g="="}var d=h.split(f);for(var e=0;e<d.length;e++){var j=d[e].split(g);var c=decodeURIComponent(j[0]?j[0]:"");var k=decodeURIComponent(j[1]?j[1]:"");if(k.match(/^0$|^[1-9]\d*$/)){k=parseInt(k)}if(typeof b[c]=="undefined"){b[c]=k}else{if(typeof b[c]!="object"){var l=b[c];b[c]=new Array;b[c].push(l)}b[c].push(k)}}}return b};Spry.Utils.getLocationHashParamsAsObject=function(a,b){return Spry.Utils.urlComponentToObject(window.location.hash.replace(/^#/,""),a,b)};Spry.Utils.getLocationParamsAsObject=function(){return Spry.Utils.urlComponentToObject(window.location.search.replace(/^\?/,""))};Spry.Utils.getURLHashParamsAsObject=function(a,c,d){var b;if(a&&(b=a.search("#"))>=0){return Spry.Utils.urlComponentToObject(a.substr(b+1),c,d)}return new Object};Spry.Utils.getURLParamsAsObject=function(a){var b;if(a&&(b=a.match(/\?[^#]*/))&&b){return Spry.Utils.urlComponentToObject(b[0].replace(/^\?/,""))}return new Object};
