// JavaScript Document

function losujCytat(evt){
	var cytaty = new Array();
	cytaty[1]="He who laughs last didn't get it";
	cytaty[2]="Cheer up, the worst is yet to come";
	cytaty[3]="Behind every great fortune there is a crime";
	cytaty[4]="Honesty is the best image";
	cytaty[5]="Common sense ain't common";
	cytaty[6]="When in doubt, tell the truth";
	cytaty[7]="I love humanity but I hate people";
	cytaty[8]="All power corrupts, but we need electricity";
	cytaty[9]="Chess is mental torture";
	cytaty[10]="Do not try to live for ever You will not succeed";
	cytaty[11]="Old age is no place for sissies";
	cytaty[12]="Love is, above all else, the gift of oneself";
	cytaty[13]="Love is or it ain't Thin love ain't love at all";
	cytaty[14]="Him that I love, I wish to be free -- even from me";
	cytaty[15]="We are all either fools or undiscovered geniuses";
	cytaty[16]="All mankind loves a lover";
	cytaty[17]="Choose a wife by your ear than your eye";
	cytaty[18]="Love cannot save you from your own fate";
	cytaty[19]="Marriage is an adventure, like going to war";
	cytaty[20]="Love is blind, but friendship closes its eyes";
	cytaty[21]="Truth is beautiful, without doubt; but so are lies";
	cytaty[22]="The absence of flaw in beauty is itself a flaw";
	cytaty[23]="A compliment is like a kiss through a veil";
	cytaty[24]="Big egos are big shields for lots of empty space";
	cytaty[25]="Art is either plagiarism or revolution";
	cytaty[26]="Black holes are where God divided by zero";
	cytaty[27]="Distrust any enterprise that requires new clothes";
	cytaty[28]="Beauty is eternity gazing at itself in a mirror";
	cytaty[29]="All diseases run into one, old age";
	cytaty[30]="The years teach much which the days never knew";
	cytaty[31]="In the end, everything is a gag";
	cytaty[32]="A goal without a plan is just a wish";
	cytaty[33]="Courage is fear that has said its prayers";
	cytaty[34]="Everything's got a moral, if only you can find it";
	cytaty[35]="Ambition is not a vice of little people";
	cytaty[36]="Failure is success if we learn from it";
	cytaty[37]="The best love affairs are those we never had";
	cytaty[38]="A clever man commits no minor blunders";
	cytaty[39]="Brevity is the soul of wit";
	cytaty[40]="Where there is love there is life";
	cytaty[41]="The truth is more important than the facts";
	cytaty[42]="Love all, trust a few";
	cytaty[43]="The gods too are fond of a joke";
	cytaty[44]="A joke is a very serious thing";
	cytaty[45]="We need not think alike to love alike";
	cytaty[46]="Fortune favors the brave";
	cytaty[47]="True friends stab you in the front";
	cytaty[48]="A prudent question is one half of wisdom";
	cytaty[49]="An ounce of emotion is equal to a ton of facts";
	cytaty[50]="A witty saying proves nothing";
	cytaty[51]="Creativity is the sudden cessation of stupidity";
	cytaty[52]="Frailty, thy name is woman!";
	cytaty[53]="Knowledge comes, but wisdom lingers";
	
	var numer=Math.ceil(Math.random()*52);
	return cytaty[numer];
}

function strrpos (haystack, needle, offset) {
    var i = (haystack+'').lastIndexOf(needle, offset); // returns -1
    return i >= 0 ? i : false;
}

 function lookup(tekst)
  {
   // var s = $('#text').val().split( " " ).pop();
	var s = tekst.split( " " ).pop();
    if(!s.length)
      return false;

	else return s;
   // $('#output').html('"'+s+'"');
  }
  
