/**
 * Script Redes Sociais
 * @author L.F.Martins
 */
jQuery(function($){
    try{        
        $("div.action_icon").click(function () {
        	var classe 	= $(this).attr("class");
        	var id		= $(this).attr("id");
        	var link 	= $(this).attr("link");
        	if (classe.search("no_action") == -1) {
        		$('div.rdivs').each(function () {
        			if ($(this).attr("id") != "c" + id) {
        				$(this).fadeOut(1000);
        			}
        			else {
        				$(this).fadeIn(1000);
        				$('#conncom').fadeOut(500, function () {
        					$(this).text(id).fadeIn(500);        					
        				});
        				$('#conncom').attr('link', link);        				
        			}        			
        		});        		
        	} // if
        });                
        
        $("#conncom").click(function () {
        	window.open($(this).attr('link'));
        });
    }catch(e){
        //alert(e);
    } // catch
}) // JQuery



