var text = 0;

var message=new Array();
  message[0] = "Metropolia otti käyttöönsä WirePocketin edut ja kortin ensimmäisenä Suomessa."
  message[1] = "Liity sinäkin mukaan WirePockettiin. Ota yhteyttä: sales[ät]wirepocket.com"
  message[2] = "Aktiivinen myyntipäällikkö, liity joukkoomme mobiilimarkkinoinnin huipulle."

function changeText() {
  if (message.length > 0) {
	var newtitle = message[text];
	var descript = document.getElementById("descript"); 
	descript.firstChild.nodeValue=newtitle;
    text++;
  }
  if (text == 3) {text = 0; }  // Montako uutista
    window.setTimeout("changeText()", 4500); }  // Nopeus

function addLoadEvent(func) {
  var oldonload = window.onload;
  //var newnews = 

  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  changeText();
});

