function subText(obj, aNested){
  if(aNested) pobj = obj.parentNode.parentNode;
  else pobj = obj.parentNode;
  reclassDiv = pobj.getElementsByTagName("div")[0];
  
  cls = reclassDiv.className;
  vispos = cls.indexOf('hidden');  
  if(vispos<0){ 
    ncls = cls.replace(/visible/,"hidden");
  }
  else{   
    ncls = cls.replace(/hidden/,"visible");    
  }
  reclassDiv.className = ncls; 
}

function ysubText(elId){
  
  obj = document.getElementById(elId);
  rClass = (obj.className=='y-visible')? 'y-hidden':'y-visible';
  obj.className = rClass;
}

function changeArr(obj){
      
  arrSrc = (obj.src.indexOf('arr_hid')>0)? 'image/arr_vis.gif':'image/arr_hid.gif';
  obj.src = arrSrc;
}

function imgModal(src){

 modal = new Modal();
 modal.setSource(src);
 modal.setType('img');
 modal.start();

}

function htmlModal(src){

 modal = new Modal();
 modal.setSource(src);
 modal.setType('html');
 modal.start();

}
