var message="\nRequinte Toalhas.      \n\nTodos os direitos reservados.\n\n";

function direitosautorais(){

  // DESCOMENTAR AS DUAS LINHAS ABAIXO AO SUBIR O SCRIPT PARA PRODUÇÃO!!!

  alert(message);

  event.returnValue=false;

}



// desabilita ctrl-c e ctrl-a em browsers não-IE

if ((document.getElementById || document.layers) && (!document.all)) {

  document.onkeypress = function (evt) {

    var r = '';

    var ctrl = 0;

    

    if (document.getElementById && (!document.all)) {

      ctrl = evt.ctrlKey;

    }

    else if (document.layers) {

      ctrl = Event.CONTROL_MASK;

    } 

    r = String.fromCharCode(evt.which).toUpperCase();    

    if (ctrl){

    	if (r=='A'||r=='C'){

  		alert(message);

  		return false;

  		}

  	}

  }

}



function addEvent(func) {

	if (!window.__load_events) {

		var init = function ()

		{

			if (arguments.callee.done) return;

			arguments.callee.done = true;

			if (window.__load_timer)

			{

				clearInterval(window.__load_timer);

				window.__load_timer = null;

			}

			for (var i=0;i < window.__load_events.length;i++)

			{

				window.__load_events[i]();

			}

			window.__load_events = null;

		};

	if (document.addEventListener){

		document.addEventListener("DOMContentLoaded", init, false);

	}

	// for Safari

	if (/KHTML|WebKit/i.test(navigator.userAgent)) { // sniff

		window.__load_timer = setInterval(function() {

			if (/loaded|complete/.test(document.readyState)) {

				init(); // call the onload handler

			}

		}, 10);

	}

	window.onload = init;

	window.__load_events = [];

	}

	window.__load_events.push(func);

}



function cleanupNS(){

  txt=document.getSelection();

  if(txt!=''){

    document.getElementById('nope').focus();

  }

  setTimeout("cleanupNS()",250);

}



function cleanupIE(){

  clipboardData.clearData();

  setTimeout("cleanupIE()",500);

}



function click(e){

  if (navigator.appName=="Microsoft Internet Explorer"){

    if (event.button == 2){

      alert(message);

      return false;

    }

  }    

  if (navigator.appName=="Netscape"){

    if (e.which == 3 || (e.modifiers && Event.CONTROL_MASK)){

      alert(message);

      return false;

    }

  }    

}



function BloqueiaImagens(){

  for(imagem=0; imagem<document.images.length; imagem++){

    document.images[imagem].onmousedown=click;

  }

}



if(navigator.appName=='Netscape'){

  cleanupNS();

  document.captureEvents(Event.mousedown|Event.keydown);

}else{

//  cleanupIE();

  document.body.oncopy=direitosautorais;

  document.body.onload=BloqueiaImagens;

}


