﻿var animTimer;
var animObj;

function anim1()
{
animObj.style.color="#FF0077";
animTimer=setTimeout("anim2()",60);
}

function anim2()
{
animObj.style.color="#FF3399";
animTimer=setTimeout("anim3()",60);
}

function anim3()
{
animObj.style.color="#FF77BB";
animTimer=setTimeout("anim4()",60);
}

function anim4()
{
animObj.style.color="#FFBBDD";
animTimer=setTimeout("anim5()",60);
}

function anim5()
{
animObj.style.color="#FFFFFF";
animTimer=setTimeout("anim6()",60);
}

function anim6()
{
animObj.style.color="#FFBBDD";
animTimer=setTimeout("anim7()",60);
}

function anim7()
{
animObj.style.color="#FF77BB";
animTimer=setTimeout("anim8()",60);
}

function anim8()
{
animObj.style.color="#FF3399";
animTimer=setTimeout("anim1()",60);
}

function onAnim(obj)
{
animObj=obj;
animObj.style.color="#FF0077";
animTimer=setTimeout("anim2()",60);
}

function offAnim(obj)
{
animObj=obj;
animObj.style.color="#0066CC";
clearTimeout(animTimer);
}
