function ShowOne(o){
 var obj=document.getElementById(o.ID);
 var as=obj.getElementsByTagName('A');
 this.lst=false;
 for (var sobj,z0=0;z0<as.length;z0++){
  sobj=document.getElementById(as[z0].rel);
  if (sobj){
   sobj.style.visibility='hidden';
   this.addevt(as[z0],'click','Show',sobj);
   if (!this.lst){
    this.lst=sobj;
   }
  }
 }
 if (this.lst){
  this.lst.style.visibility='visible';
 }
}

ShowOne.prototype={

 Show:function(obj){
  this.lst.style.visibility='hidden';
  this.lst=obj;
  this.lst.style.visibility='visible';
  return false;
 },

 addevt:function(o,t,f,p){
  var oop=this;
  if (o.addEventListener) o.addEventListener(t,function(e){ return oop[f](p);}, false);
  else if (o.attachEvent) o.attachEvent('on'+t,function(e){ return oop[f](p); });
 }

}

new ShowOne({
 ID:'resourceLinks'
});



