﻿function topLoader(prefId,prefName){
    var targetListObj = document.getElementById('HMD_council_contents').getElementsByTagName('ul');
    for(var i=0; i<targetListObj.length; i++){
        if(targetListObj.item(i).id != prefId){
            targetListObj.item(i).style.display = 'none';
        }
    }
    document.getElementById('HMD_pref_name').innerText=prefName;
}
function HMD_visible(para){
    var targetObj = document.getElementById('HMD_council_contents').getElementsByTagName('li');
    for(var i=0; i<targetObj.length; i++){
        if(targetObj.item(i).className != para){
            targetObj.item(i).style.display = 'none';
        }else{
            targetObj.item(i).style.display = 'block';
        }
    }
    var targetObj2 = document.getElementById('HMD_council_middle1').getElementsByTagName('li');
    if(para=='new'){
        targetObj2.item(0).className='current';
        targetObj2.item(1).className='sub';
    }else{
        targetObj2.item(0).className='sub';
        targetObj2.item(1).className='current';
    }
}
if(window.Element &&
   !('innerText' in Element.prototype) &&
   'textContent' in Element.prototype)
{
  Element.prototype.__defineGetter__('innerText', function() {
    return this.textContent;
  });
  Element.prototype.__defineSetter__('innerText', function(text) {
    return this.textContent = text;
  });
}

