var $j = jQuery.noConflict();
$j(function(){
	$j('.sideBar a').click(function(){
		carregar_cliente($j(this).attr("rel"));
	});
	$j('.movecli').click(function(){
		carregar_cliente($j(this).attr("rel"));
	});
	
	$j(".infoContact").tweet({
          join_text: "auto",
          username: "nbsete",
          avatar_size: 0,
          count: 9,
          auto_join_text_default: "", 
          auto_join_text_ed: "",
          auto_join_text_ing: "",
          auto_join_text_reply: "",
          auto_join_text_url: "",
          loading_text: "Carregando tweets..."
        });	
		
		//Imagem Rollover
	$j(".ro").mouseover(function(){
		var oversrc=$j(this).attr("oversrc");
		$j(this).attr("oversrc",$j(this).attr("src"));
		$j(this).attr("src",oversrc);
	});
	$j(".ro").mouseout(function(){
		var src=$j(this).attr("src");
		$j(this).attr("src",$j(this).attr("oversrc"));
		$j(this).attr("oversrc",src);
	});
	
});

function carregar_cliente(id){
	$j(".rightPortifolo").html('Loading...');
	$j(".rightPortifolo").load("includes/rightPortifolo.php?id="+id);
	$j('.sideBar a').attr('class',"");
	$j('.sideBar a[rel='+id+']').attr('class',"current");
}
function carregar_job(id){
	$j(".infoProfile").html('Loading...');
	$j(".infoProfile").load("includes/infoProfile.php?id="+id);
	
	$j('.rightPortifolo dl').attr("class","");
	$j('#job'+id).attr('class',"current");
	
}
