//                        _--~~| |~~--_
//                       /     | |   \ \
//                      |      |      | |
//                     |       | |       |
//                     |       |         |
//                    /__----_ | | _----__\
//                   |/_-~~~-_\| |/_-~~~-_\|
//                   //    #  \===/    #  \\
//                  //        |===|        \\
//                 / |________|/~\|________| \
//                /  \        |___|        /  \
//               /   ^\      /| | |\      /^   \
//              /     ^\   /| | | | |\   /^     \
//             /       ^\/| | | | | | |\/^       \
//            <          O|_|_|_|_|_|_|O          >
//             ~\        \   -------   /        /~
//               ~\       ~\ \_____/ /~       /~
//                 ~\       ^-_____-^       /~
//           _________>                   <__________
///~~~~~~~~~~                                        ~~~~~~~~~~~\





$(function() {
shuffle = function(o){ //v1.0
  	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
  	return o;
  };

var thearray = new Array();
thearray = shuffle([1, 2, 3, 4, 5, 6, 7]);

var fader1 = [{ src: 'static/images/fader/header'+thearray[0]+'.jpg' }, { src: 'static/images/fader/header'+thearray[1]+'.jpg' }, { src: 'static/images/fader/header'+thearray[2]+'.jpg' }, { src: 'static/images/fader/header'+thearray[3]+'.jpg' }, { src: 'static/images/fader/header'+thearray[4]+'.jpg' }, { src: 'static/images/fader/header'+thearray[5]+'.jpg' }, { src: 'static/images/fader/header'+thearray[6]+'.jpg'}];

    $('#fotoFader').crossSlide({
        sleep: 5, //in sec
        fade: 1   //in sec
    }, fader1);

});
