// Set global variables 
var win1;
var theObj;
var intervalID;
curQt = 0;

// Build Quote Array for each quote 
// Links are relative from root level, not from js folder
// Regular Text announcements, links, etc. just go in a <p></p> tag
// Customer Quotes must be in a <p class="cust"></p> tag
// Except for the tagline image (always quote0) Images don't need a <p></p> tag

quote = new Array();
	quote[0] = "<img src='images/hm-tagline3.gif' alt='Turning Data Into Actionable Intelligence' width='224' height='40' border='0' class='tagline'>"; // tagline

	quote[1] = "<p class='cust'>&#8220;[We] looked at a number of other telemanagement software providers before selecting SAI's Sierra Gold, and we're more convinced than ever that we made the right decision.&#8221;</p>";

	quote[2] = "<a href='http://www.cisco.com/pcgi-bin/ctdp/displayProfile.pl?PARTNER_ID=49629' target='_blank'><img src='images/logo-ciscopartner.gif' alt='Cisco technology partner' width='62' height='68' border='0'>";
	
	quote[3] = "<p class='cust'>&#8220;Sierra Gold was one of the best professional<br> decisions I have ever made and I wish that all <br>of our product rollouts were as successful.&#8221;</p>";
	
	quote[4] = "<p><a href='news/nepr_fedresults_042109.html'>SAI Partners with FedResults to Bring Sierra Gold <br>to the Federal Government Market</a></p>";

	quote[5] = "<p class='cust'>&#8220;Beyond SAI's customer focus, I'm thrilled with the functionality of Sierra Gold. This is an excellent product&#8212;robust, but suprisingly easy to use.&#8221;</p>";

	quote[6] = "<a href='https://devconnect.avaya.com/public/search/d_cprofile.jsp?search=1&i=525' target='_blank'><img src='images/logo-avayadevconnect.gif' alt='Avaya Developer Community Member' width='116' height='70' border='0'>";

	quote[7] = "<p class='cust'>&#8220;I can recommend SAI without hesitation to anyone seeking innovative solutions from a vendor who gives customer satisfaction its top priority.&#8221;</p>";

//	quote[7] = "<p><a href='news/nepr_aotmp_012109.html'>SAI Sponsors AOTMP Webinar <br> Call Accounting in a VoIP World</a></p>";

	quote[8] = "<a href='aboutus/au_affiliations.html' target='_blank'><img src='images/logo-itfma.gif' alt='ITFMA Member' width='134' height='44' border='0'></a><p>Member</p>";

//	quote[10] = "<a href='http://www.nortel.com/prd/dpp/join/ent_list.html#S' target='_blank'><img src='images/logo-nortel.gif' alt='Nortel Networks partner' width='150' height='59' border='0'>";

//	quote[11] = "<a href='http://twitter.com/' target='_blank'><img src='images/twitter_245x80banner.gif' alt='Follow SAI on Twitter' width='245' height='80' border='0'>";

//	quote[1] = "<a href='http://www.cisco.com/offer/ciscolive09/173483_1' target='_blank'><img src='images/logo-ciscolive.gif' alt='Cisco Live 2009' width='131' height='80' border='0'></a>";
	
//	quote[2] = "<p>Come see us at<br> Booth #1418 <br>Cisco Live! 2009</p>";

//	quote[1] = "<a href='http://www.interop.com/lasvegas/registration/' target='_blank'><img src='images/logo-interop09.gif' alt='Interop 2009' width='120' height='75' border='0'></a>";
	
//	quote[2] = "<p>Come see us at<br> Cisco's Solutions Pavilion, <br>Booth 1719 Interop Las Vegas!</p>";

// Copy existing. Renumber. Manually fix links. Manually fix image height, width, and ALT attribute. Make sure quoted attributes use single quote, not double.


// set compatible object model
function getObject(obj) {

	if (document.all) {
		if (typeof obj == "string") 
			return document.all(obj).innerHTML;
		else
			return obj.innerHTML;
	}

	if (document.getElementById) {
		if (typeof obj == "string") 
			return document.getElementById(obj).innerHTML;
		else 
			return obj.innerHTML;
	}

	return null;
}

function flipQt() {
	clearInterval(intervalID);
	if (curQt < quote.length - 1)
		curQt++;
	else
		curQt = 0;
	document.getElementById("quote").innerHTML = quote[curQt];
	setTimeout('flipQt()', 7500);
}
