//var textStrings = new Array("Next generation of 3D Online Interactive Entertainment", "Many companies are developing a strategy for presence in 3D on the Internet – what is your strategy?", "Let us create the virtual universe together", "A unique mix of online entertainment, e-commerce and social interaction in 3D");
var textStrings = new Array('<img src="images/vu11_spot.jpg" alt="ROCKtropia spot" /><br /><img style="padding-bottom:30px;padding-right:2px;float:left;" src="images/spot_icon.gif" /> <a href="entropia-platform/new-planetary-system/">New Planetary System Discovered in Entropia Universe</a>', '<img src="images/esa_spot.jpg" alt="ESA spot" /><br /><img style="padding-bottom:30px;padding-right:2px;float:left;" src="images/spot_icon.gif" /> <a href="entropia-platform/esa-study/index.xml">MindArk completes Online Games study contract for European Space Agency</a>');

var arrayCounter = 0;

document.observe('dom:loaded', function() {
   textFader();
});


function textFader() {
  if(!$('fadingTextElement')) {return false;}
  if(textStrings[arrayCounter%textStrings.length] == undefined) {return false;}

  $('fadingTextElement').innerHTML = textStrings[arrayCounter%textStrings.length];
  new Effect.Opacity('fadingTextElement', { from: 0, to: 1, duration: 0.5 });
  new Effect.Opacity('fadingTextElement', { queue: 'end', from: 1, to: 1, duration: 7 });
  new Effect.Opacity('fadingTextElement', { queue: 'end', from: 1, to: 0, duration: 0.5, afterFinish: nextText });

}

function nextText() {
  arrayCounter++;
  textFader();
}
