/*
   gungnir Menu script.
   $Id$

   ※このスクリプトを呼び出す前に必ずcommon.jsをロードすること。
*/

var menuClass = {
  TimerEvent: 1
}

function menuboxfix()
{
//  if(document.all && !window.opera){ // IEだったら設定する。
//    $("menublock").style.position = ("absolute");
//    $("menublock").style.setExpression("top","eval(document.documentElement.scrollTop+0)");
//    document.body.style.marginTop = ('130px');
    // $("infoblock").style.filter = 'DropShadow(color=#cacadf,offX=3,offY=3,positive=true)';
//  }else{
    // IE以外の場合は position:fixed が効いているハズなので、margin設定だけする。
//    document.body.style.marginTop = ('150px');
//  }

  var menulist = new Array (
    {'caption':'TOP','href':'/'},
    {'caption':'特徴','href':'feature.html'},
    {'caption':'チュートリアル','href':'tutorial.html'},
    {'caption':'インストール手順','href':'install.html'},
    {'caption':'ダウンロード','href':'dl.html'},
    {'caption':'ドキュメント','href':'doc.html'},
    {'caption':'FAQ','href':'faq.html'},
    {'caption':'メーリングリスト','href':'ml.html'}
  );

  var htmlstr = '';
  var spacer='';
  for (i=0;i<=menulist.length;i++){
    if(menulist[i]){
      if(i>0){spacer=' | ';}
      htmlstr = htmlstr + (spacer+'<a href="' + menulist[i].href + '">' + menulist[i].caption + '</a>');
    }
  }
  $("menuExpand").innerHTML = (htmlstr);
}
