var message="WARNING! All content contained within this site is protected by copyright laws. Unauthorized use of our material is strictly prohibited.";

function do_err(){
    return true;
}
var onerror=do_err;

function clickIE4(){
    if (event.button==2){
        alert(message);
        return false;
    }
}

function clickNS4(e){
    if(document.layers||((document.getElementById) && (!document.all))){
        if (e.which==2||e.which==3){
            alert(message);
            return false;
        }
    }
}

if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS4
} else if ((document.all) && (!document.getElementById)){
    document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false;");
document.onselectstart=new Function("return false");

// @bug Interferes with forms. Need to find/create an updated solution.
/*
function disableselect(e){return false;} 
function reEnable(){return true;}

if(window.sidebar){
    document.onmousedown=disableselect;
    document.onclick=reEnable;
}
*/

document.ondragstart=new Function("return false;");

if(window.location.href.substring(0,4)=="file"){
    window.location="about:blank";
}

function atlpdp1(){
    for(wi=0;wi<document.all.length;wi++){
        if(document.all[wi].style.visibility!='hidden'){
            document.all[wi].style.visibility='hidden';
            document.all[wi].id='atlpdpst'
        }
    }
}
window.onbeforeprint=atlpdp1;

function atlpdp2(){
    for (wi=0; wi<document.all.length; wi++){
        if(document.all[wi].id=='atlpdpst'){
            document.all[wi].style.visibility=''
        }
    }
}
window.onafterprint=atlpdp2;

var scrolltext=" ";
var lenscrolltext=scrolltext.length;
var width=100;
var pos=1-width;
var tlp_std=150;
function do_stat(){
    pos++;
    var scroller="";
    
    if(pos == lenscrolltext){
        pos=1-width;
    }

    if(pos < 0){
        for(var i=1; i<=Math.abs(pos); i++){
            scroller=scroller+" ";
        }
        scroller=scroller+scrolltext.substring(0,width-i+1);
    } else {
        scroller=scroller+scrolltext.substring(pos,width+pos);
    }

    window.status=scroller;setTimeout("do_stat()", tlp_std);
}
do_stat();

