function setToggleFunc() {
 var
////////////////// 編集箇所 ///////////////////////////////////////
 mouse_on_color = '#993333',             // マウスオンの文字色
 mouse_on_background_color = '#fff',  // マウスオンの背景色
 mouse_out_color = '#E2882E',            // マウスアウトの文字色
 mouse_out_background_color = '#fff'; // マウスアウトの背景色
///////////////////////////////////////////////////////////////////

 var elms, elm;

 if ( document.getElementsByTagName ) {
  elms = document.getElementsByTagName( "*" );
  for ( var i=1;elm=elms[i];i++ ) {
   if ( !elm.className ) continue;
   if ( elm.parentNode.firstChild == elm ) {
    elm.className.replace( /\bjs_[open|close]\b/, '' );
    continue;
   }
   if ( !elm.className.match(/js_[open|close]/) ) continue;
   var objTrigger = elm.previousSibling;

   while( !objTrigger || objTrigger.nodeType != 1 ) {
    objTrigger = objTrigger.previousSibling;
   }
   if ( !objTrigger ) continue;

   objTrigger.style.cursor = 'pointer';
   objTrigger.title += ( elm.className.match(/js_close/) ) ? ' ( click to open )' : ' ( click to close )';
   
   objTrigger.onclick = function () {
    var objTarget = this.nextSibling;
    while ( objTarget.nodeType != 1 ) {
     objTarget = objTarget.nextSibling;
    }

    objTarget.flag = objTarget.className.match(/js_close/);
    if ( objTarget.flag ) {
     objTarget.className = objTarget.className.replace( /\bjs_close\b/, 'js_open' );
     this.title = this.title.replace( /click to open/, 'click to close' );
    } else {
     objTarget.className = objTarget.className.replace( /\bjs_open\b/, 'js_close' );
     this.title = this.title.replace( /click to close/, 'click to open' );
    }
   }

   objTrigger.onmouseover = function () {
    this.style.color = mouse_on_color;
    this.style.backgroundColor = mouse_on_background_color;
   }

   objTrigger.onmouseout = function () {
    this.style.color = mouse_out_color;
    this.style.backgroundColor = mouse_out_background_color;
   }

  }
 }
}
window.onload = setToggleFunc

with ( document ) {
if ( getElementsByTagName && styleSheets ) {
 var s = "<style type='text\/css'> .js_open { display: block} .js_close { display: none; }<\/style>";
 write(s);
 }
}
