  $(document).ready(function() {

            $('a.panel').click(function () {

                $('a.panel').removeClass('selected');
                $(this).addClass('selected');

                current = $(this);

                $('#wrapper').scrollTo($(this).attr('href'), 1000);

                return false;
            });

            $(window).resize(function () {
                resizePanel();
            });

        });

        function resizePanel() {

            width = $(window).width();
            height = $(window).height();

            mask_width = width * $('.item').length;

            $('#debug').html(width  + ' ' + height + ' ' + mask_width);

            $('#wrapper, .item').css({width: width, height: height});
            $('#mask').css({width: mask_width, height: height});
            $('#wrapper').scrollTo($('a.selected').attr('href'), 0);

        }

$(document).ready(function() {
  var button= $('.b');
  button.hover(function(){

      $(this).stop().animate({
opacity:1,
marginTop: "-18px"}, 350);},
function(){
     $(this).stop().animate({
opacity:1,
marginTop: "0px"}, 300);

      });
 
 });

