alert("h");
sloganComplete=false;
var r=255, g=255, b=255;


function darkerColour()
{
inc=2;
colourDepth=5;

if (g>colourDepth)
 {
 g -=inc;
 }
else
 {
 if (r>colourDepth)
  {
  r -=inc;
  }
 else 
  {
  if (g>colourDepth)
  {
  b -=inc;
  }
 else
  {
  sloganComplete=true;
  }
 }
}

 str="";
str += "RGB(";
str += r;
str += ",";
str += g;
str += ",";
str += b;
str += ")";
n= str;

return n;
}

function lighterColour()
{
inc=2;
colourStrength=250;
if (g<colourStrength)
 {
 g +=inc;
 }
else
 {
 if (r<colourStrength)
  {
  r +=inc;
  }
 else 
  {
  if (b<colourStrength)
  {
  b +=inc;
  }
 else
  {
  sloganComplete=true;
  s.style.visibility="hidden";
  }
 }
}

 str="";
str += "RGB(";
str += r;
str += ",";
str += g;
str += ",";
str += b;
str += ")";
n= str;

return n;
}

function changeColour()
{
alert("k");
s=document.getElementById("ffNo");


 if (! sloganComplete)
 {
 s.style.color=darkerColour();
 } 
 else
 {
 s.style.color=lighterColour();

 } 

}

