
function modalWindow(mypage)
{
      //set the window height
      var win_height = 'height = 100';
      //set the window width
      var win_width = 'width=100';
      //add a scroll bar
      var win_scroll = 'scrollbars=yes';
      //set the vertical speed
      var verticalspeed = 2;
      //set the horizontal speed
      var horizontalspeed = 7;

      if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1)
      {
          //calculate the total window width
          var winwidth = window.screen.availWidth ;

          //calculate the total window height
          var winheight = window.screen.availHeight;

          //pass the parameter values to window.open()
          var cal_size = window.open("","",win_height+","+win_width+","+win_scroll);

          //in for loop slowly increase the vertical hieght of the window
          for (vertical_height = 1; vertical_height < winheight; vertical_height += verticalspeed)
          {
                cal_size.resizeTo("1", vertical_height);
          }

          ////in this for loop slowly increase the horizontal width of the window
          for (vertical_width = 1; vertical_width < winwidth; vertical_width += horizontalspeed)
          {
                  cal_size.resizeTo(vertical_width, vertical_height);
          }
          cal_size.location = mypage;
      }
      else
      window.open(mypage);
}

///////
  $(document).ready(function(){
    $("table:hidden:first").slideDown(2000);
  });


