<!-- Paste this code into an external JavaScript file named: marquee.js  -->
function setupFadeLinks() {
  arrFadeLinks[0] = "http://www.gandalfgroup.ca/downloads/2010/consumerology/Consumerology_Aug_2010_MAIN.pdf";
  arrFadeTitles[0] = "Corporate reputation matters to shoppers. One in five Canadian consumers will desert a brand whose product they like if they do not approve of the corporation's approach to social responsibility.";
  arrFadeSources[0] = "Consumerology IX";
  
  arrFadeLinks[1] = "http://www.gandalfgroup.ca/downloads/2010/consumerology/Consumerology_Aug_2010_MAIN.pdf";
  arrFadeTitles[1] = "Goodwill starts at home. Treating employees well is a more important component of social responsibility than environmental stewardship or community sponsorships.";
  arrFadeSources[1] = "Consumerology IX";
  
  arrFadeLinks[2] = "http://www.bensimonbyrne.com/pdf/Economy_Mar2010.pdf";
  arrFadeTitles[2] = "Disappointment is rampant across the country. Sixty percent of Canadians feel they are behind financially from where they had expected to be at this point in their life.";
  arrFadeSources[2] = "Consumerology VIII";
  
  arrFadeLinks[3] = "http://www.bensimonbyrne.com/pdf/Economy_Mar2010.pdf";
  arrFadeTitles[3] = "Structural weakness in the economy. Most Canadians think that our economy post recession will be weaker than it was before the recession.";
  arrFadeSources[3] = "Consumerology VIII";
  
  arrFadeLinks[4] = "http://www.gandalfgroup.ca/downloads/2010/consumerology/Consumerology_Retirement_Oct2010.pdf";
  arrFadeTitles[4] = "We want to have sound body and mind. Canadians' greatest fears about their retirement involve either physical or mental deterioration, but almost half of Canadians fear being poor in retirement.";
  arrFadeSources[4] = "Consumerology X";
  
  arrFadeLinks[5] = "http://www.gandalfgroup.ca/downloads/2010/consumerology/Consumerology_Retirement_Oct2010.pdf";
  arrFadeTitles[5] = "We have something to look forward to. Retired people are more likely to report being happy than working people.";
  arrFadeSources[5] = "Consumerology X";
  
  arrFadeLinks[6] = "http://www.gandalfgroup.ca/downloads/2010/Q1/C-SuiteMar2010%20FinalTC.pdf";
  arrFadeTitles[6] = "Step out of character. Most of Canada's leading executives think that tax hikes will be needed to eliminate the federal deficit.";
  arrFadeSources[6] = "C Suite March 2010";
  
  arrFadeLinks[7] = "http://www.gandalfgroup.ca/downloads/2010/Q1/C-SuiteMar2010%20FinalTC.pdf";
  arrFadeTitles[7] = "I can't read the budget through those rose coloured glasses. Almost all executives think that 5 year forecasts are unreliable planning tools for government.";
  arrFadeSources[7] = "C Suite March 2010";
  
  arrFadeLinks[8] = "http://www.gandalfgroup.ca/downloads/2010/Q2/C-Suite-21JUNE2010.pdf";
  arrFadeTitles[8] = "Just as they started to figure out health care next door. Most Canadian businesspeople think the United States is in decline both economically and in terms of world influence.";
  arrFadeSources[8] = "C Suite June 2010";
  
  arrFadeLinks[9] = "http://www.gandalfgroup.ca/downloads/2010/Q2/C-Suite-21JUNE2010.pdf";
  arrFadeTitles[9] = "Fact based decision making. Many Canadian executives do not believe in the science of climate change - half think it has been overstated and even believe that unchecked it will not result in devastating impacts.";
  arrFadeSources[9] = "C Suite June 2010";
  
  arrFadeLinks[10] = "http://www.gandalfgroup.ca/downloads/2010/Q3/GandalfGroup-C-Suite%20October%20Report-dec10.pdf";
  arrFadeTitles[10] = "Probably room for both to pick up their game a bit. Canadian business leaders think Harper is a better PM than Obama is a President.";
  arrFadeSources[10] = "C Suite October 2010";
  
  arrFadeLinks[11] = "http://www.gandalfgroup.ca/downloads/2010/Q3/GandalfGroup-C-Suite%20October%20Report-dec10.pdf";
  arrFadeTitles[11] = "Gutsy thing to say. Executives think Canada is in the middle of the pack of nations when it comes to innovation, in part because they themselves are too risk averse.";
  arrFadeSources[11] = "C Suite October 2010";
  
  arrFadeLinks[12] = "http://www.gandalfgroup.ca/downloads/2010/Q3/GandalfGroup-C-Suite%20October%20Report-dec10.pdf";
  arrFadeTitles[12] = "But check your Blackberry. People running Canadian businesses think that work/life balance is something for the employee, not the employer, to figure out.";
  arrFadeSources[12] = "C Suite October 2010";
  
  arrFadeLinks[13] = "http://www.cwb.ca/public/en/farmers/surveys/producer/pdf/survey_060910.pdf";
  arrFadeTitles[13] = "You should have seen the federal election that year! In 2006 the federal government ran a plebiscite to determine the future of the Canadian Wheat Board. Four years later, 60% of wheat and barley farmers say that plebiscite was flawed and unrepresentative.";
  arrFadeSources[13] = "CWB Spring Producer Survey";
  
  arrFadeLinks[14] = "http://www.cwb.ca/public/en/farmers/surveys/producer/pdf/survey_060910.pdf";
  arrFadeTitles[14] = "Most prairie farmers think a World Trade Organization agreement will cost them money, not open markets to them.";
  arrFadeSources[14] = "CWB Spring Producer Survey";
  
  arrFadeLinks[15] = "http://www.gandalfgroup.ca/downloads/2010/Q2/C-Suite-21JUNE2010.pdf";
  arrFadeTitles[15] = "You never know the worth of water until the well is dry, except in Canada. Canadian executives are most likely to want restrictions on foreign ownership in its freshwater supply sector, ahead of the banking, media, and resource sectors.";
  arrFadeSources[15] = "C Suite June 2010";
  
  arrFadeLinks[16] = "http://www.bensimonbyrne.com/pdf/Economy_Mar2010.pdf";
  arrFadeTitles[16] = "Not enough hours in a day. Those with children at home in Canada are doing more work, and less relaxing and recreation, compared to those without children at home.";
  arrFadeSources[16] = "Consumerology VIII";
  
  arrFadeLinks[17] = "http://www.bensimonbyrne.com/pdf/Economy_Mar2010.pdf";
  arrFadeTitles[17] = "All work and no play is making us dull. The things that Canadians are most likely to plan to spend less on compared to last year are dining out, going to bars and clubs, and going to sporting events.";
  arrFadeSources[17] = "Consumerology VIII";
  
  arrFadeLinks[18] = "http://www.cwb.ca/public/en/farmers/surveys/producer/pdf/survey_060910.pdf";
  arrFadeTitles[18] = "The CWB is more than 'just a grain company'. Over three-quarters of Western Canadian grain farmers have more confidence in the Canadian Wheat Board to protect their interests than an American company.";
  arrFadeSources[18] = "CWB Producer Survey";
  
  arrFadeLinks[19] = "http://www.gandalfgroup.ca/downloads/2010/Q3/GandalfGroup-C-Suite%20October%20Report-dec10.pdf";
  arrFadeTitles[19] = "Executives plan to open their doors and wallets in 2011. Nearly two-thirds of executives are likely to increase capital spending, deploy cash reserves, and hire new staff."; 
  arrFadeSources[19] = "C Suite October 2010";
}

// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.

var m_FadeOut = 255;
var m_FadeIn=0x66;
///var m_FadeInLink=#925891;
var m_Fade = 0;
var m_FadeStep = 3;
//var m_FadeWait = 15000;
var m_FadeWait = 8000;
var m_bFadeOut = true;

var m_iFadeInterval;

var ilink = document.getElementById("fade_link");
//if(ilink)
	//window.onload = Fadewl;	

var arrFadeLinks;
var arrFadeTitles;
var arrFadeSources;

if(!document.cookie)
    document.cookie = 0;

    document.cookie = parseInt(document.cookie);
	
 //   alert(document.cookie);
//    document.next.submit();
	
var arrFadeCursor = 0;
var arrFadeMax;

function Fadewl() {
	 var idiv = document.getElementById("fade_base");
	 if(idiv == null)
	 	return;
  m_iFadeInterval = setInterval(fade_ontimer, 10);
  arrFadeLinks = new Array();
  arrFadeTitles = new Array();
  arrFadeSources = new Array();
  setupFadeLinks();
  arrFadeMax = arrFadeLinks.length-1;
  setFadeLink();
}

function setFadeLink() {
  var idiv = document.getElementById("fade_base");
  //var guts = arrFadeTitles[parseInt(document.cookie)] + "<div style='padding-top: 7px;font-size: smaller' >(<B>Source</B>: " + arrFadeSources[parseInt(document.cookie)] + ' <a id="fade_link" target="_blank" href="' + arrFadeLinks[parseInt(document.cookie)] + '">' + arrFadeLinks[parseInt(document.cookie)] + '</a>)</div>';
  var guts = arrFadeTitles[parseInt(document.cookie)] + "<div style='padding-top: 7px;font-size: smaller' >" + ' <a id="fade_link" target="_blank" href="' + arrFadeLinks[parseInt(document.cookie)] + '">(<B>Source</B>: ' + arrFadeSources[parseInt(document.cookie)] + '</a>)</div>';

  idiv.innerHTML = guts;
}

function fade_ontimer()
{
  if (m_bFadeOut) 
  {
    m_Fade+=m_FadeStep;
  
  	if (m_Fade>m_FadeOut) 
	{
      document.cookie = parseInt(document.cookie)+1;
      if (parseInt(document.cookie)>arrFadeMax)
	  {
		 document.cookie = 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");
		 ilink.style.color = "#925891";
    }
  }
  
  var ibase = document.getElementById("fade_base");
  var ilink = document.getElementById("fade_link");
  
  if ((m_Fade<m_FadeOut)&&(m_Fade>m_FadeIn))
  {
    ilink.style.color = "#" + ToHex(m_Fade);
	ibase.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)
  {
  }
}



