$(document).ready(function(){makeNonsense();addAttribute();});function makeNonsense(){$(".love").each(function(i){var nonsense=$(this).text().toLowerCase().replace(/[^a-z]/g,"").slice(0,10);$(this).after('<div class="nonsense" title="'+nonsense+'"></div>');});$(".comments cite").each(function(i){var bagatar=$(this).text().toLowerCase().replace(/[^a-z]/g,"");$(this).after('<div class="bagarozz" title="'+bagatar+'"></div>');});$('.header').append('<span class="nonsense" title="'+$('.header').text().toLowerCase().replace(/[ ,.!;:()0-9]/g,"")+'"></span>');showNonsense();}
function showNonsense(){$(".nonsense").each(function(i){var b=$(this).attr('title');var c=b.split('');if(c.length>0){d=$(this).text();e=(b.slice(1,10));$(this).text(d+c[0]);$(this).attr('title',e);}});$(".bagarozz").each(function(i){var b=$(this).attr('title');var c=b.split('');if(c.length>0){d=$(this).text();e=(b.slice(1,20));$(this).text(d+c[0]);$(this).attr('title',e);}});setTimeout('showNonsense()',200);}
$("#author").keyup(function(){var bagatar=$("#author").val().toLowerCase().replace(/[^a-z]/g,"");if(bagatar==''){$('#bagarozz-preview').hide('slow');}
else{$('#bagarozz-preview').text(bagatar).show('slow');}});$("#name").keyup(function(){var bagatar=$("#name").val().toLowerCase().replace(/[^a-z]/g,"");if(bagatar==''){$('#bagarozz-preview').hide('slow');}
else{$('#bagarozz-preview').text(bagatar).show('slow');}});function addAttribute(){if('autocapitalize'in document.createElement('input')!=false){unautocapitalize('url');unautocapitalize('email');}}
function unautocapitalize(inputId){document.getElementById(inputId).setAttribute('autocapitalize','off');}