$(function(){

$('#burrito_post p a[title]').qtip({ 
	position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
      }
   },
		style: {
		background: '#fff',
      color: '#4c4c4c',
      textAlign: 'left',
	  width: 300,
	  padding: 10,
      border: {
         width: 5,
         radius: 5,
         color: '#f05571'
      },	    
				   tip: true 
				   }
	});


$("#burrito_post p a.blackbean").qtip({
	position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
      }
   },
	  style: {
	  background: '#fff',
      color: '#4c4c4c',
      textAlign: 'left',
	  width: 300,
	  padding: 10,
      border: {
      width: 5,
      radius: 5,
      color: '#f05571'
	 	},	    
				   tip: true 
				   },
   content: {
      url: 'http://evolfoods.com/wp/wp-content/themes/evol/blackbean.php'
   }
});


    $('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;
                
            }
            
        }
        
    });
    
	
	
});


