<!--
function exibeFlash( swf, width, height, wmode, cache) {
	noCache = cache || cache == undefined ? "" : "?" + new Date();
	wmode = wmode || wmode == undefined ? "opaque" : "transparent";
	
	monta_swf = "";
	monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
	monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"\" />";
	monta_swf += "<param name=\"quality\" value=\"high\" />";
	monta_swf += "<param name=\"menu\" value=\"0\" />";
	monta_swf += "<param name=\"wmode\" value=\""+ wmode +"\" />";
	monta_swf += "<embed src=\""+ swf + noCache +"\" quality=\"high\" wmode=\""+ wmode +"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	monta_swf += "</object>";
	
	document.write(monta_swf);
}

function startMenu( id) {
	if ( document.all && document.getElementById) {
		navRoot = document.getElementById( id);
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function Indicar(lamp){
	var l = 250;
	var a = 300;
//	if(window.i){i.close();}
	var i = window.open( "indicar.php?lamp="+lamp,"indicar","width="+l+",height="+a+",left=10,top=10,status=0,scrollbars=1");
	i.focus();
}

function Imprimir(lamp){
	var l = 540;
	var a = 420;
//	if(window.p){p.close();}
	var p = window.open( "imprimir.php?lamp="+lamp,"imprimir","width="+l+",height="+a+",left=10,top=10,status=0,scrollbars=1");
	p.focus();
}

function contar(obj, limit) {
	var atual = obj.value.length;
	var faltam = limit - atual;
	if ( atual > limit) {
		obj.value = obj.value.substring(0, limit)
		alert( "não é permitido mais que: " + limit + " caracteres.");
		faltam = 0;
	}
	if( document.getElementById("contar")){
		document.getElementById("contar").innerHTML="" + faltam;
	}
}
function enquete() {
	w = 240;h = 320;
	if( screen) {
		x = (screen.width-w)/2;
		y = (screen.height-h)/2;
	}
	if(window.e){e.close();}
	e = window.open( "enquete.php", "janEnquete", "width="+w+", height="+h+", left="+x+", top="+y+", status=0, scrollbars=1");
	e.focus();
}
function enquetei() {
	w = 380;h = 220;
	if( screen) {
		x = (screen.width-w)/2;
		y = (screen.height-h)/2;
	}
	if(window.e){e.close();}
	e = window.open( "enquete2.php", "janEnquete", "width="+w+", height="+h+", left="+x+", top="+y+", status=0, scrollbars=1");
	e.focus();
}
function Lampiao_openGaleria( d,lamp) {
	var w = 770;
	var h = 480;
	var l = 0;
	var t = 0;

	if( screen) {
		l = (screen.width-w)/2;
		t = (screen.height-h)/2;
	}	
	if(window.popw) popw.close();
	popw = window.open( "adm/mostraGaleria.php?lamp="+lamp,"VisualizarNoticia","width="+w+",height="+h+",left="+l+",top="+t+",status=0,scrollbars=1");
	popw.focus();
}

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.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.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; }
}

/*
window.onerror = function(msg,url,line) { 
 alert("Error\nmsg: "+msg+"\nurl: "+url+"\nline: "+line);
 return true;
} 
*/
//-->