        $(document).ready(function() {
          $.localScroll({
            target:'#content',
            axis:'xy',
            queue:true,
            hash:true
            });
          //open links out in new window
          $('a[href^=http://]').attr('target','_blank');
          //assign class 'selected' to tabs when the document is ready-important if user reloads!
            var currentSection=(window.location.hash).substr(0,9);
            if (currentSection != 0){
            $('a[href='+currentSection+']').addClass('selected');
            }
            else{
                $('a[href=#section1]').addClass('selected');
            };
            
          //assign class 'selected' to the proper tab 
            function selectNav() {
                //$(this)
                //.parents('ul:first') 
                  //.find('a') 
                   //.removeClass('selected') 
                  //.end() 
                //.end() 
                //.addClass('selected');
                
                //make variable to report current location for links in content window
                    var selectedNav=$(this).attr('href').substr(0,9);
                    //alert(selectedNav);
                    $('a[href='+selectedNav+']')
                      .parents('ul') // find the UL parent
                        .find('a') // find all the A elements
                      .removeClass('selected'); // remove from all
                    $('a[href='+selectedNav+']').addClass('selected');                   
                };
          $('#tabbed').add('.section').find('a').click(selectNav);
          
          //popup bubbles
          $('.popup a').hover(function() {
$(this).next('em').stop(true, true).animate({opacity: 'show', top: '-60'}, 'slow');
}, function() {
$(this).next('em').animate({opacity: 'hide', top: '-70'}, 'fast');
});
         $("a[title='Go Green']").colorbox(); 
          
        });