$(document).ready( function() {
    var textArray = [
	'<p>I have been thinking about breast augmentation for at least 8 years now. I decided now was a good time as any to do it. Of course finding the right plastic surgeon can make or break your dreams of achieving this. I came upon Dr V through a friend and it was a done deal. When you meet Dr. V, you immediately feel at ease. He is knowledgeable, intelligent and has great bedside manners.</p><p> He doesn\'t rush you through the consultation, you\'re free to stay as long as needed to get all your questions answered. MAS office is impeccable, the PA (Shea) and Patient Coordinator (Karin) are all wonderful.</p><p>-T.Y.C</p>',
	'<p>I recently decided to get lip augmentation done with Dr. V. I have had both a derm and a plastic surgeon do the procedure in the past, but this was a totally different experience – for the better. In the past, lip augmentation was very painful, with the effects lasting only a short time. Dr. V\'s technique was virtually painless with a beautiful, natural looking result.</p><p>-E.M.L.</p>',
	'<p>If you are looking for a qualified experienced Plastic surgeon with wonderful bedside manner, you will find all of that with Dr Vendemia. I have had Botox elsewhere, but the results I had with Dr V were far superior to what I had in the past. He also makes it a pleasant process as I really had no pain. My past experience was not as comfortable. After seeing the great results I had with Botox I moved on to Juvederm and again the results were amazing. He has taken years off of my face and given me a real confidence boost.</p><p>-J.K.</p>',
	'<p>I have had injectables done by dermatologist, plastic surgeons, nurses, etc over the course of three years and I must say, Dr. Nicholas Vendemia has been by far the best experience. Will definitely be returning for future treatments.</p><p>-D.C.</p>',
	'<p>My experience with Dr V couldnt have been better. He was attentive, thorough, caring and always available to answer my questions. From preop to postop, his professionalism, skill and knowledge allowed me to feel and look better than I ever thought i could!</p><p>-J.H.</p>',
	'<p>As a certified surgical technologist, I had the privilege of working with Dr. Nicholas Vendemia in the operating room on several occasions. He is, and has always been, extremely kind, professional, and gifted as a plastic surgeon. After only a few months of working with him, I soon became convinced that he would be my plastic surgeon, and I had a tummy tuck shortly thereafter. After my surgery, he was so kind and called me to make sure I was doing okay.</p><p>-S.L.C.</p>',

	'<p>I can\'t say enough about my experiences, yes more than a few, with Dr. Vendemia. The office is beautiful, the staff is beautiful, and Dr. V’s achieved goals are to make his patients more beautiful than they dream of.</p><p></p>From the moment you enter the office, throughout your procedures and follow up, you are treated with kindness, care, and professionalism. I work in the &quot;beauty industry&quot; and tell everyone I know, and some that I don’t, to visit MAS to make their dreams come true.<p>xoxo to Karin and Shea</p><p>-Ernest</p>',
    ];
    $('#quote').loadText( textArray, 1000000 ); // ( array, interval )
});
// custom jquery plugin loadText()
$.fn.loadText = function( textArray, interval ) {
    return this.each( function() {
        var obj = $(this);
        obj.fadeOut( 'slow', function() {
            obj.empty().html( random_array( textArray ) );
            obj.fadeIn( 'slow' );
        });
        timeOut = setTimeout( function(){ obj.loadText( textArray, interval )}, interval );
    });
}
//public function
function random_array( aArray ) {
    var rand = Math.floor( Math.random() * aArray.length + aArray.length );
    var randArray = aArray[ rand - aArray.length ];
    return randArray;
}
