// PREZADOS:

//	Qualquer alteração ou inserção de algum novo script neste documento devera ser usado o jQuery (exemplo abaixo) invés do atalho $.
//  Isso é necessário, pois estamos usando mootools na página interna para estilizar a barra de rolagem. E este procedimento evita o ocnflito entre as duas bibliotecas evitando erros.
// 	Qualquer duvida: http://docs.jquery.com/Using_jQuery_with_Other_Libraries

jQuery(document).ready(function() {
	jQuery('#menu ul li ul').css('display','none');
	jQuery('#menu ul li ul').css('position','absolute');
	jQuery("#menu li").hover(function() {
	
		jQuery('a:first',this).addClass("hover");
		jQuery('ul:first',this).show();
		
	}, function() {
	
		jQuery('a:first',this).removeClass("hover");
		jQuery('ul:first',this).hide();
		
	});
	
	// Acesso Rápido
	
	jQuery("#quickAcess").click(function() {
		jQuery("#boxAcesso").fadeIn("slow");
	});
	
	jQuery("#boxAcesso").hover(function() {
		/**/
	}, function(){
		jQuery(this).fadeOut("slow");
	});	
	
	// Menu Cosan
	
	jQuery("#navMainInstitucional").click(function() {
		jQuery("#boxMainInstNav").fadeIn("slow");
	});
	
	jQuery("#boxMainInstNav").hover(function() {
		/**/
	}, function(){
		jQuery(this).fadeOut("slow");
	});	
		
	
	// canais
	jQuery("#btn_canais").click(function() {
		jQuery("#canal_fornecedor").fadeIn("slow");
	});
		jQuery("#canal_fornecedor").hover(function() {
		/**/
	}, function(){
		jQuery(this).fadeOut("slow");
	});	
	// RSS
		
	jQuery(".linkRss").click(function() {
		jQuery("#pop").fadeIn("slow");
	});
	
	jQuery("#pop").hover(function() {
		/**/
	}, function(){
		jQuery(this).fadeOut("slow");
	});	
	jQuery("#pop .close").click(function() {
			jQuery("#pop").fadeOut("5000");
		});
	
	// Banner sustentabilidade	
	jQuery("#banner_sustentabilidade, .sub_sustentabilidade").hover(function() {
		jQuery(".sub_sustentabilidade").show();
	}, function(){
		jQuery(".sub_sustentabilidade").hide();
	});	
});
