rightClickWarning = "These photos are the copyright of Andy Boruta. All rights reserved. Unauthorized use is prohibited."

/* ======================================================================== */
/* This changes the cart text information                                   */
/* ======================================================================== */
addEvent(window, "load", redoCart);
function redoCart() {
  oList = getElementsByClass("cartbuttons");

  for (var i=0; i < oList.length ; i++)
  {
    aList = oList[i].getElementsByTagName("a");
    for (var j=0; j < aList.length ; j++)
      aList[j].parentNode.removeChild(aList[j]);

    bList = getElementsByClass("cart_bulk", oList[i], "img");
    for (var k=0; k < bList.length ; k++)
      bList[k].parentNode.removeChild(bList[k]);
    oList[i].innerHTML = oList[i].innerHTML.replace(/\|/gi, '&nbsp <span class="title"> &nbsp</span>')
  }
}

function getElementsByClass(searchClass,node,tag) {
    var classElements = new Array();
    if ( node == null )
        node = document;
    if ( tag == null )
        tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = new RegExp("(^| )" + searchClass + "( |$)");
    for (var i = 0, j = 0; i < elsLen; i++) {
        if ( pattern.test(els[i].className) ) {
            classElements[j] = els[i];
            j++;
        }
    }
    return classElements;
}
