var HPT_isIE4=false;var HPT_isNS4=false;if(document.layers)
HPT_isNS4=true;if(document.all&&!document.getElementById)
HPT_isIE4=true;function HPT_ClickIE4(){if(event.button==(0x84f+2811-0x1348)){
return false;}}function HPT_ClickNS4(AU3958){if(document.layers||document.
getElementById&&!document.all){if(AU3958.which==(0xce9+4360-0x1def)||AU3958.
which==(0x1226+3379-0x1f56)){return false;}}}function HPT_Test(){return true;}
function HPT_ReturnFalse(AU3958){return false;}function HPT_ReturnTrue(){return 
true;}function HPT_HidePrint(){for(AU1f8a=(0xb28+4153-0x1b61);AU1f8a<document.
all.length;AU1f8a++)
{if(document.all[AU1f8a].style.visibility!="hidden")
{document.all[AU1f8a].style.visibility="hidden";document.all[AU1f8a].id="bPrint"
;}}}function HPT_ShowPrint(){for(AU1f8a=(0x16df+2187-0x1f6a);AU1f8a<document.all
.length;AU1f8a++)
{if(document.all[AU1f8a].id=="bPrint")document.all[AU1f8a].style.visibility="";}
}function HPT_CopyNothing()
{document.getElementById("copiedNothing").createTextRange().execCommand("Copy");
setTimeout("HPT_CopyNothing()",(0xe7a+3640-0x1b86))
}function HPT_HideStatus(){window.status='';return true;}function 
HPT_DisableDragAndDrop()
{document.ondragstart=HPT_ReturnFalse;}function HPT_DisableStatusLinks()
{if(HPT_isNS4)
document.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT);document.onmouseover=
HPT_HideStatus;document.onmouseout=HPT_HideStatus;}function HPT_DisableClipBoard
()
{if(HPT_isIE4)
HPT_CopyNothing();}function HPT_DisablePagePrinting()
{window.onbeforeprint=HPT_HidePrint;window.onafterprint=HPT_ShowPrint;}function 
HPT_DisableTextSelection()
{document.onselectstart=new Function("return false");if(window.sidebar)
{document.onmousedown=HPT_ReturnFalse;document.onclick=HPT_ReturnTrue;}}function
 HPT_DisableRightClick()
{if(HPT_isNS4){document.captureEvents(Event.MOUSEDOWN);;document.onmousedown=
HPT_ClickNS4;}else if(HPT_isIE4)
document.onmousedown=HPT_ClickIE4;;document.oncontextmenu=new Function(
"return false");}

var omitformtags = ["input", "textarea", "select"]

function disableselect(e) {
    for (i = 0; i < omitformtags.length; i++)
        if (omitformtags[i] == (e.target.tagName.toLowerCase()))
        return;
    return false
}

function reEnable() {
    return true
}

function noSelect() {
    if (typeof document.onselectstart != "undefined") {
        document.onselectstart = new Function("return false")
        if (document.getElementsByTagName) {
            tags = document.getElementsByTagName('*')
            for (j = 0; j < tags.length; j++) {
                for (i = 0; i < omitformtags.length; i++)
                    if (tags[j].tagName.toLowerCase() == omitformtags[i]) {
                    tags[j].onselectstart = function() {
                        document.onselectstart = new Function('return true')
                    }
                    if (tags[j].onmouseup !== null) {
                        var mUp = tags[j].onmouseup.toString()
                        mUp = 'document.onselectstart=new Function (\'return false\');\n' + mUp.substr(mUp.indexOf('{') + 2, mUp.lastIndexOf('}') - mUp.indexOf('{') - 3);
                        tags[j].onmouseup = new Function(mUp);
                    }
                    else {
                        tags[j].onmouseup = function() {
                            document.onselectstart = new Function('return false')
                        }
                    }
                }
            }
        }
    }
    else {
        document.onmousedown = disableselect
        document.onmouseup = reEnable
    }
}
