<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function ShowHide(id1, id2, id3) { // Função usada para exibir ou ocultar Layers
	if (id1 != '' && id3 != '') 
		expMenu(id1, id3);
	if (id2 != '' && id3 != '') 
		expMenu(id2, id3);
}

function expMenu(id, icone){ // Complemento da função ShowHide (acima) **Função Crossbrowser
	var itm = null;
	var icon = null;
	
	if (document.getElementById){
		itm = document.getElementById(id);
		icon = document.getElementById(icone);
	}
	else{
		if (document.all){
			itm = document.all[id];
			icon = document.all[icone];
		}
	}
	
	//alert(icone)
	
	if (itm){
		if (itm.style){
			if (itm.style.display == "none"){
				icon.innerHTML = "<img src=\"imagens/ico_menu_hover.jpg\" />";
				itm.style.display = ""; 
			}else{ 
				itm.style.display = "none"; 
				itm.visibility = "show";
				icon.innerHTML = "<img src=\"imagens/ico_menu.jpg\" />";
			}
		}
	}
}

function mostra(id, quem){
	if (document.getElementById){
		itm = document.getElementById(id);
	}
	else{
		if (document.all){
			itm = document.all[id];
		}
	}
	
	switch (quem){
		case 'linea':
			links = "<a href=\"empresa.php\" style=\"margin-left: 350px; z-index:-1; color:#000\" >Empresa</a> | <a href=\"historico.php\" style=\"z-index:-1; color:#000\" >Hist&oacute;rico</a> | <a href=\"parceiros.php\" style=\"z-index:-1; color:#000\" >Parceiros</a> | <a href=\"responsabilidade.php\" style=\"z-index:-1; color:#000\" >Responsabilidade Social</a>";
			break;
		case 'encontrar':
			links = "<a href=\"lojas.php\" style=\"margin-left: 570px; z-index:-1; color:#000\" >Lojas</a> | <a href=\"representantes.php\" style=\"z-index:-1; color:#000\" >Representantes</a> | <a href=\"online.php\" style=\"z-index:-1; color:#000\" >On-Line</a>";
			break;
		case 'fale':
			links = "<a href=\"fale_consumidor.php\" style=\"margin-left: 680px; z-index:-1; color:#000\" >Consumidor</a> | <a href=\"fale_lojista.php\" style=\"z-index:-1; color:#000\" >Lojista</a> | <a href=\"fale_representante.php\" style=\"z-index:-1; color:#000\" >Representante</a>";
	}
	
	
	
	
	itm.innerHTML = links;
}
function limpa(id){
	if (document.getElementById){
		itm = document.getElementById('procurar');
	}
	else{
		if (document.all){
			itm = document.all[id];
		}
	}
	itm.innerHTML = '';
}
<!--

//really not important (the first two should be small for Opera's sake)
PositionX = 10;
PositionY = 10;
defaultWidth  = 50;
defaultHeight = 50;

//kinda important
var AutoClose = false;

//don't touch
function popImage(imageURL,imageTitle){
	
	var imgWin = window.open('','_blank','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
	if( !imgWin ) { return true; } //popup blockers should not cause errors
	imgWin.document.write('<html><head><title>'+imageTitle+'<\/title><script type="text\/javascript">\n'+
		'function resizeWinTo() {\n'+
		'if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+
		'var oH = document.images[0].height, oW = document.images[0].width;\n'+
		'if( !oW || window.doneAlready ) { return; }\n'+ //in case images are disabled
		'window.doneAlready = true;\n'+ //for Safari and Opera
		'var x = window; x.resizeTo( oW + 100, oH + 100 );\n'+
		'var myW = document.images[0].width, myH = document.images[0].height, d = x.document.documentElement, b = x.document.body;\n'+
		'if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n'+
		'else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n'+
		'else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n'+
		'if( window.opera && !document.childNodes ) { myW += 16; }\n'+
		'x.resizeTo( oW = oW + ( ( oW + 100 ) - myW ), oH = oH + ( (oH + 100 ) - myH ) );\n'+
		'var scW = screen.availWidth ? screen.availWidth : screen.width;\n'+
		'var scH = screen.availHeight ? screen.availHeight : screen.height;\n'+
		'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+
		'}\n'+
		'<\/script>'+
		'<\/head><body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+
		(document.layers?('<layer left="0" top="0" right="0" bottom="0">'):('<div style="position:absolute;left:0px;top:0px;right:0px;bottom:0">'))+
		'<img src='+imageURL+' alt="Loading image ..." title="">'+
		(document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
	imgWin.document.close();
	if( imgWin.focus ) { imgWin.focus(); }
	return false;
}
//-->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// Início do código de Aumentar/ Diminuir a letra
 
// Para usar coloque o comando: "javascript:mudaTamanho('tag_ou_id_alvo', -1);" para diminuir
// e o comando "javascript:mudaTamanho('tag_ou_id_alvo', +1);" para aumentar
 
var tagAlvo = new Array('p'); //pega todas as tags p//
 
// Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small...
var tamanhos = new Array( '9px','10px','11px','12px','13px','14px','15px' );
var tamanhoInicial = 3;
 
function mudaTamanho( idAlvo,acao ){
  if (!document.getElementById) return
  var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
  tamanho += acao;
  if ( tamanho < 0 ) tamanho = 0;
  if ( tamanho > 6 ) tamanho = 6;
  tamanhoInicial = tamanho;
  if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];
  
  selecionados.style.fontSize = tamanhos[ tamanho ];
  
  for ( i = 0; i < tagAlvo.length; i++ ){
    tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
    for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
  }
}
// Fim do código de Aumentar/ Diminuir a letra
function menu(){
	if (window.event){
		var el = document.getElementById("calendario");
		var formulario = document.getElementById("aqui");
		var f2 = document.getElementById("geral");
		el.style.height = (formulario.offsetHeight - 500)+"px";
		f2.style.height = (formulario.offsetHeight + 600)+"px";
	} else {
		var el = document.getElementById("calendario");
		var formulario = document.getElementById("aqui");
		var f2 = document.getElementById("geral");
		el.style.height = (formulario.offsetHeight - 500)+"px";
		f2.style.height = (formulario.offsetHeight + 600)+"px";
	}
}
function cadastra(){
	if (document.newsletter.z_dado_email.value != '') {
	var emailok = 0;
	var checkStr = document.newsletter.z_dado_email.value;
	var priaroba = checkStr.indexOf('@');
	var ultponto = checkStr.lastIndexOf('.');
	}
	
	if (checkStr.indexOf('@') > 0 ) {
		if (checkStr.lastIndexOf('@') == checkStr.indexOf('@')) {
			if (checkStr.lastIndexOf('.') > 0 ) {
				if ( checkStr.lastIndexOf('.') != checkStr.length - 1) {
					if ( ultponto > priaroba ) {
					var emailok = 1;
					}
				}
			}
		}
	}
	if (emailok != 1) {
		alert('E-mail invalido.');
		document.newsletter.z_dado_email.focus()
		return false;
	}
	
	document.newsletter.method = "post"
	document.newsletter.action = "http://teclamailmkt.com.br/dmm/form_integracao/m.8Q8888888O"
	document.newsletter.submit()
}
