LMI.Urls=function(){var base=new LMI.Url(LMI.Lang.getObject("LMI.Data.baseUrl"))||'/',leadingSlash=/^\//,trailingSlash=/\/$/;function get(path,suppressSessionId,tempBase){var paramString,b=(tempBase?new LMI.Url(tempBase):base),pathUrl;if(trailingSlash.test(b.getLocation())){path=path.replace(leadingSlash,'');}else if(!leadingSlash.test(path)){path='/'+path;}
pathUrl=new LMI.Url(b.getLocation()+path);paramString=b.getParamString();if(paramString&&suppressSessionId!==true){pathUrl.paramString=paramString;}
return pathUrl.getUrl();}
return{get:get,getImg:function(img,tempBase){return get('img/',true,tempBase)+img;}};}();LMI.Init=function(){var inited=false,funcs=[],errors=[];function addFunctionError(){throw new Error('an attempt was made to add an init function after all init functions have been called');}
function addFunction(func,pri){pri=pri||50;var i=funcs.length-1;while(i>=0&&funcs[i][1]>pri){--i;}
funcs.splice(i+1,0,[func,pri]);}
function getErrors(){return errors;}
function init(){var i,len;if(inited){return;}
inited=true;for(i=0,len=funcs.length;i<len;++i){try{funcs[i][0]();}catch(e){errors.push(e);}}
funcs=null;LMI.Init.addFunction=addFunctionError;}
YAHOO.util.Event.onDOMReady(init);return{addFunction:addFunction,getErrors:getErrors};}();
