if(!window.empcomlib){function core_getInstance(_0){core_require(_0);var _1;if(arguments.length>1){var _2='';for(var i=1;i<arguments.length;i++){_2+='arguments['+i+'],';}_1=eval('new window.empcomlib.libraries["'+_0+'"]('+_2.substr(0,_2.length-1)+')');}else{_1=new window.empcomlib.libraries[_0]();}return _1;};window.core_getInstance=core_getInstance;function core_getClass(_0){core_require(_0);return window.empcomlib.libraries[_0];};window.core_getClass=core_getClass;function core_getElement(_0){if(typeof _0=='string'){_0=document.getElementById(_0);}return _0;};window.core_getElement=core_getElement;function core_requireCss(_0){var _1=window.empcomlib.css;var _2;if(!_1[_0]){_2=document.createElement('LINK');_2.setAttribute("rel","stylesheet");_2.setAttribute("type","text/css");_2.setAttribute("media","all");_2.setAttribute("href",'/jsResources/css/'+_0.replace(/\./g,'_')+'.css');document.getElementsByTagName('HEAD')[0].appendChild(_2);_1[_0]=_2;}};window.core_requireCss=core_requireCss;function core_require(_0){if(!window.empcomlib.libraries[_0]){core_addCalls(_0);var _1;var _2=window.empcomlib.calls;while(_1=_2.shift()){_1();}}};window.core_require=core_require;function core_addCalls(_0){window.empcomlib.imports[_0]=true;var _1=core_toCode(core_get('/js/'+_0.replace(/\./g,'_')+'.js'),_0);if(_1){if(_1.call){window.empcomlib.calls.unshift(_1.call);delete(_1.call);}else{window.empcomlib.libraries[_0]=true;}if(_1.imports){var _2;var _3=window.empcomlib.imports;while(_2=_1.imports.shift()){if(!_3[_2]){core_addCalls(_2);}}}}};window.core_addCalls=core_addCalls;function core_toCode(_0,_1){eval('__code='+_0);var rv=__code;__code=null;return rv;};window.core_toCode=core_toCode;function core_get(_0){var _1=core_newXmlHttpRequest();if(_1){_1.open('GET',_0,false);_1.send(null);if((200==_1.status)||(304==_1.status)){return _1.responseText;}else{throw new Error('Could not get '+_0+', status '+_1.status);}}};window.core_get=core_get;function core_event(_0){if(_0&&_0._empEvent){return _0;}else{var rv=core_getInstance('dom.events.Event');rv.event=(_0||window.event);return rv;}};window.core_event=core_event;function core_addListener(_0,_1,_2){var id=core_id(_0);var _4=window.empcomlib.listeners[id];if(!_4){_4=window.empcomlib.listeners[id]={};}var _5='on'+_1;var _6=_4[_1];if(!_6){_6=_4[_1]={};if(_0[_5]){_6[0]=_0[_5];}if(_0.addEventListener){_0.addEventListener(_1,window.core_handleEvent,false);}else{_0[_5]=window.core_handleEvent;}}_6[core_id(_2)]=_2;return _0;};window.core_addListener=core_addListener;function core_closure(_0,_1,_2){if(!_2){_2=[];}return function(){return _1.apply(_0,core_finaliseArguments(_2,arguments));};};window.core_closure=core_closure;function core_simpleClosure(_0,_1){return function(){return _1.apply(_0);};};window.core_simpleClosure=core_simpleClosure;function core_finaliseArguments(_0,_1){if(_1.length){var _2;_2=_0.concat();for(var i=0;i<_1.length;i++){_2.push(_1[i]);}return _2;}return _0;};window.core_finaliseArguments=core_finaliseArguments;function core_removeListener(_0,_1,_2){try{delete(window.empcomlib.listeners[_0.__empId][_1][_2.__empId]);}catch(exc){}};window.core_removeListener=core_removeListener;function core_handleEvent(_0){var id=this.__empId;if(window.empcomlib.listeners[id]){_0=core_event(_0);var _2=window.empcomlib.listeners[id][_0.getType()];for(var i in _2){_2[i].call(this,_0);}return _0.allowDefault;}return true;};window.core_handleEvent=core_handleEvent;function core_system(){if(!window.empcomlib.system){window.empcomlib.system=core_getInstance('system.System');}return window.empcomlib.system;};window.core_system=core_system;function core_id(_0){if(!_0.__empId){_0.__empId=++window.core_id.__empId;}return _0.__empId;};window.core_id=core_id;window.core_id.__empId=0;function core_setGlobal(_0,_1){window.top.empcomlib.globals[_0]=_1;return 'window.top.empcomlib.globals.'+_0;};window.core_setGlobal=core_setGlobal;function core_newXmlHttpRequest(){var _0=false;try{if(XMLHttpRequest){_0=new XMLHttpRequest();window.core_newXmlHttpRequest=window.__core_httpRequest;}}catch(exception){try{_0=__core_newMsXmlRequest();window.core_newXmlHttpRequest=window.__core_newMsXmlRequest;}catch(otherException){try{_0=__core_newMsRequest();window.core_newXmlHttpRequest=window.__core_newMsRequest;}catch(thirdException){}}}if(!_0){window.core_newXmlHttpRequest=window.__core_noRequest;throw new Error('Sorry, your browser does not support AJAX, or your security settings prevent it.');}window.__core_httpRequest=null;window.__core_newMsXmlRequest=null;window.__core_newMsRequest=null;window.__core_noRequest=null;return _0;};window.core_newXmlHttpRequest=core_newXmlHttpRequest;function __core_newMsXmlRequest(){return new ActiveXObject("Msxml2.XMLHTTP");};window.__core_newMsXmlRequest=__core_newMsXmlRequest;function __core_newMsRequest(){return new ActiveXObject("Microsoft.XMLHTTP");};window.__core_newMsRequest=__core_newMsRequest;function __core_noRequest(){return false;};window.__core_noRequest=__core_noRequest;function __core_httpRequest(){return new XMLHttpRequest();};window.__core_httpRequest=__core_httpRequest;function system_Exception_toString(){return this.message;};window.system_Exception_toString=system_Exception_toString;function system_Exception(_0){this.message=_0;};window.system_Exception=system_Exception;system_Exception.prototype.toString=system_Exception_toString;function core_throw(_0){if(_0 instanceof String){_0=new system_Exception(_0);}throw(_0);};window.core_throw=core_throw;window.empcomlib={'libraries':{'core':true,'system.Exception':system_Exception},'imports':{'core':true,'system.Exception':true},'listeners':{},'globals':{},'css':{},'calls':[]};}