/*
 * 
 * Extends Array to support array Shuffle
 * 
 */


if (!Array.prototype.shuffle) {
	Array.prototype.shuffle = function() {
	
		var copia = this.concat();
		var resultado = new Array(); 
		
		var i = 0;
		
		while(copia.length > 0){
			indice = Math.floor(Math.random() * copia.length);
			resultado[i] = copia.splice(indice, 1);
			i++;
			
			
		}
		
		return resultado;
		
	};
}



