var g_colours=['RED','ORANGE','YELLOW','GREEN','BLUE','INDIGO','VIOLET'];
var order=[0,1,2,3,4,5,6];
shuffle(order);
document.write("<div id='panel'>");
for (var i=0;i<7;i++) {
  var j=order[i];
  document.write("<div class='cell item' id='"+g_colours[j]+"' style='background-color:"+g_colours[j]+";' onClick='cell_clicked(this);'></div>");
}
document.write("</div>");
