qcodo._objTimers=new Object;qcodo.clearTimeout=function(a){if(qcodo._objTimers[a]){clearTimeout(qcodo._objTimers[a]);qcodo._objTimers[a]=null}};qcodo.setTimeout=function(a,b,c){qcodo.clearTimeout(a);qcodo._objTimers[a]=setTimeout(b,c)};qcodo.handleEvent=function(a){function h(a){if(document.compatMode&&document.compatMode=="CSS1Compat"&&document.documentElement)return document.documentElement;else if(document.body)return document.body;else return a}a=a?a:typeof event=="object"?event:null;if(a){if(typeof a.clientX!="undefined"){if(qcodo.isBrowser(qcodo.SAFARI)){qcodo.mouse.x=a.clientX-window.document.body.scrollLeft;qcodo.mouse.y=a.clientY-window.document.body.scrollTop;qcodo.client.x=a.clientX-window.document.body.scrollLeft;qcodo.client.y=a.clientY-window.document.body.scrollTop}else{qcodo.mouse.x=a.clientX;qcodo.mouse.y=a.clientY;qcodo.client.x=a.clientX;qcodo.client.y=a.clientY}}if(qcodo.isBrowser(qcodo.IE)){qcodo.mouse.left=a.button&1?true:false;qcodo.mouse.right=a.button&2?true:false;qcodo.mouse.middle=a.button&4?true:false}else if(qcodo.isBrowser(qcodo.SAFARI)){qcodo.mouse.left=a.button&&!a.ctrlKey?true:false;qcodo.mouse.right=a.button&&a.ctrlKey?true:false;qcodo.mouse.middle=false}else{qcodo.mouse.left=a.button==0;qcodo.mouse.right=a.button==2;qcodo.mouse.middle=a.button==1}qcodo.key.alt=a.altKey?true:false;qcodo.key.control=a.ctrlKey?true:false;qcodo.key.shift=a.shiftKey?true:false;qcodo.key.code=a.keyCode?a.keyCode:0;if(a.originalTarget)qcodo.target=a.originalTarget;else if(a.srcElement)qcodo.target=a.srcElement;else qcodo.target=null}var b={scrollLeft:0,scrollTop:0};var c={clientWidth:0,clientHeight:0};var d="scrollLeft";var e="scrollTop";var f="clientWidth";var g="clientHeight";if(typeof this.innerHeight=="number"&&typeof this.innerWidth=="number"){c=this;f="innerWidth";g="innerHeight"}else c=h(c);if(typeof this.pageYOffset=="number"&&typeof this.pageXOffset=="number"){b=this;e="pageYOffset";d="pageXOffset"}else b=h(b);qcodo.client.width=c[f]||0;qcodo.client.height=c[g]||0;qcodo.page.width=Math.max(window.document.body.scrollWidth,qcodo.client.width);qcodo.page.height=Math.max(window.document.body.scrollHeight,qcodo.client.height);qcodo.scroll.x=b[d]||0;qcodo.scroll.y=b[e]||0;qcodo.page.x=qcodo.mouse.x+qcodo.scroll.x;qcodo.page.y=qcodo.mouse.y+qcodo.scroll.y;qcodo.scroll.width=qcodo.page.width-qcodo.client.width;qcodo.scroll.height=qcodo.page.height-qcodo.client.height;return a};qcodo.terminateEvent=function(a){a=qcodo.handleEvent(a);if(a){if(a.preventDefault)a.preventDefault();if(a.stopPropagation)a.stopPropagation();a.cancelBubble=true;a.returnValue=false}return false};qcodo.key={control:false,alt:false,shift:false,code:null};qcodo.mouse={x:0,y:0,left:false,middle:false,right:false};qcodo.client={x:null,y:null,width:null,height:null};qcodo.page={x:null,y:null,width:null,height:null};qcodo.scroll={x:window.scrollX||window.document.body?window.document.body.scrollLeft:null,y:window.scrollY||window.document.body?window.document.body.scrollTop:null,width:window.document.body?window.document.body.scrollWidth-qcodo.client.width:null,height:window.document.body?window.document.body.scrollHeight-qcodo.client.height:null}
