var newsItems=new Array("<a href='/DeepSleep/'>March 21, 2010 - DeepSleep Widget 1.5 is released. Better compatibility with Mac OS X 10.6 Snow Leopard.</a>","<a href='/Bluetoggle/'>March 10, 2010 - Bluetoggle 1.2.0 is released. It now works with Mac OS X 10.6 Snow Leopard.</a>","<a href='/gUnit/'>September 18, 2009 - gUnit 1.3 is released with new language support. Get it today at the iTunes App Store.</a>");var newsItemsIndex=0;var newsItemsFadeIndex=0;function headlineSetOpacity(b,a){b.style.opacity=a;b.style.filter="alpha(opacity="+(a*100)+")"}function headlineFadeCurveOut(a){if(a==0){return 0}else{return 1-(Math.pow(2,5-a/2)/32)}}function headlineFadeCurveIn(a){if(a==0){return 0}else{return Math.pow(2,a/2)/32}}function headlineFadeOut(){var b=document.getElementById("indexnewsitem");var a=headlineFadeCurveOut(--newsItemsFadeIndex);if(a>0){headlineSetOpacity(b,a);setTimeout("headlineFadeOut()",10)}else{headlineSetOpacity(b,0);setTimeout("headlineNext()",300)}}function headlineFadeIn(){var b=document.getElementById("indexnewsitem");var a=headlineFadeCurveIn(++newsItemsFadeIndex);if(a<1){headlineSetOpacity(b,a);setTimeout("headlineFadeIn()",10)}else{headlineSetOpacity(b,1);setTimeout("headlineFadeOut()",5000)}}function headlineNext(){var a=document.getElementById("indexnewsitem");a.innerHTML=newsItems[newsItemsIndex];newsItemsIndex=(newsItemsIndex+1)%newsItems.length;headlineFadeIn()}function headlineInit(){headlineSetOpacity(document.getElementById("indexnewsitem"),0);headlineNext()};