qcodo._objTimers=new Object();qcodo.clearTimeout=function(a){if(qcodo._objTimers[a]){clearTimeout(qcodo._objTimers[a]);qcodo._objTimers[a]=null}};qcodo.setTimeout=function(b,c,a){qcodo.clearTimeout(b);qcodo._objTimers[b]=setTimeout(c,a)};qcodo.handleEvent=function(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):((a.which)?a.which:0);if(a.originalTarget){qcodo.target=a.originalTarget}else{if(a.srcElement){qcodo.target=a.srcElement}else{qcodo.target=null}}}if(window.document.compatMode=="BackCompat"){qcodo.client.width=(qcodo.isBrowser(qcodo.SAFARI))?window.innerWidth:window.document.body.clientWidth;qcodo.client.height=(qcodo.isBrowser(qcodo.SAFARI))?window.innerHeight:window.document.body.clientHeight;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=window.scrollX||window.document.body.scrollLeft;qcodo.scroll.y=window.scrollY||window.document.body.scrollTop}else{if(qcodo.isBrowser(qcodo.SAFARI)){qcodo.client.width=window.innerWidth;qcodo.client.height=window.innerHeight;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=window.scrollX||window.document.body.scrollLeft;qcodo.scroll.y=window.scrollY||window.document.body.scrollTop}else{if(qcodo.isBrowser(qcodo.IE)){qcodo.client.width=window.document.documentElement.offsetWidth;qcodo.client.height=window.document.documentElement.offsetHeight;qcodo.page.width=Math.max(window.document.documentElement.scrollWidth,qcodo.client.width);qcodo.page.height=Math.max(window.document.documentElement.scrollHeight,qcodo.client.height);qcodo.scroll.x=window.document.documentElement.scrollLeft;qcodo.scroll.y=window.document.documentElement.scrollTop}else{if(window.scrollMaxY){qcodo.client.width=window.innerWidth-15}else{qcodo.client.width=window.innerWidth}if(window.scrollMaxX){qcodo.client.height=window.innerHeight-15}else{qcodo.client.height=window.innerHeight}qcodo.page.width=window.scrollMaxX+qcodo.client.width;qcodo.page.height=window.scrollMaxY+qcodo.client.height;qcodo.scroll.x=window.scrollX;qcodo.scroll.y=window.scrollY}}}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};
