window.onload = function() {
  if (!NiftyCheck())
    return;
  Rounded("div#drawing", "all", "#777C4F", "#9B9E72", "smooth");
  base();
  startImageCycle();
}

function cycleImage() {
  if ((imgIndex == null)
      || (imgDisplay == null)
      || (imgArray == null)
      || (imgArray.length == 0))
  {
    return;
  }
  imgDisplay.src = imgArray[imgIndex];
  document["FrontPageDrawing"].src = imgDisplay.src;
  (imgIndex >= imgArray.length - 1) ? imgIndex = 0 : imgIndex++;
}

function startImageCycle() {
  for (i = 0; i < imgArray.length; i++) {
    MM_preloadImages(imgArray[i]);
  }
  setInterval("cycleImage()", 5000);
  imgIndex++;
}

var imgIndex = 0;
var imgDisplay = new Image();

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#") {
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
    }
  }
}

  /*
  */