
var move = "+";
var bomtonLogo = 0;
var bomtonMenu = 500;
var maxBodySize = 10; 
   $(document).ready(function() {
 
  fontSizer = function (){
  
         /*
     var size = $(window).height()/52.5;
     size = Math.round(size);
     */
      var bodySize = Math.min(maxBodySize,$(window).height()/52.5);
    $('body').css('font-size', bodySize + 'px');
     
     if (bodySize==maxBodySize)
     {

        $('#wrapper').css('margin-top', (($(window).height()-428)/2) + 'px');

     }
     else
     {
        $('#wrapper').css('margin-top',  '5em');
     }
     
  };
         $(window).resize(fontSizer);
         $(window).load(fontSizer);


   //screen moving effect

              $('.moveRight').live('click',function() {
                  $('#menu ').delay(500).animate({
                      left: '+=31em'
                        }, 1000, function() {
                              //after effect
                        });
                  $('#logo').animate({
                      left: '+=49em'
                        }, 1000, function() {
                              //after effect
                        });
                    $('.moveRight').attr("class","moveLeft")
                    return false;
              });
              
   //screen moving effect

              $('.moveLeft').live('click',function() {
                  $('#menu ').animate({
                      left: '-=31em'
                        }, 1000, function() {
                              //after effect
                        });
                  $('#logo').delay(500).animate({
                      left: '-=49em'
                        }, 1000, function() {
                              //after effect
                        });
                    $('.moveLeft').attr("class","moveRight")
                    return false;
              });              
   });
