var testimonials = new Array(

'"What I like best about Trendy is the look and feel. It certainly stands out of the innumerable magazines and newsletters that I have subscribed to. It\'s being an independent publication certainly instills a lot of faith onto it. It certainly lives up to its name!" &ndash; Tanushree from Delhi',

'"Trendy gives you the feeling that you have an intelligent friend who\'s giving you these smart tips and things to try out. And it\'s nice and pink!" &ndash; Nureen from Delhi',

'"I like reading Trendy because it makes me trendy by providing me all the information everyday at my doorstep and that also about my city. I simply love it." &ndash; Pooja from Delhi',

'"I just love reading Trendylicious cause it brings me the latest in fashion and style." &ndash; Mukta from Delhi',

'"I like Trendy cause it keeps me updated about everything trendylicious that\'s happening in the city. Having a hectic work life, it\'s not always possible to catch up on what\'s hot and what\'s new &ndash; Trendy definitely takes care of that problem." &ndash; Prasanna from Mumbai',

'"I like to try new places for food, shopping, new books, make-up tips, great discounts. And I like to be updated about what\'s the in thing in the city." &ndash; Kanchan from Mumbai'

);

var delay=10000; /* 10000ms = 10s */


var hex=0;
var nextQuote=0;
var testPage="";
function enterQuote() {
	document.getElementById("testimonials").innerHTML="<a href="+testPage+">"+testimonials[nextQuote]+"</a>";
}
function startQuotes(homelink) {
	testPage = homelink+"/testimonials/";
	if (document.getElementById("testimonials")==null) return;
	nextQuote = Math.floor(Math.random()*testimonials.length);
	enterQuote();
	document.getElementById("testimonials").firstChild.style.color="#000";
	hex = 0;
	setTimeout("fadeout()",delay);
}
function fadeout() {
	if (hex<255) {
		hex+=11;
		document.getElementById("testimonials").firstChild.style.color="rgb("+hex+","+hex+","+hex+")";
		setTimeout("fadeout()",100);
	} else {
		hex = 255;
		nextQuote=(nextQuote+1)%testimonials.length;
		enterQuote();
		fadein();
	}
}
function fadein() {
	if (hex>0) {
		hex-=11;
		document.getElementById("testimonials").firstChild.style.color="rgb("+hex+","+hex+","+hex+")";
		setTimeout("fadein()",100);
	} else {
		hex = 0;
		setTimeout("fadeout()",delay);
	}
}
function listTesti() {
        for (var i=0; i<testimonials.length; i++) {
            document.write("<p><em>");
            document.write(testimonials[i]);
            document.write("</em></p>");
        }
}