if (copiaFechada==undefined) {
	var copiaFechada = false;
	}
//var copiaFechada = true;

if (copiaFechada) {
  var message = "Obrigado pelo seu interesse em nosso conteúdo.\nSe for publicá-lo não esqueça de citar a fonte.";
}
else {
  var message = "Obrigado pelo seu interesse em nosso conteúdo.\nSe for publicá-lo não esqueça de citar a fonte.";

}
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 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 Internet Explorer
	/*@cc_on @*/
	/*@if (@_win32)
	document.write("<scr"+"ipt id=__ie_onload defer src=javascript:void(0)><\/scr"+"ipt>");
	var script = document.getElementById("__ie_onload");
	script.onreadystatechange = function() {
	if (this.readyState == "complete") {
		init(); // call the onload handler
	}
	};
	/*@end @*/
	// 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);
}
