// JavaScript Document
var a_QuoteText = new Array(
	'One of the best decisions ever made was utilizing the services of ABC Dictation.  Their efficiency, productivity and willingness to adapt to our needs, especially timelines, is impeccable.  ABC Dictation personifies outstanding customer service.  If you are currently using another provider, you are not using the best.'
	, 'I have been working with Mary and Barry for over five years now and I am very satisfied with the service.  They are reliable, fast, and friendly.  I would recommend them to any physician as their accuracy and dependability make it a pleasure to dictate.'
	, 'ABC Dictation has transcribed my daily consult notes and IMEs quickly and accurately for more than two years. I highly recommend their exceptional turnaround time and superior quality.'
	, 'We are very pleased with ABC Dictation&rsquo;s quality and timely service.  The dictation service is accessible and provides prompt quality service.  One of our assessors commented, &ldquo;ABC Dictation is the best dictation service I have ever used in my 15 years of dictating medical reports.&rdquo;'
	, 'On the subject of why I love working for ABC Dictation Ltd.: I am so proud to be associated with ABC - I believe they have the best turnaround time for their clients in the industry!  There is an obvious group spirit evident between staff and employer, with a &ldquo;Let&rsquo;s get it done - promptly and correctly&rdquo;'
	, 'Working for ABC Dictation has been and continues to be an exciting and rewarding experience.  I am very happy to be part of such a dedicated team of professionals.'
	, 'It is a real joy to work with ABC Dictation.  I appreciate their strong commitment to accuracy, integrity, and professionalism, while maintaining a personal relationship that I can trust.  I look forward to many more years as a member of this team.');

var a_QuoteSource = new Array(
	'- Cheryl Baker, Manager Finance & Administration, Health Recovery Group Inc.'
	, '- David Etlin MD FRCPC, Medical Director, Health Recovery Group'
	, '- Arthur E. Karasik, MD, FRCPC<br>Internal Medicine, Rheumatology'
	, '- Brian M. LeDrew, Chief Operating Officer, Herrold & Vernon EvalWorks'
	, '- Sheila Belanger'
	, '- Lucie C.'
	, '- Terry Cohoe, RPN and Medical Transcriptionist');
var current = 0;
var last1 = 0;
var last2 = 0;
var QuoteText = document.getElementById('QuoteText');
var QuoteSource = document.getElementById('QuoteSource');

/* cross browser method to set opacity */
function setOpacity(object, level)
{
	object.style.opacity = level;
	object.style.MozOpacity = level;
	object.style.KhtmlOpacity = level;
	object.style.filter = "alpha(opacity=" + (level * 100) + ");";
}

    /* rotate and create timers to fade the testimonial in */
function fadeIn()
{
	last2 = last1;
	last1 = current;
	while ((current == last1) || (current == last2))
	{
		current = Math.floor(Math.random()*7);
	}
	QuoteText.innerHTML = a_QuoteText[current];
	QuoteSource.innerHTML = a_QuoteSource[current];
	for (i = 0; i <= 1; i = i + 0.05)
	{
		setTimeout("setOpacity(QuoteText, " + i + ")", i * 1000);
		setTimeout("setOpacity(QuoteSource, " + i + ")", i * 1000);
	}
	setTimeout("fadeOut()", 12000);
}

/* create timers to fade the testimonial away */
function fadeOut()
{
	for (i = 0; i <= 1; i = i + 0.05)
	{
		setTimeout("setOpacity(QuoteText, " + (1 - i) + ")", i * 1000);
		setTimeout("setOpacity(QuoteSource, " + (1 - i) + ")", i * 1000);
	}
	setTimeout("fadeIn()", 1000);
}
fadeIn(); 
