var zoom = {
  go:function(obj,size) {
    if (!obj.hasClassName('act')) {

      $$('#zoom .act')[0].removeClassName('act');
      obj.addClassName('act');
    
      $$('#boxCenter p').each(function(item,index){
        item.setStyle({fontSize:size});
      });
    }
  },
  onLoad:function() {
    $$('#zoom .zoom').each(function(item,index){
      if(item.hasClassName('small')) {
        item.observe('click',function(event) {
          zoom.go(item,'11px');
        });
      } else if(item.hasClassName('normal')) {
        item.observe('click',function(event) {
          zoom.go(item,'13px');
        });
      } else if(item.hasClassName('big')) {
        item.observe('click',function(event) {
          zoom.go(item,'15px');
        });
      }
    });
  }
}

Event.observe(window, 'load', function() {
  zoom.onLoad();
  if ($('menuleft')) {
    if ($$('#menuleft a').length == 1) {
      $$('#menuleft a').last().setStyle({backgroundPosition:'top',height:'11px'});
      var ul = new Element('ul', {'class': 'menu1'}).update("<li><span style='height:0px; line-height:0; font-size:0; overflow:hidden; float:left; width:255px;'>&nbsp;</span></li>");
      $$('#menuleft li').last().appendChild(ul);
    }
    $$('#menuleft a').last().setStyle({borderBottom:0});
  }
});

