
function loadContent(oUrl,oTarget,oLegend){/*{request.imgurl}{request.imgext}" alt="{request.imgdesc}*/
	$(oTarget).append("<div  class='ajaxloader'><p>"+oLegend+"</p><img src='images/loader.gif'/></div>")	;
	$(oTarget+">ul").fadeTo(2, 0.6);
	$.get(oUrl, function(dados){
		$(oTarget).html((dados)).fadeTo("fast", 1);;
		return true;
	});
	
}
//anim menu
function showLatMenu(oIndex,oShow){
$(oShow).toggle("normal",function(){
  if($(oShow).css('display')=="block") {
	  $("#bar"+oIndex).css('background-position',' 0 0');
  }else
	 $("#bar"+oIndex).css('background-position',' 0 -62px');
});
}

function refreshFavorites(){
    $.get("_webcontrols/functionalities/favs-count.shtml", function(dados){
		$(".link-favoritos").html((dados));
		return true;
	});
	 $.get("_webcontrols/functionalities/favs-count.shtml", function(dados){
		$("#fav-count").html((dados));
		return true;
	});
	 $.get("_webcontrols/includes/mini-favoritos.shtml", function(dados){
		$(".lfav").html((dados));
		return true;
	});
	
}
var myPage;
$(document).ready(function() {
	$("input:text").focus(function(){
		$(this).select();
	});
	if (myPage!="hp"){
	$(document).scrollTo( $(".top-nav"), 600 );
	
	}
})
	
