startList = function() 
{
	if (document.all) 
	{
		navRoot = document.getElementById("ul_menu");
			for (i=0; i < navRoot.childNodes.length; i++) 
			{
				node = navRoot.childNodes[i];
				if (node.nodeName == "LI") 
				{
					node.onmouseover = function() 
					{
						this.className += "over";
					}
					node.onmouseout = function() 
					{
						this.className = this.className.replace("over","");
					}
				}
			}
	}
}
window.onload = startList;

mousein=false;
timer=0;
i=0;

function display(elem) {elem.style.display=""; mousein=true;}
function hide(elem) {elem.style.display="none"; mousein=false;}

function makearray(n) {
    this.length = n;
    for(var i = 1; i <= n; i++)
        this[i] = 0;
    return this;
}

hexa = new makearray(16);
for(var i = 0; i < 10; i++)
    hexa[i] = i;
hexa[10]="a"; hexa[11]="b"; hexa[12]="c";
hexa[13]="d"; hexa[14]="e"; hexa[15]="f";

function hex(i) {
    if (i < 0)
        return "00";
    else if (i > 255)
        return "ff";
    else
       return "" + hexa[Math.floor(i/16)] + hexa[i%16];}

function gethexcolor(r,g,b) {
      var hr = hex(r); var hg = hex(g); var hb = hex(b);
      c = "#"+hr+hg+hb;
      return c;
}

function ft()
{
 sr=12;
 sg=2;
 sb=123;
 r=Math.round(sr+i/100*(255-sr));
 g=Math.round(sg+i/100*(255-sg));
 b=Math.round(sb+i/100*(255-sb));
 div1.style.color=gethexcolor(r,g,b);
 div2.style.color=gethexcolor(r,g,b);
 div3.style.color=gethexcolor(r,g,b);
 img1.style.filter='alpha(Opacity='+i+')';
 img2.style.filter='alpha(Opacity='+i+')';
 img3.style.filter='alpha(Opacity='+i+')';
 i++;
 if (i>100)
 {
  clearInterval(timer);
  timer=0;
  if (mousein==false)
  {
   div1.style.display="none";
   div2.style.display="none";
   div3.style.display="none";  
  }
 }
}

function fadetext()
{
 if (timer==0)
 {
  div1.style.display="";
  div2.style.display="";
  div3.style.display="";
  i=0;
  if (mousein==false) timer=setInterval("ft()",10);
  div1.style.color="#000000";
  div2.style.color="#000000";
  div3.style.color="#000000";
 }
 mousein=true;
}

function hideall()
{
 if (timer==0)
 {
  i=98;
  timer=setInterval("ft()",10);
 }
 mousein=false;
}





