/*
Copyright (c) 2001-2007 Enforce Internet Corporativa. All rights reserved.
Created 01.03.2007 by Vagner Franklin (http://www.enforce.com.br)
Last modified: 01.03.2007
*/

/* Adicionar aos Favoritos */

function addFavoritos(){
    var url        = "http://www.educarita.org.br";
    var title    = "Educaritá - Educando para a vida!";
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}


/* Show e Hide layers (Snippets) */

function getById( cronosID ) { return document.getElementById( cronosID ); }
function cronosID( cronosID ) { return getById( cronosID ); }
function isVisivel( cronosID ) { return getById( cronosID ).style.display == 'block'; }
function show( cronosID ) { getById( cronosID ).style.display = 'block'; }
function hide( cronosID ) { getById( cronosID ).style.display = 'none'; }

function showhide( cronosID ) { 
	if ( isVisivel(cronosID) )
			hide( cronosID );
		else
			show( cronosID );
}
function hideArray( cronosIDs ) {
	for ( i=0 ; i < cronosIDs.length ; i++ )
		hide( cronosIDs[i] );
}

function showArray( cronosIDs ) {
	for ( i=0 ; i < cronosIDs.length ; i++ )
		show( cronosIDs[i] );
}

function hideObject( cronosID ) {
	cronosID.style.display = 'none';
}

function showObject( cronosID ) {
	cronosID.style.display = 'block';
}





/* Desabilitar clique no direito

function disableRightClick(e) {
  var message = "O sistema não permite a utilização deste botão por medidas de segurança.\nDesculpe pelo inconceniente";
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}
disableRightClick();

*/
