$(function() {

    quotes = [

        {quote: 'A memory is what is left when something happens and does not completely unhappen', source: 'Edward de Bono'},

        {quote: 'Cherish all your happy moments: they form a fine cushion for old age', source: 'Tarkington Booth'},

        {quote: 'Every goodbye is the birth<br>of a memory', source: 'Dutch Proverb'},

        {quote: 'How we remember, what we remember, and why we remember, form the most personal map of our individuality', source: 'Christina Baldwin'},

        {quote: 'I have more memories than if I were a thousand years old', source: 'Charles Baudelaire'},

        {quote: 'I wear the key of memory, and can open every door in the house of my life', source: 'Amelia E. Barr'},

        {quote: 'In memory everything seems to happen to music', source: 'Tennessee Williams'},

        {quote: 'Memories of our lives, of our works and our deeds will continue in others', source: 'Rosa Parks'},

        {quote: 'Memory\'s the very<br>skin of life', source: 'Elizabeth Hardwick'},

        {quote: 'Memory is a man\'s real possession . In nothing else is he rich, in nothing else is he poor', source: 'Alexander Smith'},

        {quote: 'Memory is the diary that we<br>all carry about with us', source: 'Oscar Wilde'},

        {quote: 'They may forget what you said, but they<br>will never forget how you made them feel', source: 'Carl W. Buechner'},

        {quote: 'We all have our time machines. Some take us back, they are called memories. Some take us forward, they are called dreams', source: 'Jeremy Irons'},

        {quote: 'We do not know the true value of our moments until they have undergone the test of memory', source: 'Georges Duhamel'},

        {quote: 'We do not remember days;<br>we remember moments', source: 'Cesare Pavese'}

    ];

    $(quotes).each(function (i) {

        var $el = $('#headquote');

        var quote = this.quote + ' <span>- ' + this.source + '</span>';

        $el.append('<div><p>' + quote + '</p></div>');

    });

    $('#headquote').cycle({

        speed: '2000',

        timeout: '10000',

        cleartype: '1' // enable cleartype corrections 

    });

});

