function mUnsel(n){if(n.nodeType==1)
n.unselectable=true;var c=n.firstChild;while(c){mUnsel(c);c=c.nextSibling;}}
function dSel(t){if(typeof t.onselectstart!="undefined")
t.onselectstart=function(){return false;};else if(typeof t.style.MozUserSelect!="undefined")
t.style.MozUserSelect="none";else t.onmousedown=function(){return false;};t.style.cursor="default";}
function dCtx(t){t.oncontextmenu=function(){return false;};}
function hMouse(e){var evt=(e==null?event:e);if(evt.type!='mousedown')return true;if(evt.which&&evt.which==3)return false;else if(evt.button&&evt.button==2)return false;return true;}
document.onmousedown=hMouse;document.onmouseup=hMouse;document.onclick=hMouse;
