// Function: Clear Cube
function clearCube() {
  for (i = 0; i <= 53; i++) {
    stickerID = "sticker" + i;
    var obj = document.getElementById(stickerID);
    
    // Reset Background Color
    stickerColor = "#" + EDscv[EDscn[i]];
    obj.style.backgroundColor = stickerColor;
    
    // Reset Border Style
    obj.style.border = "thin none #000000";
    
    // Reset Font Style
    obj.style.fontStyle      = "normal";
    obj.style.fontSize       = "80%";
    obj.style.fontWeight     = "normal";
    obj.style.textDecoration = "none";
    
    // Reset Sticker Lable
    // Set Sticker Lable
    //while (obj.hasChildNodes() ) {
    //  obj.removeChild(obj.childNodes[0]);
    //}
    //obj.appendChild(document.createTextNode(EDsl[i]));
  }
}




// Function: Set Sticker
function setSticker(stickerID, newValue) {
  stickerNr = "sticker" + stickerID;
  var obj = document.getElementById(stickerNr);
  
  // Set Background Color
  stickerColor = "#" + EDscv[EDscn[newValue]];
  obj.style.backgroundColor = stickerColor;
  
  // Set Border Style
  obj.style.border = "thin solid #000000";
  
  // Font Style
  obj.style.fontStyle      = "normal";
  obj.style.fontSize       = "80%";
  obj.style.fontWeight     = "bold";
  //obj.style.textDecoration = "underline";
  
  // Set Sticker Lable
  while (obj.hasChildNodes() ) {
    obj.removeChild(obj.childNodes[0]);
  }
  obj.appendChild(document.createTextNode(EDsl[newValue]));
}




// Function: Set Sticker Color
function setStickerColor(stickerID, newValue) {
  stickerNr = "sticker" + stickerID;
  var obj = document.getElementById(stickerNr);
  
  // Set Background Color
  stickerColor = "#" + EDscv[ACubeColors[newValue]];
  obj.style.backgroundColor = stickerColor;
  
  // Set Border Style
  //obj.style.border = "thin solid #000000";
  
  // Font Style
  obj.style.fontStyle      = "normal";
  obj.style.fontSize       = "80%";
  obj.style.fontWeight     = "bold";
  //obj.style.textDecoration = "underline";
  
  // Set Sticker Lable
  //while (obj.hasChildNodes() ) {
  //  obj.removeChild(obj.childNodes[0]);
  //}
  //obj.appendChild(document.createTextNode(EDsl[newValue]));
}




// Function: Set Location Mask
function setMask(stickerID) {
  stickerNr = "sticker" + stickerID;
  var obj = document.getElementById(stickerNr);
  
  // Set Background Color
  stickerColor = "#" + EDmscv[EDscn[stickerID]];
  obj.style.backgroundColor = stickerColor;
  
  // Set Border Style
  obj.style.border = "thin solid #" + stickerColor;
}


