﻿var ypos, fade, quotespeed, randnum;

var quote = new Array() ;
quote[0] = "All business process modeling is handled with QualiWare Lifecycle Manager."
quote[1] = "QLM is an important management system tool for further implementation work on a common enterprise model at StatoilHydro."
quote[2] = "QLM is the foundation of our quality management system."
quote[3] = "IBM will have the added benefit of being able to ‘click’ on objects, view detail definitions, and navigate around the Living Architecture via their intranet."
quote[4] = "QualiWare offers flexibility in the definition of IBM’s architecture content and delive­rables."
quote[5] = "QualiWare has provided the capability for IBM to deliver a business model that integrates business driven application architecture, all within one modeling software package."

var quoteref = new Array();
quoteref[0] = "StatoilHydro, Terje Lie, User responsible for Statoil’s Business Process Model"
quoteref[1] = "StatoilHydro, Terje Lie, User responsible for Statoil’s Business Process Model"
quoteref[2] = "StatoilHydro, Harald Wesenberg, Discipline Advisor for Enterprise Architecture in the Corporate Staff of IS/IT"
quoteref[3] = "IBM, Living Architecture project leader"
quoteref[4] = "IBM, Living Architecture project leader"
quoteref[5] = "IBM, Living Architecture project leader"


function get_random()
{
  return Math.floor(Math.random()*quote.length);
}

function getquote() 
{
  if(!quotetext.innerHTML)
  {
    randnum = get_random();
    quotetext.innerHTML =  '"'+quote[randnum]+'"'
    quotetext.innerHTML += '<span class="quoteref">'+quoteref[randnum]+'</span>'
    ypos = 12;
    fade = 0;
    character = 0;
    quotespeed = 80;
    timeout = 45;
  }
  quotetext.style.top = ypos;
  quotetext.filters.alpha.opacity = fade;
  if (fade<100 && ypos==12) 
  {
    fade += 5;
  }
  else
  {
    timeout--;
    if(timeout < 0)
    {
      if (ypos >= -20) 
      {
        ypos -= 1; 
        fade -= 4;
        if (ypos == -20)
          quotetext.innerHTML = "" ;
      }
    }
  }
  setTimeout("getquote(quote)", quotespeed);
}