hexinput=255  // Initial color value.
var inc=-1 //increment variable

function fadingtext(){	         	
if(hexinput>0) {	
hexinput-=11; // increase color value
document.getElementById("fader").style.color="rgb("+hexinput+","+hexinput+","+hexinput+")"; // Set color value.
setTimeout("fadingtext()",100);	
}
else
hexinput=255  //reset hex value
}

function changetext(){
if (!document.getElementById) return
inc++
if (inc==0)
document.getElementById("fader").innerHTML="<strong><div style='color:red;'>Breaking News</div></strong><hr/> <a href='/news/industry/'>Cooperation agreement signed between AWDC and Shanghai Diamond exchange. [more] </a> <br/><br/><a href='/news/company/'>The Diamond Exchange Unveils Fraud-Proof System for Certificates. [more] </a> <br/><br/><a href='/news/industry/'>Turning to diamonds in the rough times. [more] <br/> </a><br/><a href='/news/industry/articles/20112009.shtml'>Diamond Exchange Supporting Women in Africa. [more]</a>"
//else if (inc==1)
//document.getElementById("fader").innerHTML="<strong>Canada Offices</strong><hr/> Three new Diamond Exchange offices have opened in Canada, expanding the Toronto Canada Head Office."
//else if (inc==2)
//document.getElementById("fader").innerHTML="<strong>New Location!</strong><hr/> Our Brisbane office is now open at the Riverside Centre. Contact 1300 DIAMONDS (1300 342 666) for an appointment."
//else{
//document.getElementById("fader").innerHTML="<strong>London Office</strong><hr/> A new Diamond Exchange office is opening in London in late 2009.<br /><br />"
//inc=-1
//}
fadingtext()
setTimeout("changetext()",10000)
}

window.onload=changetext
