function contentWrite( sIn ){ document.write( sIn ); }

var iSatisfactionGuaranteePodSize_small = " height: 151px; width: 155px; ";
var iSatisfactionGuaranteePodSize_large = " height: 153px; width: 184px; ";
var sSatisfactionGuaranteePodLink_standard = "/satisfaction-guarantee.html";
var sSatisfactionGuaranteePodLink_divorce = "/divorce-satisfaction-guarantee.html";
var sSatisfactionGuaranteePodLink_realestate = "/real-estate-satisfaction-guarantee.html";

function getSatisfactionGuaranteePod( sSize, sLink ){
  var bRealEstateDeeTransfer = sLink == sSatisfactionGuaranteePodLink_realestate;
  var sText = "<b>LegalZoom offers a 100% Satisfaction Guarantee.</b><br>";
  //var sText = sSize == iSatisfactionGuaranteePodSize_small? "<b>100% Satisfaction<br>Guarantee or your money back.</b> ": "<b>100% Satisfaction Guarantee or<br>your money back.</b> "
  var sLearnMore = "Learn more about <br>our guarantee";
  //var sLearnMore = "Learn more<br>about our guarantee";
  sText = bRealEstateDeeTransfer? "<b>LegalZoom Guarantees your Satisfaction</b><br>": sText;
  //if ( sLink == sSatisfactionGuaranteePodLink_divorce ){
  //  sLink = sSatisfactionGuaranteePodLink_standard;
  //}
  var sOut = "<table align='center' class='textBox' style='text-align: center; " + sSize + " background-image: url( /img/bgSatisfaction.gif );' cellspacing='0' cellpadding='0' border='0'>" + 
             "<tr>" + 
             "<td><img style='border-right:0px solid;border-top:0px solid;border-left:0px solid;border-bottom:0px solid' alt='100% Satisfaction Guarantee' src='/img/satisfaction-guarantee-seal.gif' border=0></td>" + 
             "</tr>" + 
             "<tr>" + 
             "<td style='font-size:11px;padding-bottom:3px;font-family:arial;text-align:center; vertical-align: top;'>" +
             sText + 
             "<a class='BodyInText_Link' href='javascript:openWindow_ext( \"" + sLink + "\", \"_blank\", \"height=650,width=640,scrollbars=1,resizable=1\" );'>" + sLearnMore + "</a>" + 
             "</td>" + 
             "</tr>" + 
             "</table>";
  return sOut;
}
function writeSatisfactionGuaranteePod( sSize ){ 
  contentWrite( getSatisfactionGuaranteePod( sSize, sSatisfactionGuaranteePodLink_standard ) ); 
}
function writeSatisfactionGuaranteePod_divorce( sSize ){ 
  contentWrite( getSatisfactionGuaranteePod( sSize, sSatisfactionGuaranteePodLink_divorce ) ); 
}
function writeSatisfactionGuaranteePod_realestate( sSize ){ 
  contentWrite( getSatisfactionGuaranteePod( sSize, sSatisfactionGuaranteePodLink_realestate ) ); 
}
