function setZoom(img, dir, width, height, margin, zIndex, delay) {
  setTimeout(function() {
    if (img.dir==dir) {
      img.style.width=width;
      img.style.height=height;
      img.style.margin=margin;
      img.style.zIndex=zIndex;
      img.parentNode.parentNode.style.zIndex=zIndex;
    }
  }, delay);
}

function ZoomIt(img, width, height, type)
{
  if (type) {img.dir = 'rtl'; count = 10; dt = 1;} 
  else {img.dir = 'ltr'; count = 0; dt = -1;}
  idx = parseInt(img.style.zIndex);
  i = idx+dt;
  while (i != count+dt) {
    w = (width*(10+i))/20+'px';
    h = (height*(10+i))/20+'px';
    m = (-height*i/45)+'px 0 0 '+(-width*i/20)+'px';
    setZoom(img, img.dir, w, h, m, i, 20*dt*(i-idx));
    i = i+dt;
  }
}

var flag=0;
function BlinkIt(){
  text.style.color = (flag==0) ? "#676767" : "#FFFFFF";
  flag = (flag==0) ? 1 : 0;
  return false;
}
setInterval("BlinkIt()",600);
