//if (copiaFechada==undefined) {var copiaFechada = false;}
//var copiaFechada = true;

var message = "Prezado leitor, \n\n Os textos de minha autoria só podem ser reproduzidos para uso pessoal. \n\n NÃO PODEM ser copiados em outros sites ou blogs. Se você fizer isso estará me prejudicando. \n\n Ainda assim você pode imprimí-los, enviá-los para amigos, linká-los em seu blog/site e compartilhá-los em diretórios. \n\n Se você não resistir, lembre-se ao menos de citar a fonte com um link apontando para este site. \n\n Obrigado pela compreensão."; 

function copyright (){
  alert(message);
  //if (copiaFechada) return false;
}

// exibe a mensagem de alerta ao dar ctrl-c ou 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=='C'){
	        alert(message);
    	//    if (copiaFechada) return false;
  		}
  	}
  }
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}
function addBookmark(title, url){
if (document.all) window.external.AddFavorite(url, title); 
else if (window.sidebar) window.sidebar.addPanel(title, url, "") 
}

function printPage() {
print(document); 
}
function mostra_layer2(){
	document.getElementById('layer2').style.visibility = "visible";
}
function fecha_layers(){
	document.getElementById('layer2').style.visibility = "hidden";
}


	startList = function() {
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	node.onmouseover=function() {
	this.className+=" over";
	  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	   }
	   }
	  }
	 }
	}
	window.onload=startList;
