/* MUDA TAMANHO FONTE TEXTO */
tam = 12;
function mudaFonte(tipo,elemento){
	if (tipo=="mais") {
		if(tam<16) tam+=1;
	} else {
		if(tam>10) tam-=1;
	}
	document.getElementById('fonte').style.fontSize = tam+'px';
}

// JUMP MENU
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function exit_busca(elemento, valor) {
	if (elemento.value == '') {
		elemento.value = valor;
	}
}
function limpa_busca(elemento, valor) {
	if (elemento.value = valor) {
		elemento.value = '';
	}
}

function PrintElementID(id, pg) {
    var oPrint, oJan;
    oPrint     = window.document.getElementById(id).innerHTML;
    oJan     = window.open(pg);
    oJan.document.write(oPrint);
    oJan.history.go();
    oJan.window.print();
}

function popup(url,wi,he) {
window.open(url,'','width='+wi+',height='+he+',top=19,left=19,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
}

// MENU DROP
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
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", "");
   }
   }
  }
 }
}
window.onload=startList;




/* CHAT */
function chat() {
	window.open('http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=8bfaabb12230f6e0@apps.messenger.live.com&mkt=pt-br','','width=500,height=400,top=19,left=19,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no');
}