var __isIE__=navigator.appName == "Microsoft Internet Explorer";

function m(n,f){
  document.getElementById('m'+n).style.display=f?'none':'inline';
  document.getElementById('m'+n+'a').style.display=f?'inline':'none';
}

function chcsr(id,n){
  with(document.getElementById(id).style){
    if(n) cursor='pointer';
    else  cursor='default';
  }
}

function chtab(n,m){
  for(var i=0;i<m;i++)
    document.getElementById('tab'+i).className=(i==n? 'active': '');

  for(var i=0;i<m;i++)
    document.getElementById('pane'+i).style.display=(i==n? 'block': 'none');
}

function cover(n){
  with(document.getElementById('C'+n).style){
    color='silver';
    borderColor='silver';
    cursor='pointer';
 }
}
function cout(n){
  with(document.getElementById('C'+n).style){
    color='';
    borderColor='';
    cursor='';
 }
}
var cd=null;
function cclick(n){
  var h=__isIE__? document.body.offsetHeight: document.body.scrollHeight,
      w=__isIE__? document.body.offsetWidth: document.body.clientWidth;

  cd=n;
  with(document.getElementById('shade').style){
    height=h+'px'; 
    width=w+'px';
    display='block';
  }

  with(document.getElementById('D'+n).style){
    top=document.body.scrollTop+40+'px';
    left=w/2-200+'px';
    display='block';
  }
}
function shadeout(){
  document.getElementById('D'+cd).style.display='none';
  document.getElementById('shade').style.display='none';
  cd=null;
}
