function AliceListMouseOver(obj)
{
  obj.parentNode.style.listStyleImage = "url(images/arrow.png)";
}

function AliceListMouseOut(obj)
{
  obj.parentNode.style.listStyleImage = "url(images/arrow2.png)"
}

function divMouseOver(obj)
{
  obj.style.fontWeight = 'bold'; 
  obj.firstChild.src = 'images/arrow3.png';  
  obj.style.backgroundColor = '#cccccc';
}

function divMouseOut(obj)
{
  obj.style.fontWeight = 'normal'; 
  obj.firstChild.src = 'images/arrow2.png';
  obj.style.backgroundColor = '#ffffff';
}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */

function setupFadeLinks() {
  arrFadeLinks[0] = "#";
  arrFadeTitles[0] = "Since 1993, i4i has been a leader in the design and development of collaborative content solutions.";
  arrFadeLinks[1] = "#";
  arrFadeTitles[1] = "\"... our partnership with i4i is critical to our moving forward in the pharmaceutical area ...\"<br/><br/><span style='font-style: italic'>James Kelleher, Generis CEO</span> ";
  arrFadeLinks[2] = "#";
  arrFadeTitles[2] = "\"i4i is one of the best partners I've had the pleasure of working with. They worked with us throughout all phases of the project to address our unique needs\"<br/><br/><span style='font-style: italic'>Jefferey Cohen, Biogen Idec</span> ";
  arrFadeLinks[3] = "#";
  arrFadeTitles[3] = "\"x4o has met our expectations, and then some.\"<br/><br/><span style='font-style: italic'>Mike Harfield, Bell South</span> ";
  arrFadeLinks[4] = "#";
  arrFadeTitles[4] = "\"We are very satisfied with the A4L software. i4i has produced a very user friendly product to prepare labeling according to FDA requirements. The i4i support staff are friendly and have been very responsive to our questions and concerns.\"<br/><br/><span style='font-style: italic'>John Signorin, Novo Nordisk</span> ";
  

 }

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 235;
var m_FadeIn= 0;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 5000;
var m_bFadeOut = true;

var m_iFadeInterval;

window.onload = Fadewl;

var arrFadeLinks;
var arrFadeTitles;
var arrFadeCursor = 0;
var arrFadeMax;

function Fadewl() {
  m_iFadeInterval = setInterval(fade_ontimer, 10);
  arrFadeLinks = new Array();
  arrFadeTitles = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeLinks.length-1;
  setFadeLink();
}

function setFadeLink() {
  var ilink = document.getElementById("fade_link");
  ilink.innerHTML = arrFadeTitles[arrFadeCursor];
  ilink.href = arrFadeLinks[arrFadeCursor];
}

function fade_ontimer() 
{
  if (m_bFadeOut) 
  {
    m_Fade+=m_FadeStep;
    if (m_Fade>m_FadeOut) 
    {
      arrFadeCursor++;
      if (arrFadeCursor>arrFadeMax)
        arrFadeCursor=0;
      setFadeLink();
      m_bFadeOut = false;
    }
  } 
  else 
  {
    m_Fade-=m_FadeStep;
    if (m_Fade<m_FadeIn) 
    {
      clearInterval(m_iFadeInterval);
      setTimeout(Faderesume, m_FadeWait);
      m_bFadeOut=true;
    }
  }
  var ilink = document.getElementById("fade_link");
  if ((m_Fade<m_FadeOut)&&(m_Fade>m_FadeIn))
    ilink.style.color = "#" + ToHex(m_Fade);
}

function Faderesume() {
  m_iFadeInterval = setInterval(fade_ontimer, 10);
}

function ToHex(strValue) {
  try {
    var result= (parseInt(strValue).toString(16));

    while (result.length !=2)
            result= ("0" +result);
    result = result + result + result;
    return result.toUpperCase();
  }
  catch(e)
  {
  }
}
