document.write('<script id="__init_script" defer="true" src="//[]"></script>');

function registerInit(callback) {
/* for Mozilla */

if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", callback, false);
}

/* for Internet Explorer */

if (document.getElementById) {
var deferScript = document.getElementById('__init_script');
if (deferScript) {
deferScript.onreadystatechange = function() {
if (this.readyState == 'complete') {
callback();
}
};

/* check whether script has already completed */
deferScript.onreadystatechange();

/* clear reference to prevent leaks in IE */
deferScript = null;
}
}

/* for other browsers */
window.onload = callback;
}

if (navigator.userAgent.indexOf('MSIE') != -1)
{
function click() {
if (event.button==2) { 
alert('Estamos felizes com a sua visita.\nQualquer dúvida, sinta-se a vontade para entrar em contato.');
return false;
}
}
document.onmousedown=click
}
else
{
	function desabilitaMenu(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}

//desabilita botão direito
function desabilitaBotaoDireito(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}

//desabilita botão direito do mouse
if ( window.Event )
document.captureEvents(Event.MOUSEUP);
if ( document.layers )
document.captureEvents(Event.MOUSEDOWN);

document.oncontextmenu = desabilitaMenu;
document.onmousedown = desabilitaBotaoDireito;
document.onmouseup = desabilitaBotaoDireito; 

}

