function MM_preloadImages() {
  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 imgVolta() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) {
  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 trocaImg() {
  var i,j=0,x,a=trocaImg.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*** Função para carregar os Highligths *******************************************************************/
window.addEvent('domready', function(){

	MM_preloadImages('img/m_cata2.gif','img/m_empr2.gif','img/m_lanc2.gif','img/m_even2.gif','img/m_fale2.gif','img/m_clie2.gif','img/m_repr2.gif','img/m_mail2.gif');

	if($('m_cata')){
		$('m_cata').addEvent('mouseenter', function() {
			trocaImg('m_cata','','img/m_cata2.gif',1);
		});
		$('m_cata').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_down')){
		$('m_down').addEvent('mouseenter', function() {
			trocaImg('m_down','','img/m_down2.gif',1);
		});
		$('m_down').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_empr')){
		$('m_empr').addEvent('mouseenter', function() {
			trocaImg('m_empr','','img/m_empr2.gif',1);
		});
		$('m_empr').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_lanc')){
		$('m_lanc').addEvent('mouseenter', function() {
			trocaImg('m_lanc','','img/m_lanc2.gif',1);
		});
		$('m_lanc').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_even')){
		$('m_even').addEvent('mouseenter', function() {
			trocaImg('m_even','','img/m_even2.gif',1);
		});
		$('m_even').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_fale')){
		$('m_fale').addEvent('mouseenter', function() {
			trocaImg('m_fale','','img/m_fale2.gif',1);
		});
		$('m_fale').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

/*	if($('m_clie')){
		$('m_clie').addEvent('mouseenter', function() {
			trocaImg('m_clie','','img/m_clie2.gif',1);
		});
		$('m_clie').addEvent('mouseleave', function() {
			imgVolta();
		});
	}
*/
	if($('m_repr')){
		$('m_repr').addEvent('mouseenter', function() {
			trocaImg('m_repr','','img/m_repr2.gif',1);
		});
		$('m_repr').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_mail')){
		$('m_mail').addEvent('mouseenter', function() {
			trocaImg('m_mail','','img/m_mail2.gif',1);
		});
		$('m_mail').addEvent('mouseleave', function() {
			imgVolta();
		});
	}

	if($('m_blue')){
		$('m_blue').addEvent('mouseenter', function() {
			trocaImg('m_blue','','img/bcatalogo1.jpg',1);
		});
		$('m_blue').addEvent('mouseleave', function() {
			imgVolta();
		});
	}


});

function mostra(estado){
	$$('.dados').each(function(e){
		e.style.display = 'none';
	});
							   
	if ($(estado).style.display == 'block'){
		$(estado).style.display = 'none';
	} else {
		$(estado).style.display = 'block';
	}
}
