onload = function () {
  ro();
}

onunload = function () {
}

function ro() {
  var d = document;
  if(d.images){
    if(!d.MM_p) d.MM_p=new Array();
    var anchorFields = d.getElementsByTagName('A');
    for ( var i =0; i <anchorFields.length ; i++  ) {
      var anchor = anchorFields[i];
      if ( !anchor.firstChild ) continue;
      if ( !anchor.firstChild.src ) continue;
      if ( new String(anchor.firstChild.src).match(/-out-/) ) {
        var src_on  = new String(anchor.firstChild.src).replace(/-out-/,'-on-') ;
        anchor.onmouseover = function () {this.firstChild.src = this.firstChild.src.replace(/-out-/,'-on-')};
        anchor.onmouseout  = function () {this.firstChild.src = this.firstChild.src.replace(/-on-/,'-out-')};
        d.MM_p[i] = new Image;
        d.MM_p[i].src = src_on;
      }
    }
  }
}




function ow(url,myWidth,myHeight,myWin){

  if(!myWidth ) myWidth=640
  if(!myHeight) myHeight=300
  if(!myWin   ) myWin='_blank'
  myWin=window.open( url,myWin,"resizable=yes,scrollbars=yes,width="+myWidth+",height="+myHeight);
  myWin.focus();
}


function openSubwin(url) {
    switch (url) {
       /* case 'semi_w.html':
        case 'twin.html':
            height = 606;
            break;*/
        default :
            height = 606;
    }
    window.open(url, '', 'width=700,height=' + height + ',scrollbars=no,resizable=no');
}

  jQuery().ready(function(){

    jQuery('#navi').accordion({
      event: 'click',
      active: '.selected',
      selectedClass: 'active',
      animated: "easeslide",
      header: "dt.title",
      autoHeight: false,
      visibility: 'visible'
    }).bind("changeaccordion", function(event, ui) {
      jQuery('<div>' + ui.oldHeader.text() + ' hidden, ' + ui.newHeader.text() + ' shown</div>').appendTo('#log');
    });
    var accordions = jQuery('#navi');
  });
