$j(document).ready(function(){$j("a.bookMark").jFav()});

<!-- ConnectFurniture Cookie Handler -->

function newCFCookie(name,value,days) {
  // name:  is the name of the cooke
  // value: is the value of the cookie
  // days: is the number of days from today that the cookie will expire
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString(); 
  }
    else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/"; 
}

function readCFCookie(cookieName) {
  var nameSG = cookieName + "=";
  var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') 
      c = c.substring(1,c.length);
    if (c.indexOf(nameSG) == 0) 
      return c.substring(nameSG.length,c.length); 
  }
  return null; 
}

function showCFPopup(urlToOpen, windowName, paramStr, topLeftX, topLeftY) {
  CFWindowHandle=window.open(urlToOpen,windowName, paramStr);
  CFWindowHandle.moveTo(topLeftX, topLeftY);
  CFWindowHandle.focus(); 
}

function hideLayerAndShowCFPopup(layerName, urlToOpen, windowName, paramStr, topLeftX, topLeftY) {
  hideCFContent(layerName);
  showCFPopup(urlToOpen, windowName, paramStr, topLeftX, topLeftY) 
}

function eraseCFCookie(cookieName) {
  newCFCookie(cookieName,"",-1);
}

function hideCFContent(d) {
  if (d.length < 1) { 
    return; 
  }
  document.getElementById(d).style.display = "none";
}

function showCFContent(d) {
  if (d.length < 1) { 
    return; 
  }
  document.getElementById(d).style.display = "block";
}

function toggleCFContent(d) {
  if (d.length < 1) { 
    return; 
  }
  if (document.getElementById(d).style.display == "none") { 
    document.getElementById(d).style.display = "block"; 
  }
  else { 
    document.getElementById(d).style.display = "none"; 
  }
}

//-->



