//Loading
/* Na pagina depois de body
<script> 
  if(bw.bw) document.write('<div id="divLoadCont"><table width="100%" height="100%" align="center" valign="middle"><tr><td width="100%" height="100%" align="center" valign="middle"><FONT FACE="Verdana" SIZE="2" COLOR="#000000"><B>Loading...</B></FONT></td></tr></table></div>')
</script>*/
function checkBrowser(){
  this.ver=navigator.appVersion
  this.dom=document.getElementById?1:0
  this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
  this.ie4=(document.all && !this.dom)?1:0;
  this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
  this.ns4=(document.layers && !this.dom)?1:0;
  this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5)
  return this
 }
 bw=new checkBrowser()
 function hideIt(div){
  if(bw.bw){
   div="divLoadCont"
   obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?document[div]:0; 
   obj.visibility='hidden'
  }
 }
onload=hideIt;



//Não permitir cópia
function blockError()
{return true;}
window.onerror = blockError;

function disableselect(e)
{
return false
}

function reEnable()
{
return true
}
//if IE4+
document.onselectstart=new Function ('return false')
//if NS6
if (window.sidebar)
{
document.onmousedown=disableselect
document.onclick=reEnable
}

var mensagem='Cópia não autorizada!';//protege o botao direito do mouse

function click(mouse) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(mensagem);
return false;
}
}
if (document.layers) {
if (mouse.which == 3) {
alert(mensagem);
return false;
}
}
}
/* protege | ALT - 18 | CTRL - 17 | SHIFT - 16 | */
if (document.layers) {
document.captureEvents(Event.MouseDown);//protege a tecla ALT
function keypressed(evt) {
var evt  = (evt) ? evt : ((event) ? event : null);
if((evt.keyCode == '')) {
alert('Não é permitida a utilização desse botão dentro dessa página!');
}
}
}
document.onmousedown=click;
document.onkeydown=keypressed; // -->



//sem erro
function semerro(){
return true;}
window.onerror=semerro;