
Ext.onReady ( function()
 { 

 function shuffle(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 d = document.getElementById('carousel');

 var t = d.innerHTML;
// alert(t)
 d.innerHTML = shuffle(t.split("#")).join("\n");
 
 d.style.visibility = "visible";

 new Ext.ux.Carousel('carousel', {
                    itemSelector: 'img',
                    interval: 3,
                    autoPlay: true,
                    showPlayButton: true,
                    pauseOnNavigate: true,
                    freezeOnHover: true,
                    transitionType: 'fade',
                    navigationOnHover: true       
                });
 });
