/**
$Id: js.js,v 1.3 2009/03/02 23:21:23 tyuu Exp $
vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 foldmethod=marker:
*/

var debug;
var footerbar;
var footerbar_width = 100;
var rightcolumn;

function tyuu_onLoad() {
  debug = document.getElementById('debug');
  footerbar = document.getElementById('footerbar');
  footerbar.style.width = footerbar_width + '%';

  setTimeout('setFooterbarWidth()', 2000);
}

function setFooterbarWidth() {
  if (debug) {
    debug.innerHTML = footerbar.style.width;
  }

  footerbar_width -= 5;
  footerbar.style.width = footerbar_width + '%';

  if(footerbar_width > 0) {
    setTimeout('setFooterbarWidth()', 10);
    return true;
  }
  footerbar.style.visibility = 'hidden';
  return true;

}


function showRightColumn() {
  rightcolumn = document.getElementById('rightcolumn');
  if ('visible' != rightcolumn.style.visibility) {
    rightcolumn.style.visibility = 'visible';
    return false;
  }
  rightcolumn.style.visibility = 'hidden';
  return false;
}

