if (document.images) {
  r1a     = new Image();
  r1a.src = path+"images/r1a.gif";
  r1b     = new Image();
  r1b.src = path+"images/r1b.gif";
  r2a     = new Image();
  r2a.src = path+"images/r2a.gif";
  r2b     = new Image();
  r2b.src = path+"images/r2b.gif";
  r3a     = new Image();
  r3a.src = path+"images/r3a.gif";
  r3b     = new Image();
  r3b.src = path+"images/r3b.gif";
  r4a     = new Image();
  r4a.src = path+"images/r4a.gif";
  r4b     = new Image();
  r4b.src = path+"images/r4b.gif";
  r5a     = new Image();
  r5a.src = path+"images/r5a.gif";
  r5b     = new Image();
  r5b.src = path+"images/r5b.gif";
  r6a     = new Image();
  r6a.src = path+"images/r6a.gif";
  r6b     = new Image();
  r6b.src = path+"images/r6b.gif";
  r7a     = new Image();
  r7a.src = path+"images/r7a.gif";
  r7b     = new Image();
  r7b.src = path+"images/r7b.gif";
  r8a     = new Image();
  r8a.src = path+"images/r8a.gif";
  r8b     = new Image();
  r8b.src = path+"images/r8b.gif";
  }
function IOn(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName+'b.src');
  }
}
function IOff(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName+'a.src');
  }
}

function decode(s)
{
var res = "";
for (var i=s.length-1; i>=0; i--) { res+=String.fromCharCode(s.charCodeAt(i)-0xd); }
return res;
}