function displayQuote(){

function setCookie(name, value, expires, path, domain, secure)
{
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}
// No need to make any changes to the function getCookie()
function getCookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}
// No need to make any changes to the function deleteCookie()
function deleteCookie(name, path, domain)
{
    if (getCookie(name))
    {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

// Begin Customization Here 

/* The variable 'setCookie' tells the script if you are planning to set a cookie
to control how often a new quote is displayed.
	set to 0 if you are not wanting to control how often a new quote is displayed.
	set to 1 if you do want to control how often a new quote is displayed.*/

var setTheCookie = 1;

/* The variable 'setTimer' determines the rate at which a new a new quote is displayed. 
	Set to 0 to have a new quote displayed everytime the page loads.
	Set to 1 to have a new quote displayed once every 60 minutes.
	Set to 2 to have a new quote displayed once every 24 hours.
	Set to 3 to have a new quote displayed once every 7 days.*/

var setTimer = 0;

var cookieVal = getCookie("Quote");

// Set NUM_OF_QUOTES value
if (cookieVal != null){
	quotes = cookieVal;
}else if (cookieVal >= 0){
	var num_of_quotes = 6;
	var quotes = Math.floor (num_of_quotes * Math.random());
	if (setTimer == 1){
		var theDate = new Date();
		var milliseconds = theDate.getTime() + (3600*1000); // Hourly
		var theNewDate = new Date(milliseconds);
		setCookie("Quote", quotes, theNewDate);
	}else if (setTimer == 2) {
		var theDate = new Date();
		var milliseconds = theDate.getTime() + (3600*1000*24); // Daily
		var theNewDate = new Date(milliseconds);
		setCookie("Quote", quotes, theNewDate);
	}else if (setTimer == 3){
		var theDate = new Date();
		var milliseconds = theDate.getTime() + (3600*1000*24*7); // Weekly
		var theNewDate = new Date(milliseconds);
		setCookie("Quote", quotes, theNewDate);
	} // end setTimer If Statement
}else if ((cookieVal < 0) && (setTheCookie == 0)){
	var num_of_quotes = 6;
	var quotes = Math.floor (num_of_quotes * Math.random());
}
// Enter QUOTES here.
if (quotes==0) {
	title="Mali";
body="The Niger river in Mali.";
}

if (quotes==1) {
	title="Djenne, Mali";
body="Me and the Malian singer Oumou Sangare, standing in the lobby of Sangare's hotel in Bamako.";
}

if (quotes==2) {
title="Mali";
body="Members of the musical group Tinariwen, standing in the sands of the Sahara desert. The group performed at the Festival in the Desert, an annual event in Mali that brings musicians (and others) from around the world to the farthermost regions of the country.";
}

if (quotes==3) {
title="Esakane";
body="Young men standing in the dunes of Esakane, in the Sahara desert.";
}

if (quotes==4) {
title="Tehran, Iran";
body="	An anti-U.S. rally that I witnessed in Tehran during my 2004 trip to Iran.";
}

if (quotes==5) {
title="Tehran, Iran";
body="Looking out onto the snowy Alborz Mountains, which surround Tehran, taking durnig my trip to Iran in 2004. I wrote several stories during my trip there, including a piece about Iran's annual film festival, which some have compared to Cannes.";
}


if (quotes==6) {
title="Isaiah 53:4-5";
body="A view from atop a church in Oxford, England, where I'm currently a Reuters Foundation fellow. <img src = images/s129.jpg";
}

if (quotes==7) {
title="Djenne, Mali";
body="The great mud mosque in West Africa in 2003.";
}


document.write('<div align=left>');
document.write('<strong>' + title + '</strong><br>');
document.write(''+ body +'');
document.write('</div>');
}