function fadeHeadlineIn() { headline = document.getElementById("headline"); alpha = parseFloat(headline.style.opacity) + 0.05; if (alpha < 1) { headline.style.opacity = alpha; setTimeout("fadeHeadlineIn()", 10); } else { headline.style.opacity = 1.0; setTimeout("fadeHeadlineOut()", 5000); } } function fadeHeadlineOut() { headline = document.getElementById("headline"); alpha = parseFloat(headline.style.opacity) - 0.02; if (alpha > 0) { headline.style.opacity = alpha; setTimeout("fadeHeadlineOut()", 10); } else { headline.style.opacity = 0; displayNextHeadline(); } } var headlines = new Array( "March 23, 2010: Chess Openings — the latest iPhone and iPod touch app from Arizona Software", "October 10, 2009: ProVoc 4.2.4 is now available", "May 30, 2009: iLocalize 3.8.3 is now available", "March 2, 2009: Unit — the latest unit converter for iPhone and iPod touch from Arizona Software", "December 18, 2008: xFractal — Fractals on your iPhone", "September 2, 2008: Boinx Software acquires PhotoPresenter", "May 25, 2008: GraphClick 3.0 is now available", ""); var headlineIndex = 0; function displayNextHeadline() { headline = document.getElementById("headline"); headline.innerHTML = headlines[headlineIndex]; headlineIndex = (headlineIndex + 1) % (headlines.length - 1); headline.style.opacity = 0.0; setTimeout("fadeHeadlineIn()", 500); }