﻿wrozba = new Array(dmlangs)
wrozba['pl'] = new Array (
	"Uważaj na swoje myśli, stają się słowami... Uważaj na swoje słowa,<br/>stają się czynami... Uważaj na swoje czyny, stają się nawykami... <br/>Uważaj na swoje nawyki, stają się charakterem... Uważaj na swój charakter, <br/>on staje się Twoim losem. (Frank Outlaw)",
	"Duże psy nie potrzebują szczekać. Wszyscy wiedzą, że są duże.",
	"Ludziom imponuje pewność siebie, nie arogancja.",
	"Nie można jechać we wszystkich kierunkach w tym samym czasie.",
	"Zrób to lub nie zrób tego. Nie ma spróbuję.",
	"Milczenie może być wspaniałą odpowiedzią.",
	"Odczuwaj wdzięczność, gdy budzisz się nad ranem.",
	"Cierpliwość jest umiejęnością, której można się nauczyć.",
	"Powiedzie Ci się lepiej, niż oczekujesz.",
	"Wybieraj marzenia ostrożnie, ponieważ będą się spełniać.",
	"Pierwszym krokiem do lepszego życia jest wyobrażenie go sobie.",
	"Częste uśmiechanie się sprawi, że będziesz wyglądać i czuć się młodziej.",
	"Spodziewaj się niespodziewanego.",
	"Śnij o przyszłości, nie o przeszłości.",
	"Nigdy nie przecinaj czegoś, co możesz rozwiązać.",
	"Dziel się wiedzą, by zyskać nieśmiertelność.",
	"Miłość zwycięża wszystko.",
	"Wiele fałszywych kroków stawiasz przez stanie w miejscu.",
	"Życie to doświadczenie.",
	"Sukces znaczy współzawodnictwo.",
	"Niezdecydowanie może uśmiercić porozumienie.",
	"Samotność to stan umysłu.",
	"Zdecyduj, czego pragniesz i zrób to.",
	"Szczęście wychodzi z wewnątrz.",
	"Jeśli nie jesteś w stanie zaplanować, by to zrobić<br/>to tym samym planujesz, że nie będziesz w stanie tego zrobić.",
	"Szczęśliwość człowieka przedłuża jego życie.",
	"Szczęście leży w przyszłości, nie w przeszłości",
	"Cokolwiek czynisz, śledź swoje ciało, mowę i swój umysł. (Milarepa)",
	"Cokolwiek czynisz, upewnij się, że wystarczająco dużo śnisz. (Milarepa)"
);
wrozba['en'] = new Array (
	"Watch your thoughts... they become your words. Watch your words...<br/>they become your actions. Watch your actions... they become your habits.<br/>Watch your habits... they become your character. Watch your character...<br/>it becomes your destiny. (Frank Outlaw)",
	"Big dogs don't have to bark. Everyone knows they are big.",
	"People are attracted to confidence, not arrogance.",
	"You cannot ride in all directions at one time.",
	"Do or do not. There is no try.",
	"Silence can be a great response.",
	"When you wake up in the morning, give thanks.",
	"Patience is a skill that can be learned.",
	"You'll do better than you expect.",
	"Dream carrefully, becuase dreams come true.",
	"The first step to better times is to imagine them.",
	"Smiling often can make you look and feel younger.",
	"The smart thing is to prepare for the unexpected.",
	"Dream of the future not of the past.",
	"Never cut what can be untied.",
	"Share your knowledge to achieve immortality.",
	"Love conquers all.",
	"Many a false step is made by standing still.",
	"Life is an experiment.",
	"Success means competition.",
	"Indecision can kill a deal.",
	"Loneliness is a state of mind.",
	"Decide what you want and go for it.",
	"Happiness comes from inside.",
	"If you fail to plan, you plan to fail.",
	"The joyfulness of a man prolongeth his days.",
	"Happiness lies in your future, not in your past.",
	"Whatever you do, be conscious of the actions of your body, speech and mind. (Milarepa)",
	"Whatever you do, make sure you're getting enough sleep. (Milarepa)"
);


function array_rand ( input, num_req ) {
    // http://kevin.vanzonneveld.net
    // +   original by: Waldo Malqui Silva
    // *     example 1: array_rand( ['Kevin'], 1 );
    // *     returns 1: 0
 
    var Indexes = [];
    var Ticks = num_req || 1;
    var checkDuplicate = function ( input, value ) {
        var Exist = false, Index = 0;
        while ( Index < input.length ) {
            if ( input [ Index ] === value ) {
                Exist = true;
                break;
            }
            Index++;
        }
        return Exist;
    };
 
    if ( input instanceof Array && Ticks <= input.length ) {
        while ( true ) {
            var Rand = Math.floor ( ( Math.random ( ) * input.length ) );
            if ( Indexes.length === Ticks ) { break; }
            if ( !checkDuplicate ( Indexes, Rand ) ) { Indexes.push ( Rand ); }
        }
    } else {
        Indexes = null;
    }
 
    return ( ( Ticks == 1 ) ? Indexes.join ( ) : Indexes );
}

function pokazWrozbe(lang){
	ktory = array_rand(wrozba[lang], 1);
	document.writeln(wrozba[lang][ktory]);
}

