$(document).ready(function(){
	$(".AbaOpen").live('click', function(){ $(this).attr('class','AbaClose'); $("#BarBottom").animate({ bottom: -49 }, 'fast'); });
	$(".AbaClose").live('click', function(){ $(this).attr('class','AbaOpen'); $("#BarBottom").animate({ bottom: 0 }, 'fast'); });
	
	$("#MenuRedes LI A").fadeTo(0, 0.5);
	
	$("#MenuRedes LI A").mouseover(function(){
		$(this).fadeTo('fast', 1);
	}).mouseleave(function(){
		$(this).fadeTo('fast', 0.5);
	});
	
	if($.browser.opera){ if($("#LogoTop").attr("rel") != ""){ $(".JBookmark").attr("rel","sidebar"); } }
	$("#LogoTop").live('click', function(event){
		event.preventDefault(); var url = window.location; var title = $('title').html();
		var userAgent = navigator.userAgent.toLowerCase();
		$.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
		if($.browser.mozilla == true){ window.sidebar.addPanel(title, url,"");
		}else if($.browser.chrome == true){ alert('Seu navegador n\xE3o suporta essa a\xE7\xE3o!\n\nAperte CTRL+D para adicionar aos favoritos.'); 
		}else if($.browser.opera == true && $.browser.safari == true){
			window.external.AddFavorite(url, title);
		}else/* if($.browser.msie == true)*/{ window.external.AddFavorite(url, title);  }
	});
	
});
