var numImg=[];
for(var i=0;i<12;i++){
  numImg[i] = new Image();
  numImg[i].src = '../gifs/n'+i+'.gif';
  numImg[i+20] = new Image();
  numImg[i+20].src = '../gifs/n'+i+'ov.gif';
}

function swapNum(n,on){
  if(on){
    document['num_'+n].src=numImg[n+20].src;
  }else{
    document['num_'+n].src=numImg[n].src;
  }
}

function mouseOver(src,textColor, cellColor){
  src.style.backgroundColor=cellColor;
  //src.style.color=textColor
  src.style.cursor='hand'
}

function mouseOut(src,textColor, cellColor){
  src.style.backgroundColor=cellColor;
  src.style.color=textColor
}

function mouseClick(src) {
  if(event.srcElement.tagName=='TD'){
    src.children.tags('A')[0].click();
  }
}
