<!--

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_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}


	var DOM2=document.getElementById
	var valorinicial;

  	function cook(nome,valor)

  	{
  	var date = new Date();
  	date.setTime(date.getTime()+172800);
  	document.cookie = nome+"="+valor+";expires="+ date.toGMTString();
  	}

  	  	function cook2(nome,valor)

	  	{
	  	var date = new Date();
	  	date.setTime(date.getTime()+172800);
	  	document.cookie = nome+"="+valor+";expires="+ date.toGMTString();
	  	window.location.reload();
		//href = "../index.php"  ;
  	}

	function zoom(Marcos)	{
    if (Marcos.indexOf('mais')==0) valorinicial=valorinicial+0.1;
	if (Marcos.indexOf('menos')==0) valorinicial=valorinicial-0.1;
	if (Marcos.indexOf('padrao')==0) valorinicial=1;
	if (DOM2){
			mudarTamanho(valorinicial);
			cook("mudaL",valorinicial);
				 }
	}
	function initzoom(valor){
		mudarTamanho(valor);
		valorinicial = valor;
	}

	function elemento(elemento , valor){
		//alert(elemento);
		//alert(valor);
			if (DOM2){
				document.getElementById(elemento).style.fontSize=valor+"em";
				document.getElementById(elemento).innerHTML;
			}
	}

	function mudarTamanho(valor){
	
	
			if (DOM2){
				elemento("barraatalhos" , (valor)); //ok
				elemento("menusuperior" , (valor)); //ok
				//elemento("ondestou" , (valor-.3));//ok
				if (document.getElementById("conteudo")) {
				    elemento("conteudo" , (valor));//ok
				}
				if (document.getElementById("conteudoT2")) {
					elemento("conteudoT2" , (valor));//ok
				}
				elemento("colunaA" , (valor));//ok
		 }
	}

    function clearDefault(el) {
        if (el.defaultValue==el.value) el.value = ""
    }
	
	
/*____________________________________________________________*/
function showhide(divid){
	thediv = document.getElementById(divid);
	if(thediv.style.display == 'none' ){
		thediv.style.display='block'
	}else{
		thediv.style.display='none'
	}
}
/*____________________________________________________________*/

//-->