var _comblock = []; var _comon = false; var _comlive = false; var _comratingon = false; var _comtotal = 0; var _comincrement = 50; var _comeid = 0; var _comformchange = false; var _comswf = 'http://www.pbs.org/wgbh/pages/frontline/includes/swf/commentbridge.swf'; function talk_rendercallback (inhash) { _comblock = inhash.discussion; _comon = (inhash.enabled == "1")? true:false; _comlive = (inhash.islive == "1")? true:false; _comtotal = inhash.total; _comeid = inhash.eid; talk_renderpage(0); } function talk_commentrate (isup,idx){ _comblock[idx].israted = true; if(isup){ _comblock[idx].rs = parseInt(_comblock[idx].rs) + 1; } else { _comblock[idx].rs = parseInt(_comblock[idx].rs) - 1; } var thisrate = parseInt(_comblock[idx].rs); if(-9 > thisrate){ document.getElementById('flcom'+idx).className = (_comblock[idx].rt == '')? '_comment _commentbad':'_comment_r _commentbad'; } else { document.getElementById('flcom'+idx).className = (_comblock[idx].rt == '')? '_comment':'_comment_r'; } var output = ' Rating ('; if(thisrate > 0){ output += '+'; } output += thisrate + ')'; document.getElementById('flcomrt'+idx).innerHTML = output; } function talk_intrender (idx){ var output = '
COMMENTS ON THIS PAGE ARE ARCHIVED. SHARE YOUR THOUGHTS HERE
'; } var counttext = ''; if(_comtotal == 0){ counttext += 'comments'; } else { counttext += '' + _comtotal + ''; counttext += (_comtotal > 1)? " comments":"comment"; } if(_comtotal > _comincrement){ counttext += ' / PAGES '; for(var cp = 0; (cp * _comincrement) < _comtotal; cp++){ counttext += ((cp * _comincrement) == offset)? '' + (cp + 1) + ' ':'' + (cp + 1) + ' '; } } counttext += ' (comments closed)'; counttext += ''; output += counttext; if(_comtotal > 0){ var thisinc = _comblock.length; if(_comblock.length > _comincrement){ thisinc = _comincrement; if((offset + _comincrement) > _comblock.length){ thisinc = _comblock.length - offset; } } thisinc += offset; for(var x = offset; x < thisinc; x++){ output += talk_intrender(x); } } else { activateform = true; } if(_comtotal > 10){ activateform = true; } if(_comtotal > _comincrement){ output += counttext; } output += '
' + talk_brwork(elresponse) + ''; } output += ''; if(_comblock[idx].rt == '' && _comon && _comblock[idx].cc != "1"){ output += 'Respond'; } if(_comratingon){ output += ''; if(!_comblock[idx].israted){ output += ' '; } output += ' Rate This ('; if(thisrate > 0){ output += '+'; } output += thisrate + ')'; } output += '