//o=object,s=eventname,h=handler
function addEvent(obj,evType,fn){
  if(obj.addEventListener){
    obj.addEventListener(evType,fn,false);
    return true;
  }else if(obj.attachEvent){
    return obj.attachEvent('on'+evType,fn);
  }else if(document.all&&(!document.mimeType)){
    eval('obj.on'+evType+'=fn');
	return true;
  }else{
	return false;
  }
}
/* Object "ICAList" */
function ICAList(sId){
  this.dom=document.getElementById(sId);
  this.items=new Array;
  this.visitm=null;
  this.at=null;
  var obj=this.dom.firstChild;
  while(obj.nextSibling){
    if(obj.tagName=='DT') this.items[this.items.length]=new ICAListItem(obj);
    obj=obj.nextSibling;
  }
}
ICAList.prototype.hideAll=function(){
  for(var i=0;i<this.items.length;i++) this.items[i].hide();
}
ICAList.prototype.view=function(indx,at){
  if(!at&&this.at!=null)self.clearInterval(this.at);
  var itm=(indx)?indx:0;
  this.hideAll();
  this.items[itm].show();
  this.visitm=itm;
  return this.visitm;
}
ICAList.prototype.next=function(at){
  if(!at&&this.at!=null)self.clearInterval(this.at);
  var itm=0;
  this.hideAll();
  itm=(this.visitm==(this.items.length-1))?0:(this.visitm+1);
  this.items[itm].show();
  this.visitm=itm;
  return this.visitm;
}
ICAList.prototype.prev=function(at){
  if(!at&&this.at!=null)self.clearInterval(this.at);
  var itm=this.items.length;
  this.hideAll();
  itm=(this.visitm==0||!this.visitm)?(this.items.length-1):(this.visitm-1);
  this.items[itm].show();
  this.visitm=itm;
  return this.visitm;
}
ICAList.prototype.autotrav=function(t){
  if(!t)t=10000;
  this.view();
  var tobj=this;
  this.at=self.setInterval(function(){tobj.next(true)},t);
}
/* Object "ICAListItem" */
function ICAListItem(obj){
  this.type=obj;
  this.defs=new Array;
  this.display;
  var obj=this.type;
  while(obj.nextSibling&&obj.nextSibling.tagName!='DT'){
    obj=obj.nextSibling;
    if(obj.tagName=='DD') this.defs[this.defs.length]=obj;
  }
}
ICAListItem.prototype.show=function(){
  this.type.style.display='block';
  for(var i=0;i<this.defs.length;i++)
    this.defs[i].style.display='block';
}
ICAListItem.prototype.hide=function(){
  this.type.style.display='none';
  for(var i=0;i<this.defs.length;i++)
    this.defs[i].style.display='none';
}