function addfav(a,b)
{
window.external.AddFavorite(a,b)
}
	
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) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function alt_obj(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

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 ShowHide(id1, id2, id3)
{
	var res = expMenu(id1, id2, id3);
//	if (id2 != '') expMenu(id2,id3);
}

function pop2 (urlopop, nome) {
	var janela = null
    janela=window.open(urlopop,nome,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no, left=130, top=130');
}

function expMenu(id,nomeimg,acaofc)
{
	var itm = null;
	if (document.getElementById)
	{
		itm = document.getElementById(id);
	}
	else if (document.all)
	{
		itm = document.all[id];
	}
	else if (document.layers)
	{
		itm = document.layers[id];
	}
	if (!itm)
	{
		// do nothing
	}
	else if (itm.style)
	{
	parte = id.substring(0, 4);
	
			
			if (itm.style.display == "none")
			{
				itm.style.display = "";
				return 1;
			}
		
			if (itm.style.display == "")
			{
				
				
				if (nomeimg != "N")
				{			
				itm.style.display = "none";
				}
				return 2;
			
			}
		
	}
	else
	{
		itm.visibility = "show";
		return 1;
	}
}

function chama_1024()
{
document.write('<div style="background-color:#333333; height: 24px; position:absolute; top:0px; left:778px; width:224px;"></div>');
document.write('<div style="background-image: url(images/novasimagens/bg_topo_laranja.gif); position:absolute; top:24px; height:105px; left:778px; width:224px;"></div>');
document.write('<div style="background-color:#333333; height: 40px; position:absolute; top:129px; left:778px; width:224px;"></div>');
}