var storage=createSingleStorage();jQuery.noConflict();jQuery(document).ready(function(){if(!document.getElementById('serendipity_commentform_comment')){return;}
if(typeof inline=='undefined'){requestConfiguration();}
if(typeof lctimeout!='number'){var lctimeout=1500;}
setTimeout("execCommentFunctions()",lctimeout);});function execCommentFunctions(){if(storage.preview){addPreview();}
if(storage.buttons){markupComments();}
if(storage.elastic){elasticComments();}}
function addPreview(){var $serendipity_commentform_comment=jQuery('#serendipity_commentform_comment');var $serendipity_comment_preview=jQuery("#serendipity_comment_preview");if($serendipity_comment_preview.length==0){createContainer();$serendipity_commentform_comment.keyup();$serendipity_comment_preview=jQuery("#serendipity_comment_preview");}
var $serendipity_preview_commentBody=jQuery("#serendipity_comment_preview > .serendipity_commentBody");$serendipity_comment_preview.hide();jQuery("#serendipity_previewTitle").html(storage.preview_title);$serendipity_commentform_comment.focus(function(){$serendipity_commentform_comment.keyup();switch(storage.preview_animation){case'fadeIn':$serendipity_comment_preview.fadeIn(storage.preview_animation_speed);break;case'slideDown':$serendipity_comment_preview.slideDown(storage.preview_animation_speed);break;case'show':$serendipity_comment_preview.show();break;}
$serendipity_comment_preview.fadeTo('fast',1);});var serendipity_comment='';$serendipity_commentform_comment.keyup(function(){serendipity_comment=jQuery(this).val();if(storage.markdown){var converter=new Showdown.converter();serendipity_comment=converter.makeHtml(serendipity_comment);}
if(storage.bb){serendipity_comment=bb2html(serendipity_comment);}
if(storage.textile){serendipity_comment=textile2html(serendipity_comment);}
if(storage.nl2br||storage.nl2p){serendipity_comment=serendipity_comment.replace(/\n/g,"
").replace(/\n\n+/g,'
');}
if(storage.s9ymarkup){serendipity_comment=s9y2html(serendipity_comment);}
if(storage.liquid){serendipity_comment=liquid2html(serendipity_comment);}
$serendipity_preview_commentBody.html(serendipity_comment);});$serendipity_commentform_comment.blur(function(){$serendipity_comment_preview.fadeTo('fast',0.75);});}
function createContainer(){jQuery('#feedback').after('
'+line+'
';lines[i]=line+'\n';} inlist=0;listtype='';for(var i=0;i"+_77+"\n
";return _1c(_77)+_78;});_73=_73.replace(/~0/,"");return _73;};var _1c=function(_7a){_7a=_7a.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(_3.push(_7a)-1)+"K\n\n";};var _23=function(_7b){_7b=_7b.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(_7c,m1,m2,m3,m4){var c=m3;c=c.replace(/^([ \t]*)/g,"");c=c.replace(/[ \t]*$/g,"");c=_79(c);return m1+""+c+"
";});return _7b;};var _79=function(_82){_82=_82.replace(/&/g,"&");_82=_82.replace(//g,">");_82=_2e(_82,"*_{}[]\\",false);return _82;};var _29=function(_83){_83=_83.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g,"$2");_83=_83.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"$2");return _83;};var _1f=function(_84){_84=_84.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(_85,m1){var bq=m1;bq=bq.replace(/^[ \t]*>[ \t]?/gm,"~0");bq=bq.replace(/~0/g,"");bq=bq.replace(/^[ \t]+$/gm,"");bq=_9(bq);bq=bq.replace(/(^|\n)/g,"$1 ");bq=bq.replace(/(\s*[^\r]+?<\/pre>)/gm,function(_88,m1){var pre=m1;pre=pre.replace(/^ /mg,"~0");pre=pre.replace(/~0/g,"");return pre;});return _1c("\n"+bq+"\n");});return _84;};var _20=function(_8b){_8b=_8b.replace(/^\n+/g,"");_8b=_8b.replace(/\n+$/g,"");var _8c=_8b.split(/\n{2,}/g);var _8d=new Array();var end=_8c.length;for(var i=0;i=0){_8d.push(str);}else{if(str.search(/\S/)>=0){str=_21(str);str=str.replace(/^([ \t]*)/g," ");str+="
";_8d.push(str);}}} end=_8d.length;for(var i=0;i=0){var _91=_3[RegExp.$1];_91=_91.replace(/\$/g,"$$$$");_8d[i]=_8d[i].replace(/~K\d+K/,_91);}} return _8d.join("\n\n");};var _11=function(_92){_92=_92.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&");_92=_92.replace(/<(?![a-z\/?\$!])/gi,"<");return _92;};var _25=function(_93){_93=_93.replace(/\\(\\)/g,_94);_93=_93.replace(/\\([`*_{}\[\]()>#+-.!])/g,_94);return _93;};var _28=function(_95){_95=_95.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,"$1");_95=_95.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(_96,m1){return _98(_a(m1));});return _95;};var _98=function(_99){function char2hex(ch){var _9b="0123456789ABCDEF";var dec=ch.charCodeAt(0);return(_9b.charAt(dec>>4)+_9b.charAt(dec&15));} var _9d=[function(ch){return""+ch.charCodeAt(0)+";";},function(ch){return""+char2hex(ch)+";";},function(ch){return ch;}];_99="mailto:"+_99;_99=_99.replace(/./g,function(ch){if(ch=="@"){ch=_9d[Math.floor(Math.random()*2)](ch);}else{if(ch!=":"){var r=Math.random();ch=(r>0.9?_9d[2](ch):r>0.45?_9d[1](ch):_9d[0](ch));}} return ch;});_99=""+_99+"";_99=_99.replace(/">.+:/g,"\">");return _99;};var _a=function(_a3){_a3=_a3.replace(/~E(\d+)E/g,function(_a4,m1){var _a6=parseInt(m1);return String.fromCharCode(_a6);});return _a3;};var _72=function(_a7){_a7=_a7.replace(/^(\t|[ ]{1,4})/gm,"~0");_a7=_a7.replace(/~0/g,"");return _a7;};var _6=function(_a8){_a8=_a8.replace(/\t(?=\t)/g," ");_a8=_a8.replace(/\t/g,"~A~B");_a8=_a8.replace(/~B(.+?)~A/g,function(_a9,m1,m2){var _ac=m1;var _ad=4-_ac.length%4;for(var i=0;i<_ad;i++){_ac+=" ";} return _ac;});_a8=_a8.replace(/~A/g," ");_a8=_a8.replace(/~B/g,"");return _a8;};var _2e=function(_af,_b0,_b1){var _b2="(["+_b0.replace(/([\[\]\\])/g,"\\$1")+"])";if(_b1){_b2="\\\\"+_b2;} var _b3=new RegExp(_b2,"g");_af=_af.replace(_b3,_94);return _af;};var _94=function(_b4,m1){var _b6=m1.charCodeAt(0);return"~E"+_b6+"E";};};