<!-- Paste this code into an external JavaScript file named: marquee.js  -->
// 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=0;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 8000;//this is the line you change to speed up the fade cycle
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(23));//increment this for each quote added
    while (result.length !=2)
            result= ("0" +result);
    result = result + result + result;
    return result.toUpperCase();
  }
  catch(e)
  {
  }
}
/* 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 */
//extra line breaks are necessary to keep the page from jumping due to contrasting line numbers in each quote.
function setupFadeLinks() {
  arrFadeLinks[0] = "http://potomacindexing.com";
  arrFadeTitles[0] = "<p>&quot;You are always uppermost in my mind when I need indexing. You do such a great job with such professionalism. Thanks.&quot;</p>";
  arrFadeLinks[1] = "http://potomacindexing.com";
  arrFadeTitles[1] = "<p>&quot;I appreciate how much thought you're putting into the organization of the indexes. I feel comfortable leaving that in your hands.&quot;</p>";
  arrFadeLinks[2] = "http://potomacindexing.com";
  arrFadeTitles[2] = "<p>&quot;You did a fantastic job; came in on time, manuscript very readable; cross references lead somewhere; and thorough.&quot;</p>";
  arrFadeLinks[3] = "http://potomacindexing.com";
  arrFadeTitles[3] = "<p>&quot;Thank you for your hard work...effective and efficient...and for the FAST turnaround. It's greatly appreciated.&quot;</p>";
  arrFadeLinks[4] = "http://potomacindexing.com";
  arrFadeTitles[4]="<p>&quot;I'm lucky to get you... I love your work!&quot;</p>";
    arrFadeLinks[5] = "http://potomacindexing.com";
  arrFadeTitles[5]="<p>&quot;Thanks SO much for getting these indexes finished--and ahead of schedule, too!&quot;</p>";
    arrFadeLinks[6] = "http://potomacindexing.com";
  arrFadeTitles[6]="<p>&quot;Your customer service is incredible!...You are a miracle worker.&quot;</p>";
arrFadeLinks[7] ="http://potomacindexing.com";
 arrFadeTitles[7]="<p>&quot;And thanks for all your support and morale boosts-- priceless!&quot;</p>";
    arrFadeLinks[8] = "http://potomacindexing.com";
  arrFadeTitles[8]="<p>&quot;Indexes are great--nice and clean. Thanks very much for your work on the project!&quot;</p>";
    arrFadeLinks[9] = "http://potomacindexing.com";
  arrFadeTitles[9]="<p>&quot;Wow!!! - and I do mean wow and all the exclamation marks!!! Congratulations to the Indexer. Amazing. Did I really write all that? Yup, I did, but it is amazing to see it indexed.&quot;</p>";
arrFadeLinks[10] = "http://potomacindexing.com";
  arrFadeTitles[10]="<p>&quot;We have had authors who have been very satisfied with your indexes, and of course when they're happy I'm happy. I like the fact that you can match [our] various topics to the proper indexer.&quot;</p>";
arrFadeLinks[11] = "http://potomacindexing.com";
  arrFadeTitles[11]="<p>&quot;Thank you for your hard work...effective and efficient...and for the FAST turnaround. It's greatly appreciated.&quot;</p>";
        arrFadeLinks[12] = "http://potomacindexing.com";
  arrFadeTitles[12]="<p>&quot;The index fits beautifully! You’re the best.&quot;</p>";
  
  arrFadeLinks[13] = "http://potomacindexing.com";
  arrFadeTitles[13]="<p>&quot;Working with PI is great!  They didn't hesitate to negotiate a higher fee from the client when I suggested it was lower than usual for that type of material.&quot;</p>";
    arrFadeLinks[14] = "http://potomacindexing.com";
  arrFadeTitles[14]="<p>&quot;I appreciate being part of Potomac. It means a lot that my peers consider my work more than OK.&quot;</p>";
   arrFadeLinks[15] = "http://potomacindexing.com";
  arrFadeTitles[15]="<p>&quot;I greatly appreciate the quick turnaround on this project. Thank you for the good work  and I look forward to future projects.&quot;</p>";
   arrFadeLinks[16] = "http://potomacindexing.com";
  arrFadeTitles[16]="<p>&quot;The index is amazing!&quot;</p>";
     arrFadeLinks[17] = "http://potomacindexing.com";
  arrFadeTitles[17]="<p>&quot;The index provides excellent research assistance\; for instance, the index entry on themes, such as African-American middle class, immigrant experience, and miscegenation, lead to many specific novels and authors...&quot;&nbsp;&#40;<em>Booklist</em> starred review&#41;</p>";  
     arrFadeLinks[18] = "http://potomacindexing.com";
  arrFadeTitles[18]="<p>&quot;I appreciate all your efforts, your prompt response, and your timely deliveries.&quot;</p>";
     arrFadeLinks[19] = "http://potomacindexing.com";
  arrFadeTitles[19]="<p>&quot;I enjoyed the whole experience and love the index. It is just what I want in an index.&quot;</p>";
arrFadeLinks[20] = "http://potomacindexing.com";
  arrFadeTitles[20]="<p>&quot;I was really impressed – you did a great job, even with that ridiculous schedule I stuck you with! So, thank you!!&quot;</p>";
  arrFadeLinks[21] ="http://potomacindexing.com";
 arrFadeTitles[21]="<p>&quot;I enjoyed the whole experience of working with you, and love the index. It is just what we wanted in an index.&quot;</p>";
 arrFadeLinks[22] ="http://potomacindexing.com";
 arrFadeTitles[22]="<p>&quot;I appreciate all your efforts, your prompt responses, and your timely deliveries.&quot;</p>";
 arrFadeLinks[23] ="http://potomacindexing.com";
 arrFadeTitles[23]="<p>&quot;Thanks, Kay; this is wonderful! Your hard work--not to mention your incredibly exceptional work--is always appreciated.&quot;</p>";
arrFadeLinks[24] = "http://potomacindexing.com";
  arrFadeTitles[24] = "<p>&quot;I checked out the index and I must say, I was impressed. Your indexer not only seems very thorough but also seems to have an understanding of the subject matter.&quot;</p>";
}

/*

Each quote must have this:
arrFadeLinks[x] ="http://potomacindexing.com";
Where x is the number of the quote in the series
and this
arrFadeTitles[x]="<p>&quot;New Quote&quot;</p><br />";
where New Quote is the actual quote and x is the number of the quote in the series

Thanks, Kay; this is wonderful! Your hard work--not to mention your incredibly exceptional work--is always appreciated

of course when they're happy I'm happy. I like the fact that you can match [our] various topics to the proper indexer."

"I was really impressed - you did a great job, even with that ridiculous schedule I stuck you with! So, thank you!!"

"And thanks for all your support and morale boosts-- priceless!"

"I enjoyed the whole experience of working with you, and love the index. It is just what we wanted in an index."

"I appreciate all your efforts, your prompt responses, and your timely deliveries."
arrFadeLinks[] ="http://potomacindexing.com";
 arrFadeTitles[]="<p>&quot; &quot;</p><br />";
---------------------------------------------------------------------


*/