if(document.images)
{ 
menumon = new Image; menumon.src = "images/grad1.gif"; 
menumoff = new Image; menumoff.src = "images/0.gif"; 
menumon1 = new Image; menumon1.src = "images/bg1.gif"; 
menumoff1 = new Image; menumoff1.src = "images/bg.gif"; 
}
function MouseOn(name,linkname)
{
	if( document.all )  //for MSIE >=4.0
	{
	document.all[name].style.cursor = "hand"; 
	document.all[name].style.backgroundImage="url("+menumon.src+")";
	document.all[linkname].style.color="#E67016";
	}
	
	else if( document.getElementById ) //for Netscape >=6.0
	{
	document.getElementById(name).style.cursor = "hand"; 
	document.getElementById(name).background="url("+menumon.src+")";	
	document.getElementById(linkname).Color="#E67016";
	}
}

function MouseOff(name,linkname)
{
	if( document.all )  //for MSIE >=4.0
	{
	document.all[name].style.backgroundImage="url("+menumoff.src+")";
	document.all[linkname].style.color="#0098B4";
	}
	
	else if( document.getElementById ) //for Netscape >=6.0
	{
	document.getElementById(name).background="url("+menumoff.src+")";	
	document.getElementById(linkname).Color="#0098B4";
	}
}


function MouseOn1(name,linkname)
{
	if( document.all )  //for MSIE >=4.0
	{
	document.all[name].style.cursor = "hand"; 
	document.all[name].style.backgroundImage="url("+menumon1.src+")";
	document.all["p"+name].style.backgroundImage="url("+menumon1.src+")";
	document.all["pup"+name].style.backgroundImage="url("+menumon1.src+")";
	document.all[linkname].style.color="#E67016";
	}
	
	else if( document.getElementById ) //for Netscape >=6.0
	{
	document.getElementById(name).style.cursor = "hand"; 
	document.getElementById(name).background="url("+menumon1.src+")";	
	document.getElementById("p"+name).background="url("+menumon1.src+")";	
	document.getElementById("pup"+name).background="url("+menumon1.src+")";	
	document.getElementById(linkname).Color="#E67016";
	}
}

function MouseOff1(name,linkname)
{
	if( document.all )  //for MSIE >=4.0
	{
	document.all[name].style.backgroundImage="url("+menumoff1.src+")";
	document.all["p"+name].style.backgroundImage="url("+menumoff1.src+")";
	document.all["pup"+name].style.backgroundImage="url("+menumoff1.src+")";
	document.all[linkname].style.color="#0098B4";
	}
	
	else if( document.getElementById ) //for Netscape >=6.0
	{
	document.getElementById(name).background="url("+menumoff1.src+")";	
	document.getElementById(linkname).Color="#0098B4";
	document.getElementById("p"+name).background="url("+menumoff1.src+")";	
	document.getElementById("pup"+name).background="url("+menumoff1.src+")";	
	}
}



count=1;complete=0;
k=0;
function change()
{
//if (navigator.appName != "Netscape" && complete==0)
if (complete==0)
        {
        //test_image();
        if (count==6) {count=1;}
        if (count==1) precount=5;
        else precount=count-1;
        
	if( document.all )  //for MSIE >=4.0
	{
        document.all['td'+count].style.background="3AB3CB";
        document.all['td'+precount].style.background="FFFFFF";
	}
	
	else if( document.getElementById ) //for Netscape >=6.0
	{
	document.getElementById('td'+count).bgColor="3AB3CB";
	document.getElementById('td'+precount).bgColor="FFFFFF";
	}
        
        count++;
        k++;
		if (k<"25") {window.setTimeout("change()", 100);}
		else {count=0;}
        }
}

function test_image() {
complete=1;
for (i=0;i<document.images.length;i++)
        {
        if (document.images[i].complete==false) complete=0;
        }
}

