MACYS.namespace("MACYS.util");MACYS.util.Url={_parameterHashDict:undefined,_parameterSearchDict:undefined,getParameter:function(B){var A=undefined;if(this.getHashParameter(B)!=undefined){A=this.getHashParameter(B)}else{A=this.getQueryStringParameter(B)}return A},getQueryStringParameter:function(A){return this._getParameterPrivate(A,"search")},getHashParameter:function(A){return this._getParameterPrivate(A,"hash")},_getParameterPrivate:function(B,C){try{if(C=="hash"||C==null){if(!this._parameterHashDict){this._parameterHashDict=this._parseParamString(location.hash)}return this._parameterHashDict[B]}else{if(!this._parameterSearchDict){this._parameterSearchDict=this._parseParamString(location.search)}return this._parameterSearchDict[B]}}catch(A){throw new MACYS.Exception(A,"MACYS.util.UrlUtility.getParameterBase")}},_parseParamString:function(A){qs=new String(A);if(qs.length==0){return{}}if(qs[0]=="#"||qs[0]=="?"){qs=qs.substr(1,qs.length).split("&")}else{qs=qs.split("&")}qsDict={};for(i=0;i<qs.length;i++){qsElem=qs[i].split("=");if(qsDict[qsElem[0]]){if(typeof qsDict[qsElem[0]]=="string"){qsDict[qsElem[0]]=[qsDict[qsElem[0]],qsElem[1]]}else{qsDict[qsElem[0]]=qsDict[qsElem[0]].concat(qsElem[1])}}else{qsDict[qsElem[0]]=qsElem[1]}}return qsDict},parseHashUrl:function(){qs=new String(paramString);qs=qs.substr(1,qs.length).split("&");qsDict={};for(i=0;i<qs.length;i++){qsElem=qs[i].split("=");if(qsDict[qsElem[0]]){qsDict[qsElem[0]]=qsDict[qsElem[0]].concat(qsElem[1])}else{qsDict[qsElem[0]]=[qsElem[1]]}}if(paramType=="hash"||paramType==null){this._parameterHashDict=qsDict}else{this._parameterSearchDict=qsDict}if(qsDict[param]){myValue=qsDict[param]}},getDomainName:function(){return location.hostname},getPathname:function(){return location.pathname},getProtocol:function(){var A=location.protocol;A=A.substr(0,A.length-1);return A},updateSearch:function(A){window.location.href=location.protocol+"//"+location.host+location.pathname+A+location.hash},updatePathname:function(A){window.location.href=location.protocol+"//"+location.host+A+location.search+location.hash}};