var zoomin=0;

  function zoom(what){
    if (zoomin==0){
    zoomin=1;
    var holder=$("<div>").css("position","absolute").css('padding','5px').css('border','1px solid #CCC').css('top','450px').corner().css('left','50%').css('zIndex','400').css('backgroundColor','white').css('width','5px');
    $("body").append(holder);
    holder.animate({'height':'460px','marginTop':'-230px'},400,function(){
      $(this).animate({'width':'600px','marginLeft':'-300px'},400,function(){
        var texthold = $("<div>").css('overflow','auto').css('height','450px');
        texthold.append($("#"+what).html());
        $(this).append($("<img>").attr('src',$("#baseUrl").text()+'/images/x.png').css('width','25px').css('height','25px').css('float','right').click(function(){
          holder.html('');
          holder.animate({'width':'5px','marginLeft':'0'},400,function(){
            $(this).animate({'height':'5px','marginTop':'0'},400,function(){
              $(this).remove();
              zoomin=0;
            })
          })
        }))
        $(this).append(texthold);
      })
    })
    }
  }
  
  function zoom2(what){
    if (zoomin==0){
    zoomin=1;
    var holder=$("<div>").css("position","absolute").css('padding','5px').css('border','1px solid #CCC').css('top','1000px').corner().css('left','50%').css('zIndex','400').css('backgroundColor','white').css('width','5px');
    $("body").append(holder);
    holder.animate({'height':'60px','marginTop':'-250px'},400,function(){
      $(this).animate({'width':'450px','marginLeft':'-300px'},400,function(){
        $(this).append($("<img>").attr('src',$("#baseUrl").text()+'/images/x.png').css('width','25px').css('height','25px').css('float','right').click(function(){
          holder.html('');
          holder.animate({'width':'5px','marginLeft':'0'},400,function(){
            $(this).animate({'height':'5px','marginTop':'0'},400,function(){
              $(this).remove();
              zoomin=0;
            })
          })
        }))
        $(this).append($("#"+what).html());
      })
    })
    }
  }
