






{
function getCpiFromPathSecondLastSegments (path)
{

  var segments = path.split("/");
  var segments = segments[0].split("-");
  return unescape(segments[1]);
}

function getCpi (containerUrl, cpiName)
{
  var urlParts = containerUrl.split("pl/");

  var cpi = getCpiFromPathSecondLastSegments(urlParts[1]);

  return cpi;
}
var cpi = getCpi(location.href, "channel-product-id");
if (cpi.length == 0)
  cpi = "unknown";
document.write('<script src="http://content.webcollage.net/_sites/pricerunner/smart-button/index.jsp?channel-product-id=' + escape(cpi) + '&wccgsite=pricerunner&wccgfunc=smart-button"><\/script>');
}

