jQuery(document).ready(function($) {

  $('ul.sf-menu')
      .supersubs({
          maxWidth:    35,
          minWidth:    15
      })
      .superfish({
          animation:   {opacity:'show',height:'show'},
          easing:      'easeOutBack'
      })
      .find('ul').bgIframe({opacity:false});
  
});

function updatePortfolio(args)
{
  // Toggles adding/removing trees from the portfolio
  jQuery.get('/virtual-visitors-center/updateportfolio?time='+new Date().getTime(), {'portfolio': 1, 'id': args['id']}, 
    function(data) {
      var text = args[data];
      jQuery('#t'+args['id']).text(text);
    }
  );
}