

var sfo_quotes=new Array();
sfo_quotes[0]="&ldquo;We have been very satisfied with Covad's reliability with our business DSL service. Keep up the good work!&rdquo;<br><span>&mdash;Jennifer B., San Jose, CA<\/span>";
sfo_quotes[1]="&ldquo;Whether it is your business or that you mean business on a virtual battlefield, there is only one name to trust. COVAD!&rdquo;<br><span>&mdash;Raymond C., Oakland, CA<\/span>";
sfo_quotes[2]="&ldquo;You have an excellent team providing quality service at a reasonable price. Continue the great work!&rdquo;<br><span>&mdash;Jon L., Petaluma, CA<\/span>";

var lax_quotes=new Array();
lax_quotes[0]="&ldquo;The Internet service I received from Covad is faster, more consistent and much more reliable than my previous provider.&rdquo;<br><span>&mdash;Anne S., Los Angeles, CA<\/span>";
lax_quotes[1]="&ldquo;Your internet service is great. The order process was easy to do and configure.&rdquo;<br><span>&mdash;Randy P., Los Angeles, CA<\/span>";

var nyc_quotes=new Array();
nyc_quotes[0]="&ldquo;It seems such a rarity that a company actually provides what its marketing claims but Covad does.&rdquo;<br><span>&mdash;Bethany M., New York, NY<\/span>";
nyc_quotes[1]="&ldquo;Good clear communication about price, service and contract.&rdquo;<br><span>&mdash;James N., Manhattan, NY<\/span>";

var dal_quotes=new Array();
dal_quotes[0]="&ldquo;Thank you for caring about your customers. You have earned my loyalty.&rdquo;<br><span>&mdash;Cheryl B., Dallas, TX<\/span>";
dal_quotes[1]="&ldquo;Everything was done very timely with no problems.&rdquo;<br><span>&mdash;Barbara P., Dallas, TX<\/span>";

var chi_quotes=new Array();
chi_quotes[0]="&ldquo;Your communication advising me of steps in the process was great and technicians arrived on time.&rdquo;<br><span>&mdash;Barbara Y., Chicago, IL<\/span>";

//Set valid quote locations
var validLocations=new Array("sfo","lax","nyc","dal","chi");
var validQuotes=new Array(sfo_quotes,lax_quotes,nyc_quotes,dal_quotes,chi_quotes);
var locID,n,rand_no;
var theQuote="&ldquo;Your product is great. Customer service is superior. You're doing a great job. Keep up the good work!&rdquo;<br><span>&mdash;Darien R., Covad Customer<\/span>";
//var quoteFlag="no";

if ((location.href.indexOf("arrow")>=0) || (location.href.indexOf("guy")>=0)) {
	function getQuote() {
		var rand_Loc = Math.floor(Math.random()*(validLocations.length));
		var rand_Quote = Math.floor(Math.random()*(validQuotes[rand_Loc].length));
		theQuote = validQuotes[rand_Loc][rand_Quote];
	}
	getQuote();	
	if ((location.href.indexOf("arrow")>=0) && (theQuote.toLowerCase().indexOf("dsl")>=0)) {
		getQuote();
	}
} else if(location.href.indexOf("integrated")>=0) {
		theQuote = "&ldquo;It's been fabulous, and we've had zero issues.  We've been running smoothly with no problems whatsoever,&rdquo; says Mueller.  &ldquo;Covad's Integrated Access service is rock solid.&rdquo;";
// 		theQuote = "Covad Integrated Access brings together your business phone system and high-speed Internet into a single service from a single provider.<br><b>&rsaquo;Free</b> equipment <b>&rsaquo;Free</b> installation<br><b>&rsaquo;Leverage</b> existing <!--investment in your -->current phone system";

} else {
	function checkDSL() {
		if (location.href.indexOf("dsl")<0) {
			if (theQuote.toLowerCase().indexOf("dsl")>=0) getQuote4bb();
		}
	}
	function getQuote4bb() {
		n=0;
		for (n=0;n<=validLocations.length;n++) {
			if (validLocations[n]==regionName) {
				//quoteFlag="yes";
				rand_no = Math.floor(Math.random()*(validQuotes[n].length));
				theQuote = validQuotes[n][rand_no];
				break
			}
		}
		checkDSL()
	}
	getQuote4bb();	
	checkDSL();
}
