function SIR() { //v3.0
  var i,x,a=document.SIR_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function PI() { //v3.0
  var d=document; if(d.images){ if(!d.PI_p) d.PI_p=new Array();
    var i,j=d.PI_p.length,a=PI.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.PI_p[j]=new Image; d.PI_p[j++].src=a[i];}}
}

function FO(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FO(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function SI() { //v3.0
  var i,j=0,x,a=SI.arguments; document.SIR_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=FO(a[i]))!=null){document.SIR_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var OldColors = new Array(15);
var OldColor;

function lightRow(cell)
{
        for(i=0;i<cell.parentNode.cells.length;i++)
        {
                OldColors[i] = cell.parentNode.cells[i].style.backgroundColor;
                cell.parentNode.cells[i].style.backgroundColor = '#ff9900';
        }
}

function darkRow(cell)
{
        for(i=0;i<cell.parentNode.cells.length;i++)
        {
                cell.parentNode.cells[i].style.backgroundColor = OldColors[i];
        }
}

function lightCell(cell)
{
 OldColor = cell.style.backgroundColor;
 cell.style.backgroundColor = '#ff9900';
// cell.parentNode.cells[0].style.backgroundColor = '#ff9900';
}

function darkCell(cell)
{
 cell.style.backgroundColor = OldColor;
// cell.parentNode.cells[0].style.backgroundColor = OldColor;
}

function InvertDisplay(elem)
 {
  if (document.getElementById(elem.id + 'a').style.display == 'none' || document.getElementById(elem.id + 'a').style.display == '')
   {
    elem.style.backgroundImage = "url(u/bg_title_active.gif)";
    document.getElementById(elem.id + 'a').style.display = 'block';
   }
  else
   {
    elem.style.backgroundImage = "url(u/bg_title_on.gif)";
    document.getElementById(elem.id + 'a').style.display = 'none';
   }
 }

function QueryMouaseOver(elem)
 {
  if (elem.style.backgroundImage == '' || elem.style.backgroundImage == 'url(u/bg_title_off.gif)')
   {
    elem.style.backgroundImage = 'url(u/bg_title_on.gif)';
    elem.style.color="#ff9900";
   }
 }

function QueryMouaseOut(elem)
 {
  if (elem.style.backgroundImage == '' || elem.style.backgroundImage == 'url(u/bg_title_on.gif)')
   {
    elem.style.backgroundImage = 'url(u/bg_title_off.gif)';
    elem.style.color="#000000";
   }
 }

function CloseAll()
 {
  for (i = 1;i <= 40;i++)
   {
    document.getElementById('title_' + i + 'a').style.display = 'none';
    document.getElementById('title_' + i).style.backgroundImage = 'url(u/bg_title_off.gif)';
   }
 }

function OpenAll()
 {
  for (i = 1;i <= 40;i++)
   {
    document.getElementById('title_' + i + 'a').style.display = 'block';
    document.getElementById('title_' + i).style.backgroundImage = 'url(u/bg_title_active.gif)';
   }
 }