// dgTools library by Daniel Cohen Gindi (danielgindi@gmail.com) 054-5655765
// version 2010-11-14
$isElement=function(a){return a&&a.nodeType==1};$isArray=function(a){return a!=null&&typeof a=="object"&&"splice" in a&&"join" in a};$isFunction=function(a){return typeof a=="function"};$isString=function(a){return typeof a=="string"};$isNumber=function(a){return typeof a=="number"};Array.prototype.iterate=function(c,d){for(var b=0,a=this.length;b<a;b++){if(d){c.call(d,this[b],b,this)}else{c(this[b],b)}}};Array.fromElement=function(d){var a=[];for(var c=0,b=d.length;c<b;c++){a[c]=d[c]}return a};Array.prototype.indexOf=function(c,d){var a=this.length;for(var b=(d<0)?Math.max(0,a+d):d||0;b<a;b++){if(this[b]===c){return b}}return -1};Array.prototype.contains=function(a,b){return this.indexOf(a,b)!=-1};Array.prototype.copy=function(d,c){d=d||0;if(d<0){d=this.length+d}c=c||(this.length-d);var a=[];for(var b=0;b<c;b++){a[b]=this[d++]}return a};Array.prototype.remove=function(c){var b=0,a=this.length;while(b<a){if(this[b]===c){this.splice(b,1);a--}else{b++}}return this};Function.prototype.bind=function(c,a){var b=this;return function(){return b.apply(c,a||arguments)}};String.prototype.escapeForJs=function(){if(this===undefined||this===null){return""}else{return this.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\"/g,'\\"').replace(/\r/g,"\\r").replace(/\n/g,"\\n")}};String.prototype.validateEmail=function(){return !!this.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9]{1,}$/i)};String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};String.prototype.camelize=function(){var d=this.split("-"),a=d.length;if(a==1){return d[0]}var c=this.charAt(0)=="-"?d[0].charAt(0).toUpperCase()+d[0].substring(1):d[0];for(var b=1;b<a;b++){c+=d[b].charAt(0).toUpperCase()+d[b].substring(1)}return c};Number.prototype.abs=function(){return Math.abs(this)};Number.prototype.round=function(){return Math.round(this)};Number.prototype.ceil=function(){return Math.ceil(this)};Number.prototype.floor=function(){return Math.floor(this)};Number.prototype.toPaddedString=function(e,d){var b=this.toString(d||10);var f="";var a=e-b.length;for(var c=0;c<a;c++){f+="0"}return f+b};if(window.ActiveXObject){if(navigator.appVersion.indexOf("MSIE 8.0")>=0){window.ie=window.ie8=8}else{if(navigator.appVersion.indexOf("MSIE 7.0")>=0){window.ie=window.ie7=7}else{if(navigator.appVersion.indexOf("MSIE 6.5")>=0){window.ie=window.ie6=6.5}else{if(navigator.appVersion.indexOf("MSIE 6.0")>=0){window.ie=window.ie6=6}else{if(navigator.appVersion.indexOf("MSIE 5.5")>=0){window.ie=window.ie5=5.5}else{if(navigator.appVersion.indexOf("MSIE 5.0")>=0){window.ie=window.ie5=5}else{if(navigator.appVersion.indexOf("MSIE 4.0")>=0){window.ie=window.ie4=4}else{if(document.all&&document.getElementById){window.ie=window.ie5=5}else{window.ie=window.ie4=4}}}}}}}}}window.Opera=!!window.opera;window.Gecko=navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1;window.WebKit=navigator.userAgent.indexOf("AppleWebKit/")>-1;window.MobileSafari=!!navigator.userAgent.match(/Apple.*Mobile.*Safari/);window.getClientHeight=function(){return((document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:((document.body&&document.body.clientHeight)?document.body.clientHeight:window.innerHeight))};window.getClientWidth=function(){return((document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:((document.body&&document.body.clientWidth)?document.body.clientWidth:window.innerWidth))};window.getClientScrollHeight=function(){return((document.documentElement&&document.documentElement.scrollHeight)?document.documentElement.scrollHeight:((document.body&&document.body.scrollHeight)?document.body.scrollHeight:window.scrollHeight))};window.getClientScrollWidth=function(){return((document.documentElement&&document.documentElement.scrollWidth)?document.documentElement.scrollWidth:((document.body&&document.body.scrollWidth)?document.body.scrollWidth:window.scrollWidth))};window.getScrollOffsets=function(){var a=[window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop];a.left=a[0];a.top=a[1];return a};var dgTools={$:function(b){if(arguments.length>1){for(var a=0,d=[],c=arguments.length;a<c;a++){d.push(dgTools.$(arguments[a]))}return d}else{if(!b){return null}}if(b&&b.nodeType==1){return b}if(typeof b=="string"){return document.getElementById?document.getElementById(b):(document.layers?document.layers[b]:document.all[b])}return null},observe:function(d,c,e,b){if(d==null){return}if(c.indexOf("dom:",0)==0){function a(g){var f=g||event;if(c==f.eventName){e(f)}}if(d.addEventListener){d.addEventListener("dataavailable",a,b?true:false)}else{if(d.attachEvent){d.attachEvent("ondataavailable",a)}}}else{if(d.addEventListener){d.addEventListener(c,e,b?true:false)}else{if(d.attachEvent){d.attachEvent("on"+c,e)}}}return e},unobserve:function(c,b,d,a){if(c==null){return}if(c.removeEventListener){c.removeEventListener(b,d,a?true:false)}else{if(c.detachEvent){c.detachEvent("on"+b,d)}}},fire:function(b,a){if(b==document&&document.createEvent&&!b.dispatchEvent){b=document.documentel}var c;if(document.createEvent){c=document.createEvent("HTMLEvents");c.initEvent("dataavailable",true,true)}else{c=document.createEventObject();c.eventType="ondataavailable"}c.eventName=a;if(document.createEvent){b.dispatchEvent(c)}else{b.fireEvent(c.eventType,c)}return c},extend:function(c,d,f,a){if(typeof d=="string"){d=d.split(" ")}var e;for(var b=0;b<d.length;b++){e=d[b];if(f&&f[e]!==undefined){c[e]=f[e]}else{if(a&&a[e]!==undefined){c[e]=a[e]}}}return c},easyAnimate:function(c,g,a,d,r,p){var t={ended:false};if(!g){if(r){r()}t.ended=true;t.stop=function(){return true};return t}t.stop=function(){q()};t.end=function(){n()};if(!p){p=dgTools.Transitions.sinoidal}else{if(typeof p==typeof""){p=dgTools.Transitions[p]}}if(typeof p!="function"){p=dgTools.Transitions.sinoidal}var l=this;var k=new Date().getTime();var e=k+a;var b=[];var o=[];var m=[];var s=[];for(var j in g){if(j=="left"||j=="top"||j=="width"||j=="height"){b.push(j);o[j]=parseInt(dgTools.Elm.getRenderedStyle(c,j),10);m[j]=g[j];s[j]="px";if((j=="width"||j=="height")&&dgTools.Elm.getRenderedStyle(c,"display")=="inline"){c.display="inline-block;"}}}var i=Math.floor(1000/(d||40));function h(){var x=new Date().getTime();var y,w,u;for(var v=0;v<b.length;v++){u=b[v];if(x<e){y=p((x-k)/a);w=o[u]+((m[u]-o[u])*y);c.style[u]=w+s[u];if(f!==null){setTimeout(h,i)}}else{c.style[u]=m[u]+s[u];if(r){r(l)}}}}function n(){e=k}function q(){if(f){clearTimeout(f)}f=null}var f=setTimeout(h,i);return t}};if(window["$"]==null){$=dgTools.$}dgTools.ajax={$:dgTools.$,loadScriptFromUrl:function(url,uniqueName,useCounter){var scriptTag=null;var headTag=document.getElementsByTagName("head")[0];if(uniqueName){var newCounter=false;uniqueName="$ajax_load_"+uniqueName;scriptTag=dgTools.$(uniqueName);if(scriptTag){headTag.removeChild(scriptTag)}else{newCounter=true}scriptTag=document.createElement("script");scriptTag.id=uniqueName;if(useCounter){uniqueName+="_counter$";var counter;if(newCounter){counter=0}else{counter=eval(uniqueName)}counter++;eval(uniqueName+"="+counter);if(url.indexOf("?")>=0){url+="&_counter$="+counter}else{url+="?_counter$="+counter}}}else{scriptTag=document.createElement("script")}headTag.appendChild(scriptTag);delete headTag;scriptTag.src=url},parseXmlString:function(a){var b=null;if(window.ActiveXObject){try{b=new ActiveXObject("Microsoft.XMLDOM");b.async=false;b.loadXML(a)}catch(c){}}else{if(DOMParser){var d=new DOMParser();b=d.parseFromString(a,"application/xml")}}if(b&&b.documentElement){return b.documentElement}},parseXmlFile:function(a){var b=null;if(window.ActiveXObject){try{b=new ActiveXObject("Microsoft.XMLDOM")}catch(c){try{b=document.implementation.createDocument("","",null)}catch(c){}}}b.async=false;b.load(a);if(b&&b.documentElement){return b.documentElement}},loadUrl:function(b,g,a){var c=!!g;var f=null;if(!window.ie||location.protocol!="file:"){try{f=new XMLHttpRequest()}catch(d){}}if(f==null){try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){}}if(f==null){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}}if(!f){return null}f.open("GET",b,c);if(c){f.onreadystatechange=function(){if(f.readyState==4){g(a(f));f=null}}}try{f.send(null)}catch(d){return null}return c?"":a(f)},loadUrlText:function(a,c){var b=function(d){if(dgTools.ajax.loadUrl.checkStatus(d)){return d.responseText}return null};return dgTools.ajax.loadUrl(a,c,b)},loadUrlXml:function(a,c){var b=function(e){if(dgTools.ajax.loadUrl.checkStatus(e)){var d=e.responseXML;return(d&&d.firstChild)?d:dgTools.ajax.parseXmlString(e.responseText)}return null};return dgTools.ajax.loadUrl(a,c,b)},loadImage:function(c,e){var d=document.createElement("img");var b=function(f){dgTools.unobserve(d,"load",b,false);dgTools.unobserve(d,"error",a,false);if(e!=null){e(true,c,d)}};var a=function(f){dgTools.unobserve(d,"load",b,false);dgTools.unobserve(d,"error",a,false);if(e!=null){e(false,c,d)}};dgTools.observe(d,"load",b,false);dgTools.observe(d,"error",a,false);d.src=c;delete d,b,a}};dgTools.ajax.loadUrl.checkStatus=function(a){return(a.readyState==4&&((a.status>=200&&a.status<300)||a.status==304||a.status===0||a.status==1223))};var ajax=dgTools.ajax;dgTools.Io={getFileName:function(d,c){var a=d.replace(/^.*[\/\\]/g,"");if(typeof(c)=="string"&&a.substr(a.length-c.length)==c){a=a.substr(0,a.length-c.length)}return a},getBasePath:function(b){var a=b.indexOf("?");if(a==-1){a=b.length}a=b.lastIndexOf("/",a);if(a==-1){return"/"}return b.substr(0,a+1)},isAbsolutePath:function(b){var a=b.indexOf("?");if(a==-1){a=b.length}a=b.lastIndexOf("://",a);if(a==-1){return false}return true},findScriptPath:function(c){scriptEls=document.getElementsByTagName("script");for(var a=0;a<scriptEls.length;a++){if(this.getFileName(scriptEls[a].src)==c){var b=scriptEls[a].src.substring(0,scriptEls[a].src.lastIndexOf("/")+1);if("https:"==document.location.protocol&&!this.isAbsolutePath(b)){if(b.Length>0&&b[0]=="/"){b="https://"+document.location.hostname+b}else{b="https://"+document.location.hostname+this.getBasePath(document.location.pathname)+b}}return b}}return""}};dgTools.Browser={preventBack:function(){function a(){window.history.forward()}setTimeout(a,0);dgTools.observe(window,"unload",function(){null})},isChrome:function(){return document.getElementById&&navigator.appVersion.indexOf("Chrome")>=0},winPopup:function(c,e,b,d,g){if(d==undefined||d==null){d=""}var a=window.open("",d,config="height="+b+",width="+e+",resizable=no,toolbars=no,address=no,status=no,menubar=no,location=no,toolbar=no,scrollbars=no");try{if(g==true){a.document.close();a.document.open()}}catch(f){}a.document.location=c;a.window.focus();return a},simulateInnerAnchorClick:function(b,c){for(var a=0;a<c;a++){if(a<c&&!b.firstChild){return}else{if(a==c&&!b.href){return}}if(a<c){b=b.firstChild}}if(b.href){if(b.target&&b.target.length>0){window.open(b.href,b.target)}else{document.location=b.href}return false}}};dgTools.Transitions={linear:function(a){return a},sinoidal:function(a){return(-Math.cos(a*Math.PI)/2)+0.5},swing:function(a){return(-Math.cos(a*Math.PI)/2)+0.5},reverse:function(a){return 1-a},flicker:function(a){a=((-Math.cos(a*Math.PI)/4)+0.75)+Math.random()/4;return a>1?1:a},wobble:function(a){return(-Math.cos(a*Math.PI*(9*a))/2)+0.5},pulse:function(a,b){b=b||5;return(((a%(1/b))*b).round()==0?((a*b*2)-(a*b*2).floor()):1-((a*b*2)-(a*b*2).floor()))},spring:function(a){return 1-(Math.cos(a*4.5*Math.PI)*Math.exp(-a*6))},none:function(a){return 0},full:function(a){return 1}};dgTools.Elm={hasClassName:function(c,b){var a=c.className;return(a.length>0&&(a==b||new RegExp("(^|\\s)"+b+"(\\s|$)").test(a)))},addClassName:function(b,a){if(!this.hasClassName(b,a)){b.className+=(b.className?" ":"")+a}return b},removeClassName:function(b,a){b.className=b.className.replace(new RegExp("(^|\\s+)"+a+"(\\s+|$)")," ").trim();return b},forceRerendering:function(a){try{var c=document.createTextNode(" ");a.appendChild(c);a.removeChild(c)}catch(b){}return a},offset:function(c){if(c.pageX){return[c.pageLeft,c.pageTop]}else{var a=0,b=0;while(c){a+=c.offsetLeft;b+=c.offsetTop;c=c.offsetParent}return[a,b]}},width:function(a){return dgTools.Elm.clientWidth(a)},height:function(a){return dgTools.Elm.clientHeight(a)},clientHeight:function(b){var a=null;if(b.clientHeight){a=b.clientHeight}if(a===null&&b.offsetHeight){a=b.offsetHeight}if(a===null&&b.document&&b.document.height){a=b.document.height}if(a===null&&b.style.height){a=b.style.height}if(a===null&&b.height){a=b.height}if(a){return parseInt(a,10)}if(b.parentNode){return dgTools.Elm.clientHeight(b.parentNode)}return null},totalHeight:function(b){var a=null;if(b.offsetHeight){a=b.offsetHeight}if(a===null&&b.clientHeight){a=b.clientHeight}if(a===null&&b.document&&b.document.height){a=b.document.height}if(a===null&&b.style.height){a=b.style.height}if(a===null&&b.height){a=b.height}if(a){return parseInt(a,10)}if(b.parentNode){return dgTools.Elm.totalHeight(b.parentNode)}return null},clientWidth:function(b){var a=null;if(b.clientWidth){a=b.clientWidth}if(a===null&&b.offsetWidth){a=b.offsetWidth}if(a===null&&b.document&&b.document.width){a=b.document.width}if(a===null&&b.style.width){a=b.style.width}if(a===null&&b.width){a=b.width}if(a){return parseInt(a,10)}if(b.parentNode){return dgTools.Elm.clientWidth(b.parentNode)}return null},totalWidth:function(b){var a=null;if(b.offsetWidth){a=b.offsetWidth}if(a===null&&b.clientWidth){a=b.clientWidth}if(a===null&&b.document&&b.document.width){a=b.document.width}if(a===null&&b.style.width){a=b.style.width}if(a===null&&b.width){a=b.width}if(a){return parseInt(a,10)}if(b.parentNode){return dgTools.Elm.totalWidth(b.parentNode)}return null},getRenderedStyle:function(a,b){var c="";if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b)}else{if(a.currentStyle){b=b.replace(/\-(\w)/g,function(d,e){return e.toUpperCase()});c=a.currentStyle[b]}}return c},setOpacity:function(c,a){a=parseFloat(a);a=(a<0.00001)?0:a;if(window.ie){if(a>=1&&c.style.filter.match(/alpha\(\s*opacity\s*=\s*(.*)\s*\)/)){var b=document.createElement("div");c.style.filter=b.style.filter;delete b}else{c.style.filter=c.style.filter.replace(/alpha\([^\)]*\)/gi,"")+((a==1)?"":("alpha(opacity="+(a*100)+")"))}}if(a==1){a=""}c.style.opacity=a;c.style.MozOpacity=a;c.style.KhtmlOpacity=a;return this},getOpacity:function(a){if(a.style.opacity){return parseFloat(a.style.opacity)}else{if(a.style.MozOpacity){return parseFloat(a.style.MozOpacity)}else{if(a.style.KhtmlOpacity){return parseFloat(a.style.KhtmlOpacity)}else{if(a.style.filter){var b;if(b=a.style.filter.match(/alpha\(opacity=(.*)\)/)){if(b[1]){return parseFloat(b[1])/100}}}}}}return 1},hasChild:function(c,d){var b=c.getElementsByTagName("*");for(var a=0;a<b.length;a++){if(b[a]==d){return true}}return false},setText:function(a,b){if(a){if(a.textContent!=undefined){a.textContent=b}else{if(a.innerText!=undefined){a.innerText=b}else{a.value=b}}}},clearFileInputField:function(b){b=dgTools.$(b);try{b.setAttribute("type","text");b.setAttribute("type","file");return b}catch(f){var e=b;var d=e.nextSibling;var c=e.parentNode;var a;a=e.cloneNode();c.removeChild(e);if(d){c.insertBefore(a,d)}else{c.appendChild(a)}return a}},hideSelectsIe6:function(c){if(!window.ie6){return false}if(c){var b=document.documentElement.getElementsByTagName("select");var d=[];for(var a=0;a<b.length;a++){d.push([b[a],b[a].style.visibility]);b[a].style.visibility="hidden"}dgTools.Elm.hideSelectsIe6.hidden=d}else{var d=dgTools.Elm.hideSelectsIe6.hidden||[];for(var a=0;a<d.length;a++){d[a][0].style.visibility=d[a][1];delete d[a]}delete d;delete dgTools.Elm.hideSelectsIe6.hidden}},build:function(n,l){var f=document.createElement(n);if(l){var a;for(var e=0;e<l.length;e+=2){var g=l[e];if(g=="className"||g=="class"){f.className=l[e+1]}else{if(g=="innerHTML"){f.innerHTML=l[e+1]}else{if(g=="innerText"||g=="textContent"){dgTools.Elm.setText(f,l[e+1])}else{if(g=="onclick"){f.onclick=new Function(l[e+1])}else{if(g=="onfocus"){f.onfocus=new Function(l[e+1])}else{if(g=="onblur"){f.onblur=new Function(l[e+1])}else{if(g=="onsubmit"){f.onsubmit=new Function(l[e+1])}else{if(g=="onkeyup"){f.onkeyup=new Function(l[e+1])}else{if(g=="style"){var m=l[e+1].split(";");for(var b=0;b<m.length;b++){var c=m[b].indexOf(":");if(c>-1){var i=m[b].substr(0,c).trim();var h=m[b].substr(c+1).trim();if(i.length>0){f.style[i]=h}}}}else{f.setAttribute(g,l[e+1])}}}}}}}}}}}return f}};dgTools.Tables={clear:function(a){while(a.childNodes.length){a.removeChild(a.childNodes[0])}},clearArea:function(c,d){for(var a=0;a<c.childNodes.length;a++){if(c.childNodes[a].nodeName.toLowerCase()==d.toString().toLowerCase()){var b=c.childNodes[a];while(b.childNodes.length){b.removeChild(b.firstChild)}}}},removeArea:function(b,c){for(var a=0;a<b.childNodes.length;a++){if(b.childNodes[a].nodeName.toLowerCase()==c.toString().toLowerCase()){b.removeChild(b.childNodes[a]);a--}}},removeRows:function(a){while(a.rows.length){a.deleteRow(0)}}};dgTools.Cookies={save:function(d,c,a){if(a){var b=new Date();b.setTime(b.getTime()+(parseInt(a,10)*(24*60*60*1000)));a=b.toUTCString()}else{a=null}document.cookie=d+"="+escape(c)+"; path=/"+((a==null)?"":"; expires="+a)},read:function(b){var a=document.cookie;b=b+"=";if(a.length>0){begin=a.indexOf(b);if(begin!=-1){begin+=b.length;end=a.indexOf(";",begin);if(end==-1){end=a.length}return unescape(a.substring(begin,end))}}return null}};dgTools.Event=function(){return this.init.apply(this,arguments)};dgTools.Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3){this.relatedTarget=this.relatedTarget.parentNode}},relatedTargetGecko:function(){try{dgTools.Event.fix.relatedTarget.call(this)}catch(a){this.relatedTarget=this.target}}};dgTools.Event.Keys={enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46};dgTools.Event.prototype={init:function(c){if(c&&c.$extended){return c}this.$extended=true;c=c||window.event;this.event=c;this.type=c.type;this.target=c.target||c.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode}this.shift=c.shiftKey;this.control=c.ctrlKey;this.alt=c.altKey;this.meta=c.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(c.wheelDelta)?c.wheelDelta/120:-(c.detail||0)/3}else{if(this.type.indexOf("key")>-1){this.code=c.which||c.keyCode;for(var b in dgTools.Event.Keys){if(dgTools.Event.Keys[b]==this.code){this.key=b;break}}if(this.type=="keydown"){var a=this.code-111;if(a>0&&a<13){this.key="f"+a}}this.key=this.key||String.fromCharCode(this.code).toLowerCase()}else{if(/(click|mouse|menu)/.test(this.type)){this.page={x:c.pageX||c.clientX+document.documentElement.scrollLeft,y:c.pageY||c.clientY+document.documentElement.scrollTop};this.client={x:c.pageX?c.pageX-window.pageXOffset:c.clientX,y:c.pageY?c.pageY-window.pageYOffset:c.clientY};this.rightClick=(c.which==3)||(c.button==2);switch(this.type){case"mouseover":this.relatedTarget=c.relatedTarget||c.fromElement;break;case"mouseout":this.relatedTarget=c.relatedTarget||c.toElement}this.fixRelatedTarget()}}}return this},stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this},fixRelatedTarget:(window.Gecko)?dgTools.Event.fix.relatedTargetGecko:dgTools.Event.fix.relatedTarget};(function(){var d;function b(){if(document.$domOnLoadFired){return}if(d){window.clearInterval(d)}document.$domOnLoadFired=true;document.isDomLoaded=true;dgTools.fire(document,"dom:onLoad")}if(document.addEventListener){if(window.webkit){d=window.setInterval(function(){if(/loaded|complete/.test(document.readyState)){b()}},0);dgTools.observe(window,"load",b,false)}else{document.addEventListener("DOMContentLoaded",b,false)}}else{document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>");var a=dgTools.$("__onDOMContentLoaded");function c(){if(a.readyState=="complete"){dgTools.unobserve(a,"readystatechange",c);b()}}dgTools.observe(a,"readystatechange",c)}})();ajax.layout=dgTools.Elm;ajax.browser=dgTools.Browser;ajax.tables=dgTools.Table;ajax.cookies=dgTools.Cookies;ajax.events={register:dgTools.observe,unregister:dgTools.unobserve,fire:dgTools.fire,Event:dgTools.Event};ajax.findScriptPath=dgTools.Io.findScriptPath;ajax.getFileName=dgTools.Io.getFileName;
