/* ImgRoll*/function ImgRoll(stub, onIns, offIns, clickIns){   if(stub != null)  {    this.links = new Array();    this.images = new Array();    this.imgIdx = new Array();    this.stub = stub;        this.isSet = false;    this.onIns = onIns;    this.offIns = offIns;    this.clickIns = clickIns;    this.onrollon = null;    this.onrolloff = null;    this.onclick = null;  }}new ImgRoll(null, null, null, null);function ImgRoll_proto_add(baseName, ext, jsImgName)/* ext: no . needed*/{  this.images[jsImgName] = new Object();  this.imgIdx[this.imgIdx.length] = this.images[jsImgName];    this.images[jsImgName].jsImgName = jsImgName;  this.images[jsImgName].status = 'off';    this.images[jsImgName].off = new Image();  this.images[jsImgName].off.src =    (this.stub + baseName + this.offIns + "." + ext);  this.images[jsImgName].on = new Image();  this.images[jsImgName].on.src =    (this.stub + baseName + this.onIns + "." + ext);      if (this.clickIns != null)  {    this.images[jsImgName].click = new Image();    this.images[jsImgName].click.src =      (this.stub + baseName + this.clickIns + "." + ext);    }}ImgRoll.prototype.add = ImgRoll_proto_add;function ImgRoll_proto_over(image){  var osImage;  if (osImage = this.images[image.name])  {    image.src = osImage.on.src;    osImage.status = 'on';        if (this.onrollon != null)    {      this.onrollon();    }  }}ImgRoll.prototype.over = ImgRoll_proto_over;function ImgRoll_proto_out(image){  var osImage;  if (osImage = this.images[image.name])  {    image.src = osImage.off.src;    osImage.status = 'off';        if (this.onrolloff != null)    {      this.onrolloff();    }  }}ImgRoll.prototype.out = ImgRoll_proto_out;function ImgRoll_proto_click(image){  var osImage;  if (osImage = this.images[image.name])  {    image.src = osImage.click.src;    osImage.status = 'clicked';        if (this.onclick != null)    {      this.onclick();    }  }}ImgRoll.prototype.click = ImgRoll_proto_click;