var quotes = [{"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":"574","text":"The greatest tragedy to befall a person is to have sight but lack vision","author":"Helen Keller\r"},{"id":"703","text":"Possibilities - The world is moving so fast these days that the man who says it cannot be done is generally interrupted by someone doing it","author":"Maryilyn Savant\r"},{"id":"819","text":"Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering","author":"Karamchand Gandhi\r"},{"id":"8","text":"Experience is the child of thought, and thought is the child of action.","author":"Benjamin Disraeli"},{"id":"777","text":"Health, happiness and success depend upon the fighting spirit of each person. The big thing is not what happens to us in life - but what we do about what happens to us","author":"George Allen\r"},{"id":"831","text":"It is the nature of man to rise to greatness if greatness is expected of him","author":"John Steinbeck\r"},{"id":"38","text":"Our lives improve only when we take chances - and the first and most difficult risk we can take is to be honest with ourselves.","author":"Walter Anderson\r"},{"id":"42","text":"The key to successful leadership is influence, not authority.","author":"Kenneth Blanchard\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":"863","text":"Quality questions create a quality life. Successful people ask better questions and as a result, they get better answers","author":"Anthony Robbins\r"},{"id":"64","text":"It takes time to build a corporate work of art. It takes time to build a life. And it takes time to develop and grow. So give yourself, your enterprise, and your family","author":"Jim Rohn\r"},{"id":"776","text":"Even as water carves monuments of stone, so our thoughts shape our character","author":"Hugh B Brown\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":"610","text":"Whatever you can do, or dream you can, begin it. Boldness has genius, magic, and power in it","author":"Benjamin Mays\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":"552","text":"He who has a why to live for can bear almost any how.","author":"Friedrich Nietzsche\r"},{"id":"600","text":"We can let circumstances rule us, or we can take charge and rule our lives from within","author":"Earl Nightingale\r"},{"id":"14","text":"The vacuum created by the failure to communicate effectively will be quickly filled by rumour, misrepresentation, doubt and poison","author":"William Holden\r"},{"id":"26","text":"Remember that everyone you meet is afraid of something, loves something and has lost something","author":"H Jackson Brown Junior\r"},{"id":"569","text":"A crank is a man with a new idea - until it catches on","author":"Mark Twain\r"},{"id":"915","text":"Get excited and enthusiastic about your own dream. This excitement is like a forrest fire - you can smell it, taste it, and see it a mile away","author":"Stephen Covey\r"},{"id":"785","text":"Your world is a living expression of how you are using and have used your mind","author":"Gary Ryan Blair\r"},{"id":"580","text":"Your first words set the tone. All encounters with customers and prospects are yours to control. What word and tone choices are you making?","author":"Jeffrey Gitomer\r"},{"id":"520","text":"Every behaviour you participate in will have a consequence","author":"Brian Tracy\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; }); });