
<!--

function mouseover(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/tab' + name + 'on.gif';
    }
}

function mouseout(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/tab' + name + '.gif';
    }
}

function mouseoverGIF(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/' + name + 'on.gif';
    }
}

function mouseoutGIF(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/' + name + '.gif';
    }
}


function mouseoverJPG(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/' + name + 'on.jpg';
    }
}

function mouseoutJPG(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/' + name + '.jpg';
    }
}


function mouseoverARW(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/orangearrowon.gif';
    }
}

function mouseoutARW(name)
{
    if (name.length > 0)
    {
        document.images[name].src = 'images/orangearrow.gif';
    }
}

function GetCookie(value)
{
    if (document.cookie)
    {
        index = document.cookie.indexOf(value, 0);
        if (index != -1)
        {
            begin = (document.cookie.indexOf("=", index) + 1);
            if (begin == 0)
            {
                return "";
            }
            
            end   = document.cookie.indexOf(";", index);
            if (end == -1)
            {
                end = document.cookie.length;
            }
            return unescape(document.cookie.substring(begin, end));
        }
    }
    return;
}

var aQuoteItems = new Array(
"&quot;TestStream has saved us days of manpower in populating large training domains with patients, orders, alerts, allergies and much more.&quot;<BR><BR><I>Sheetal Ram<BR>Health Support Services<BR>NSW, Australia</I>",
"&quot;TestStream has significantly increased the quality of orders testing, and has uncovered many build issues which manual testing would not have uncovered.&quot;<BR><BR><I>Sheetal Ram<BR>Health Support Services<BR>NSW, Australia</I>",
"&quot;TestStream has been a 'life saver' performing our Blood Bank Validation for Cerner Classic and Millennium. It allowed automated testing with minimal resources and ensured continuation of our AABB and FDA accreditation.&quot;<BR><BR><I>Pam Vandenbos<BR>Memorial Hospital<BR>Colorado Springs, CO</I>",
"&quot;We're a large health system and TestStream's Cerner Millennium Blood Bank modules save us over 500 hours per hospital for validation testing.&quot;",
"&quot;The action and error detail TestStream includes with each screen shot is incredibly valuable in determining what is going on.&quot;",
"&quot;Working with TestStream has helped multiple Cerner Millennium application teams better understand their applications and build.&quot;",
"&quot;We've been impressed how easy it is to move TestStream to different versions of Cerner Millennium.&quot;"
	);
var iCurItem = Math.floor(Math.random()*5);
var iNumItems = aQuoteItems.length;
var iDelayMilliseconds = 10000;

var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var browserIE4 = ((browserName == "Microsoft Internet Explorer") && (browserVer >= 4));
//if ((!(browserIE4)) && (iNumItems != null))
//{
//	for (var i = 0; i < iNumItems; i++) 
//	{
//	   aQuoteItems[i] = stripHTML(aQuoteItems[i]);
//	}
//}

function stripHTML(sHTML) 
{
	var sOutText = "";
	var iTagStart;
	var iTagEnd = 0;
	
	// look for the start of the first tag
	iTagStart = sHTML.indexOf("<");
	// repeat until we find no more HTML opening brackets
	while (iTagStart != -1) {
		// add the text since the last tag (or the beginning) until
		// the start of this tag
		sOutText += sHTML.substring(iTagEnd, iTagStart);
		// find the end of this tag
		iTagEnd = sHTML.indexOf(">", iTagStart) + 1;
		// find the start of the next tag
		iTagStart = sHTML.indexOf("<", iTagEnd);
	}
	if (iTagEnd != 0)
	{
		// finish up by adding the rest of the string
		sOutText += sHTML.substring(iTagEnd, sHTML.length);
	} else 
	{
		// no HTML was found, so just return the string we got
		sOutText = sHTML;
	}
	// return the result string
	return sOutText;
}

function showNextItem() 
{
	var sIEHTML;
	
	// show the text
	if (iNumItems != null) {
		if (browserIE4) {
			// IE4+ specific code that removes the TEXTAREA control
			// and displays read-only text in a table
			sIEHTML = '<CENTER><FONT CLASS="quotes">';
			sIEHTML += aQuoteItems[iCurItem];
			sIEHTML += '</FONT></CENTER>';
			QuoteDiv.innerHTML = sIEHTML
		} else {
			// code for Netscape and other browsers
			sIEHTML = '<CENTER><FONT CLASS="quotes">';
			sIEHTML += aQuoteItems[iCurItem];
			sIEHTML += '</FONT></CENTER>';
			QuoteDiv.innerHTML = sIEHTML
		}
		// set the next item, roll-over to the start of the list, if needed
		iCurItem = Math.floor(Math.random() * iNumItems);
		// run this function again after a delay
		setTimeout("showNextItem()", iDelayMilliseconds);
	}
}


//-->
