// -----------------------------------------------------------------------------------
// photocart.mc.js
// -----------------------------------------------------------------------------------

// contains some extras used by photocart - normally part of the CMS, but duplicated
// here to keep things simple (ie, make sure photo cart does not have to be
// integrated into the CMS).

function photocartOnLoad() {
	positionCopyrightBox();
	xOpacity("wrapper", 100);
	xStyle("display", "block", "wrapper");
}

// ************************
// layer utility routines *
// ************************

function getStyleObject(objectId) {
  // cross-browser function to get an object's style object given its id
  if(document.getElementById && document.getElementById(objectId)) {
    // W3C DOM
    return document.getElementById(objectId).style;
  } else if (document.all && document.all(objectId)) {
    // MSIE 4 DOM
    return document.all(objectId).style;
  } else if (document.layers && document.layers[objectId]) {
    // NN 4 DOM.. note: this won't find nested layers
    return document.layers[objectId];
  } else {
    return false;
  }
} // getStyleObject

// set the "display" CSS value for an object
function setDisplay(objectId, display) {
  return getStyleObject(objectId).display = display;
}

// end photocart.mc.js