function tdovr(s){s.bgColor='#CCF4FD'; s.style.cursor='hand';return true;}
function tdout(s){s.bgColor='#E2F9FE';return true;}
function tdclk(s){s.children.tags('A')[0].click();}
function tdovr2(s){s.bgColor='#2ABA2B'; s.style.cursor='hand';return true;}
function tdout2(s){s.bgColor='#5671B1';return true;}
function tdclk2(s){s.children.tags('A')[0].click();}

var resId=0;
var imgWndw;

var arrowup = new Image();arrowup.src = "/us_files/images/up.jpg";
var arrowdown = new Image();arrowdown.src = "/us_files/images/down.jpg";

var is = new Is();
function Is(){
  this.agent=navigator.userAgent.toLowerCase();
  this.opera = (this.agent.indexOf('opera')!=-1) ? true:false;
  this.ie4 = ((this.agent.indexOf('msie')!=-1) && (this.agent.indexOf('opera')==-1)) ? true:false;
  this.ns6 = ((this.agent.indexOf('gecko')!=-1) && (this.agent.indexOf('opera')==-1)) ? true:false;
  this.ns4 = ((this.agent.indexOf('mozilla')!=-1) && (this.agent.indexOf('opera')==-1) && 
    (this.agent.indexOf('msie')==-1) && (this.agent.indexOf('gecko')==-1)) ? true:false;
  return(1);
}
	    

function imgOpen(imgLink,Title) {
  if (typeof(window.resizeBy)=='undefined') return true;
  imgWndw=window.open('',imgLink.target,
    ',toolbar=no,menubar=no,location=no,status=no,'+
    'resizable=yes,scrollbars=no,left='+(screen.width>>>2)+
    ',top='+(screen.height>>>4));
  self.focus();
  var imgTitle=(Title)?Title:imgLink.href;
  with (imgWndw.document){
    open();
    write('<ht'+'ml><he'+'ad><ti'+'tle>'+imgTitle+'</ti'+'tle>'+
    '</he'+'ad><bo'+'dy leftmargin="0" topmargin="0" '+
    'rightmargin="0" bottommargin="0" marginwidth="0" '+
    'style="margin:0;padding:0;position:fixed;overflow:none;" '+
    'marginheight="0"><img src="'+imgLink.href+'" border="0" '+
    ' alt="'+imgTitle+'" title="'+imgTitle+'" class="r" /></bo'+
    'dy></ht'+'ml>');
    close();
  }
  resId=setInterval('imgResize()',100);
  return false
}

function imgResize() {
  var w=imgWndw.document.images[0].width;
  if (w>screen.availWidth) w=screen.availWidth;
  var h=imgWndw.document.images[0].height;
  if (h>screen.availHeight) h=screen.availHeight;
  if (w>50 && h>50) {
    var ww=(imgWndw.innerWidth)?imgWndw.innerWidth:((document.body)?
      imgWndw.document.body.clientWidth:null);
    var wh=(imgWndw.innerHeight)?imgWndw.innerHeight:((document.body)?
      imgWndw.document.body.clientHeight:null);
    if (ww && wh) {
      imgWndw.resizeBy(w-ww,h-wh);
    }                                                                                                            
    imgWndw.focus();                                                                                             
    clearInterval(resId)                                                                                         
  }                                                                                                              
}

function ChangeStatus(id,mode)
{
var child=document.getElementById('child'+id);
var img=document.getElementById('pic'+id);
var myparent=document.getElementById('parent'+id);
if (child.style.display=='none') // Opening Cell
{
  if (mode==0) child.style.display='block';
  if (mode==1) {
    if(is.ie4) child.style.display='block'; // buging IE
    else child.style.display='table-cell';
    myparent.style.borderBottomWidth = '0'
  }
  img.src=arrowup.src;
  return(1);
}
img.src=arrowdown.src;
if (mode==1) // so, mode=1
{
  child.style.display='none';
  myparent.style.borderBottomWidth = '1px'
  return(1);
}
if (child.style.display=='block')
{
  child.style.display='none';
  return(1);
}
}
 

