$(function() {

    testimonial = {
        testimonials: ['Just wanted to say thank you so much for the beautiful tortoise brooch you made me for my mother&#x27;s 60th. She absolutely loved it! Made a special birthday even more special.<br/> - Elise Blanchard, London',
                       'Wow ... what can I say? Super-fast delivery, beautiful piece of jewellery, looks far more expensive than it was, love it! Perfect!<br/> - Disa Knight, West Sussex',
                       'Received the thumb ring through the post to give to my girlfriend as a present. It&rsquo;s a lovely, nicely made and packaged ring and my girlfriend is very happy! Thank you very much, well worth the (short) wait.<br/> - Thomas Park, Northumberland',
                       'Beautiful, original earrings, look fabulous worn many thanks. X<br/> - Kate Singleton, Derbyshire',
                       'Arrived swiftly. Beautiful and unusual pieces. Thank you :)<br/> - Rhian Jones, Northampton',
                       'Perfect. I love them. Excellent service, fast postage and friendly communication. Will visit shop again. Thank you.<br/> - Sarah Brookes, West Midlands',
                       'Lovely items quickly delivered and beautifully packaged. Highly recommended.<br/> - Nicola Gibson, Norwich',
                       'Absolutely gorgeous ring made to fit me!!<br/> - Michelle Saunders, Torquay',
                       'Second lot of earrings bought so I think that says it all! So unique and comfortable!<br/> - Jo Dickie, Wiltshire',
                       'These are absolutely beautiful, I love them! Will certainly be purchasing again :)<br/> - Sarah Learoyd, Leeds',
                       'Beautiful earrings, very comfortable and great seller!<br/> - J. Dickie, Chippenham',
                       'Fab earrings. Thanks :)<br/> - Rachel Lloyd, Yeovil',
                       'The earrings are lovely - I really like them. I was worried they would be difficult to get in, or would come out easily, but they do neither! Thank you for sending them so quickly too.<br/> - Cam Field, Birmingham',
                       'Very grateful to you and I&#x27;m saving up for another ring (not that yours was massive money - in fact it was very good value). As the saying goes &quot;you remember the quality long after you&#x27;ve forgotten the price&quot;.<br/> - Peter Haines, Bournemouth',
                       'Gorgeous items skilfully made and beautifully packaged! I already know I will love them just as much as my other pairs. Lovely seller.<br/> - Katie Barratt, Southampton',
                       'My wife absolutely loves it, your realisation of my rough idea and sketch is excellent. Your communication and attention to detail were commendable. I am sure we will do business again.<br/> - Noel Clarke, Southampton',
                       'I just got my ring and I&#x27;m so excited to have it before I go on vacation for the holidays. It looks fantastic... and I love your branding. Everything flows very nicely. Thank you so much.<br/> - Thema Wilson, Washington DC',
                       'Just to say thanks, the spiral earrings are fab, I&#x27;m delighted with them, and beautifully made too.<br/> - K. Singleton, Chesterfield',
                       'Thank you so much for the gorgeous earrings &ndash; They are absolutely fantastic and like nothing I have ever seen or worn before.<br/> - Gillian Murray, Glasgow',
                       'I just wanted to tell you how beautiful your rings are! I&rsquo;ve never seen anything like them before and as soon as I saw them I knew I had to have one.<br/> - Hayley Beresford, Kent',
                       'I really loved seeing it all come together, so it was great to get the final product all gift wrapped with the photo stages. I&#x27;ve been complimented so much on my necklace, I love saying it&#x27;s a one off piece! It means so much to me, thank you again for such a great &#x27;21st birthday present&#x27;!<br/> - Sophie Harris, Southampton',
                       'From the design stage to the finished product, I felt involved and confident that the finished product would be exactly what I wanted. The materials used are top quality and the booklet about the design and production of the finished piece adds a unique individuality to the product.<br/> - Meriel Shepherd, Romsey'],

        changeText: function() {
            var text = $('div.testimonials p'),
                newText = this.testimonials.shift();
            this.testimonials.push(newText);
            
            $('div.testimonials').fadeOut('fast', function() {
                text.html(newText);
                $('div.testimonials').fadeIn('fast');
            });
            
            return false;
        },
        
        init: function() {
            $('div.testimonials p').html(this.testimonials[0]);
            var first = this.testimonials.shift();
            this.testimonials.push(first);
            setInterval(function() {
                  testimonial.changeText();
            }, 7000);
        }
    }
    
    testimonial.init();
});
