

/*! mt.js */
function hideDocumentElement(b){var a=document.getElementById(b);if(a){a.style.display="none"}}function showDocumentElement(b){var a=document.getElementById(b);if(a){a.style.display="block"}}function showAnonymousForm(){showDocumentElement("comments-form")}var commenter_name,commenter_blog_ids,is_preview,mtcmtmail,mtcmtauth,mtcmthome;function individualArchivesOnLoad(a){hideDocumentElement("trackbacks-info");if(a&&(!commenter_id||commenter_blog_ids.indexOf("'1'")>-1)){hideDocumentElement("comment-form-name");hideDocumentElement("comment-form-email")}else{if(is_preview){}else{hideDocumentElement("comments-form")}}if(document.comments_form){if(!a&&(document.comments_form.email!=undefined)&&(mtcmtmail=getCookie("mtcmtmail"))){document.comments_form.email.value=mtcmtmail}if(!a&&(document.comments_form.author!=undefined)&&(mtcmtauth=getCookie("mtcmtauth"))){document.comments_form.author.value=mtcmtauth}if(document.comments_form.url!=undefined&&(mtcmthome=getCookie("mtcmthome"))){document.comments_form.url.value=mtcmthome}if(document.comments_form.bakecookie){if(mtcmtauth||mtcmthome){document.comments_form.bakecookie.checked=true}else{document.comments_form.bakecookie.checked=false}}}}function writeCommenterGreeting(a,b,d,g,e){var c,f;if(a&&(!g||commenter_blog_ids.indexOf("'"+d+"'")>-1)){if(g){c="http://www.cantoni.org/cgi-sys/cgiwrap/bcantoni/mt/mt-comments.cgi?__mode=edit_profile&commenter="+g+"&blog_id="+d;if(b){c+="&entry_id="+b}else{c+="&static=1"}}else{if(e){c=e}else{c=null}}f="Thanks for signing in, ";if(c){f+='<a href="'+c+'">'+a+"</a>"}else{f+=a}f+='. Now you can comment. (<a href="http://www.cantoni.org/cgi-sys/cgiwrap/bcantoni/mt/mt-comments.cgi?__mode=handle_sign_in&amp;static=1&amp;logout=1&entry_id='+b+'">sign out</a>)';document.write(f)}else{if(a){document.write('You do not have permission to comment on this blog. (<a href="http://www.cantoni.org/cgi-sys/cgiwrap/bcantoni/mt/mt-comments.cgi?__mode=handle_sign_in&amp;static=1&amp;logout=1&entry_id='+b+'">sign out</a>)')}else{document.write('<a href="http://www.cantoni.org/cgi-sys/cgiwrap/bcantoni/mt/mt-comments.cgi?__mode=login&entry_id='+b+"&blog_id="+d+'&static=1">Sign in</a> to comment on this entry, or <a href="javascript:void(0);" onclick="showAnonymousForm();">comment anonymously</a>.')}}}if("www.cantoni.org"!="www.cantoni.org"){document.write('<script src="http://www.cantoni.org/cgi-sys/cgiwrap/bcantoni/mt/mt-comments.cgi?__mode=cmtr_name_js&blog_id=1"><\/script>')}else{commenter_name=getCookie("commenter_name");ids=getCookie("commenter_id").split(":");commenter_id=ids[0];commenter_blog_ids=ids[1];commenter_url=getCookie("commenter_url")}function setCookie(c,e,a,g,d,f){var b=c+"="+escape(e)+(a?"; expires="+a.toGMTString():"")+(g?"; path="+g:"")+(d?"; domain="+d:"")+(f?"secure":"");document.cookie=b}function getCookie(b){var e=b+"=",g=document.cookie,a="",d=g.indexOf(e),f;if(d==-1){return a}f=g.indexOf(";",d+e.length);if(f==-1){f=g.length}return unescape(g.substring(d+e.length,f))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function fixDate(b){var c=new Date(0),a=c.getTime();if(a>0){b.setTime(b.getTime()-a)}}function rememberMe(b){var a=new Date();fixDate(a);a.setTime(a.getTime()+365*24*60*60*1000);a=a.toGMTString();if(b.author!=undefined){setCookie("mtcmtauth",b.author.value,a,"/","","")}if(b.email!=undefined){setCookie("mtcmtmail",b.email.value,a,"/","","")}if(b.url!=undefined){setCookie("mtcmthome",b.url.value,a,"/","","")}}function forgetMe(a){deleteCookie("mtcmtmail","/","");deleteCookie("mtcmthome","/","");deleteCookie("mtcmtauth","/","");a.email.value="";a.author.value="";a.url.value=""}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();a()}}}addLoadEvent(function(){var g=document.getElementsByTagName("span"),f=g.length,c,d,b,a;for(c=0;c<f;c++){d=g[c];if(d.className=="hideEmail"&&d.childNodes.length==1&&d.firstChild.nodeType==3){b=g[c].firstChild.nodeValue;b=b.replace(/\s+AT\s+/gi,"@");b=b.replace(/\s*\[AT\]\s*/gi,"@");b=b.replace(/\s+DOT\s+/gi,".");b=b.replace(/\s*\[DOT\]\s*/gi,".");a=document.createElement("a");a.setAttribute("href","mailto:"+b);a.setAttribute("title","Send email to "+b);a.appendChild(document.createTextNode(b));d.removeChild(g[c].firstChild);d.appendChild(a)}}});
