function mm_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

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; }

// exibe/oculta um Layer
function MM_displayHideLayers() { //v3.0
  var i,p,v,obj,args=MM_displayHideLayers.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')?'block':(v=='hide')?'none':v;
      }
      obj.display=v;
    }
}

// abre e fecha de notícias

	if (!document.getElementById)
		document.getElementById = function() { return null; }

	function initializeMenu(menuId, actuatorId) {
		var menu = document.getElementById(menuId);
		var actuator = document.getElementById(actuatorId);

		if (menu == null || actuator == null) return;

		actuator.onclick = function() {
			var display = menu.style.display;
			this.parentNode.style.backgroundImage =
				(display == "block") ? "url(img/plus.gif)" : "url(img/minus.gif)";
			menu.style.display = (display == "block") ? "none" : "block";

			return false;
		}
	}
	window.onload = function() {

	initializeMenu("MenuExpand", "HeadingExpand");

	}
/* poup up*/

function abrir(URL) {
	var width = 400; //dimensao em altura
	var height = 300; // largura
	var left = 300;
	var top = 200;
window.open(URL,'senha', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
