function Show02(helpid){
var width=960; //最外殻レイヤの幅
//var left=0;
if (document.layers){
    //ネスケ
    //if(width > innerWidth)
    //  left = 172 ; //Windowサイズがレイヤより小さいときの座標
    //else
    //  left = parseInt(innerWidth / 2) + 172 //Windowの方が大きいとき
    //alert('1');
    //document.layers[helpid].pixelLeft = left;
    document.layers[helpid].visibility = "visible";
  } else {
    //IE
    //if(width > document.body.clientWidth)
    //  left = -110 ; //Windowサイズがレイヤより小さいときの座標
    //else
    //  left = parseInt(document.body.clientWidth / 2) +172 //Windowの方が大きいとき
    //alert(document.getElementById(helpid).style.pixelLeft);
    //document.getElementById(helpid).style.left = left + 'px';
    document.getElementById(helpid).style.visibility = "visible";
  }
} 



function Hide(helpid){
if (document.layers)document.layers[helpid].visibility = "hidden";
else document.getElementById(helpid).style.visibility = "hidden";}


function setBGColor(tagName,textBGcolor)
{
	if (document.layers) document.layers[tagName].bgColor  = textBGcolor;
	if (document.all)    document.all(tagName).style.backgroundColor = textBGcolor;
}

if(navigator.appName.indexOf("Netscape") >= 0){
  document.write("<STYLE TYPE=text/css><!--.navi {cursor:pointer;}  .navi_on {cursor:pointer;}--></STYLE>")
}
if(navigator.appName.indexOf("Microsoft") >= 0){
  document.write("<STYLE TYPE=text/css><!--.navi {cursor:hand;} .navi_on {cursor:hand;}--></STYLE>")
}
else  document.write("<STYLE TYPE=text/css><!--.navi {cursor:hand;} .navi_on {cursor:hand;}--></STYLE>")


document.write(
  "<div id='pulldown'>"
+ "<ul id='gnav01' onmouseover='Show02(" + '"gnav01"' + ");' onmouseout='Hide(" + '"gnav01"' + ");'>"
+ "<li><a href='/2009/about.shtml#head01'>開催目的</a></li>"
+ "<li><a href='/2009/about.shtml#head02'>開催概要</a></li>"
+ "<li><a href='/2008/'>アーカイブ</a></li>"
+ "<li><a href='/2009/about.shtml#head03'>上野・浅草について</a></li>"
+ "</div>"
);





var g_aryPulldown = new Array(false, false, false, false, false, false);


function openMenu(intPulldown) {
  var rectRegion;
  var intIndex = 0;
  for(intIndex=0; intIndex<6; intIndex++) {
    rectRegion = get_object('pull' + (intIndex+1));
    if(intIndex == intPulldown-1) {
      rectRegion.style.display = 'block';
      g_aryPulldown[intIndex] = true;
    } else {
      rectRegion.style.display = 'none';
      g_aryPulldown[intIndex] = false;
    }
  }
}

function closeAllMenu() {
  var rectRegion;
  var intIndex = 0;
  for(intIndex=0; intIndex<6; intIndex++) {
    rectRegion = get_object('pull' + (intIndex+1));
    rectRegion.style.display = 'none';
    g_aryPulldown[intIndex] = false;
  }
}

function selectMenu(intPulldown) {
  var rectRegion;
  var intIndex = 0;
  for(intIndex=0; intIndex<6; intIndex++) {
    rectRegion = get_object('pull' + (intIndex+1));
    if(intIndex == intPulldown-1) {
      if(g_aryPulldown[intPulldown-1]) {
        rectRegion.style.display = 'none';
        g_aryPulldown[intIndex] = false;
      } else {
        rectRegion.style.display = 'block';
        g_aryPulldown[intIndex] = true;
      }
    } else {
      rectRegion.style.display = 'none';
      g_aryPulldown[intIndex] = false;
    }
  }
}
