if (window.Event) // Only Netscape will have the CAPITAL E.
 document.captureEvents(Event.MOUSEUP); // catch the mouse up event

function nocontextmenu()  // this function only applies to IE4, ignored otherwise.
{
 event.cancelBubble = true
 event.returnValue = false;

 return false;
}

function norightclick(e) // This function is used by all others
{
 if (window.Event) // again, IE or NAV?
 {
  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;
  }

}

document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown = norightclick;  // for all others


function snapIn(jumpSpaces,position) {                
	var msg = "Identisul - Solução em Identificação"        
	var out = "Identisul - Solução em Identificação"      
        if (killScroll) {return false}        
	for (var i=0; i<position; i++){
		out += msg.charAt(i)}        
	for (i=1;i<jumpSpaces;i++) {
		out += " "}        
	out += msg.charAt(position)        
	window.status = out        
	if (jumpSpaces <= 1) {        
		position++        
	if (msg.charAt(position) == ' ') {
		position++ }
	        jumpSpaces = 100-position        
	} 
	else if (jumpSpaces >  3) {
		jumpSpaces *= .75}        
	else {
		jumpSpaces--}        
	if (position != msg.length) {        
		var cmd = "snapIn(" + jumpSpaces + "," + position + ")";        
		scrollID = window.setTimeout(cmd,5);        
	} 
	else {        
		scrolling = false
        	return false         
	}        
	return true
}
function snapSetup() {        
	if (scrolling)           
	if (!confirm('Re-initialize snapIn?'))        
	return false   
	killScroll = true  
        scrolling = true   
	var killID = window.setTimeout('killScroll=false',6)        
	scrollID = window.setTimeout('snapIn(100,0)',10)        
	return true    
}
        var scrollID = Object
        var scrolling = false        
	var killScroll = false

var janela_n = 0;
function openIT(url,janela){
	janela_n++; // ou, se vc preferir:   janela_n = janela_n + 1;
	lleft = 100+janela_n*20;
    ttop = 50+janela_n*20;
	parametros   = 'width=750,height=500,scrollbars=yes,resizeable=no,status=no,';
	parametros += 'top=' + ttop + ',';
    parametros += 'left=' + lleft;
    window.open(url,janela,parametros);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function fotos(url,janela){
	janela_n++; // ou, se vc preferir:   janela_n = janela_n + 1;
	lleft = 100+janela_n*20;
    ttop = 50+janela_n*20;
	parametros   = 'width=630,height=400,scrollbars=no,resizeable=no,status=no,';
	parametros += 'top=' + ttop + ',';
    parametros += 'left=' + lleft;
    window.open(url,janela,parametros);
}