 $(window).load(function() {
        $('#slider').nivoSlider();
    });
	
	$('.fb').fbWall({
		id:'motosbelmonte',
		accessToken:'206158599425293|7809823973348bcf8cd72f6d.1-100000221135225|BW9n2eoyL7EYvJs7GEmv61NbBFk',
		showGuestEntries:true,
		showComments:true,
      avatarAlternative:        'img/avatar-alternative.jpg',
      avatarExternal:           'img/avatar-external.jpg',
      useAvatarAlternative:     false,
      useAvatarExternal:        false,
	  translateAt:			'en',
		translateLikeThis:		'les gusta esto',
		translateLikesThis:		'les gusta esto',
		translateErrorNoData:	'has not shared any information.',
		translatePeople:		'personas',
		max:2,
		timeConversion:24
	});
	
	 jQuery(function($){
		 $('#navegacion ul li a').click(function () {
			 
			 $('.activo').removeClass('activo');
			 $(this).addClass('activo');
			 });
		 
        $(".tweet").tweet({
          join_text: "auto",
          username: "MotosBelmonte",
          avatar_size: 50,
		  refresh_interval: 30,
		  count: 4,
          auto_join_text_default: "",
          auto_join_text_ed: "",
          auto_join_text_ing: "",
          auto_join_text_reply: "",
          auto_join_text_url: "",
		  query: "MotosBelmonte",
          loading_text: "cargando tweets..."
        });
      });
	  $(document).ready(function(){
		  $("a[rel^='prettyPhoto']").prettyPhoto({theme: 'facebook',
			social_tools: ''});
  $('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
    && location.hostname == this.hostname) {
      var $target = $(this.hash);
      $target = $target.length && $target
      || $('[name=' + this.hash.slice(1) +']');
      if ($target.length) {
        var targetOffset = $target.offset().top;
        $('html,body')
        .animate({scrollTop: targetOffset}, 1000);
       return false;
      }
    }
  });
});
