var quotes = [{"id":"576","text":"A gossip talks to you about other people. A bore talks about himself. A brilliant conversationalist talks to you about yourself","author":"Ursula Le Guin\r"},{"id":"791","text":"Lives based on having less free than lives based either on doing or being","author":"William James\r"},{"id":"668","text":"There is nothing so useless as doing efficiently that which should not be done at all","author":"Peter Drucker\r"},{"id":"781","text":"Success is a state of mind. If you want success, start thinking of yourself as a success","author":"Joyce Brothers\r"},{"id":"701","text":"Being defeated is often a temporary condition. Giving up is what makes it permanent","author":"Maryilyn Savant\r"},{"id":"973","text":"To know anything well involves a profound sensation of ignorance","author":"John Ruskin\r"},{"id":"1027","text":"To make a man happy, fill his hands with work, his heart with affection, his memory with useful knowledge, his future with hope, and his stomach with food.","author":"Frederick E. Crane\r"},{"id":"696","text":"A gossip talks to you about other people. A bore talks about himself. A brilliant conversationalist talks to you about yourself","author":"William King\r"},{"id":"57","text":"My best friend is the one who brings out the best in me","author":"Henry Ford\r"},{"id":"19","text":"In order to be effective truth must penetrate like an arrow - and that is likely to hurt","author":"Wei Wu Wei \r"},{"id":"35","text":"The price of anything is the amount of life you exchange for it","author":"Henry David Thoreau\r"},{"id":"783","text":"Change is inevitable in a progressive society. Change is constant","author":"Benjamin Disraeli\r"},{"id":"508","text":"A good leader takes a little more than his share of the blame, a little less than his share of the credit","author":"Arnold Glasgow\r"},{"id":"608","text":"Just trust yourself, then you will know how to live.","author":"Wolfgang Von Goethe\r"},{"id":"902","text":"We should never look back unless we are planning to go that way","author":" Henry David Thoreau\r"},{"id":"796","text":"Believe in yourself. You gain strength, courage, and confidence by every experience in which you stop to look fear in the face. You must do that which you think you cannot do","author":"Gail Pursell Elliott\r"},{"id":"862","text":"If you always do what you have always done, you will always get what you have always got. ?","author":"Anthony Robbins\r"},{"id":"640","text":"The creation of a thousand forests is in one acorn","author":"Ralph Waldo Emerson\r"},{"id":"73","text":"Leadership is a challenge to be something more than average","author":"Jim Rohn\r"},{"id":"527","text":"It is an old psychological axiom that constant exposure to the object of fear immunizes against fear","author":"Maxwell Maltz\r"},{"id":"673","text":"We must always change, renew, rejuvenate ourselves; otherwise we harden","author":"Thomas Edison\r"},{"id":"978","text":"The greatest capability of superior people is that of helping other people to be virtuous","author":" Mencius\r"},{"id":"758","text":"A great man is hard on himself; a small man is hard on others","author":"Confucius\r"},{"id":"53","text":"Continuous effort - not strength or intelligence - is the key to unlocking our potential","author":"Winston Churchill\r"},{"id":"841","text":"What would you attempt to do if you knew you could not fail","author":"Robert H Schuller\r"}]; $(function(){ // function resize_text_size(quote_length, object) // { // // Resize quote font-size of over 100 characters long // if(quote_length > 100) // { // var relative_length = (370 / Math.sqrt(quote_length)); // $(object).css('font-size', relative_length + 'px'); // } // } var quote = quotes[0]['text']; // Add first heading to header var new_quote = $('

').html("“" + quote + "” - " + quotes[0]['author'] + "").addClass('tagline').appendTo('#header_container'); var l = 1; // resize_text_size(quote.length, new_quote); // Add next quote link var next_quote = $('
').addClass('next_quote').appendTo('#header_container'); $('').attr('href', '#').html('Next Quote').appendTo(next_quote); // Switch Quotes $('.next_quote a').click(function(){ var quote = quotes[l]['text']; var new_quote = $('

').html("“" + quote + "” - " + quotes[l]['author'] + "").addClass('new_tagline').css('display', 'none').appendTo('#header_container'); // resize_text_size(quote.length, new_quote); $('h1.tagline').fadeOut("slow"); $('h1.new_tagline').fadeIn("slow").addClass('tagline').removeClass('new_tagline'); l = (l < (quotes.length - 1)) ? l+1 : 0; return false; }); });