/*
 * shopcart.js
 * 2002-05-22, dmanura, created
 */

function shopcart1() {
  this.getCookieDomain = getCookieDomain;
  this.getSiteBase = getSiteBase;
}

function getCookieDomain() {
  var domain;
  var hostname = window.location.hostname;
  if(hostname.indexOf("sisweb.com") != -1)
    domain = "sisweb.com";
  else
    domain = hostname;
  ///alert(domain);
  return domain;
}

function getSiteBase(bSecure) {
  var base;
  var hostname = window.location.hostname;
  if(hostname.indexOf("sisweb.com") != -1)
    base = bSecure ? "https://ssl.sisweb.com" : "http://www.sisweb.com";
  else
    base = (bSecure ? "https://" : "http://") + hostname;

  ///alert(base);
  return base;
}

window.libshopcart1 = new shopcart1();  // make global

