jQuery(document).ready(function($){$('.comment-reply-link').click(function(){replyAuthor=$(this).siblings('cite').eq(0).text();replyPermalink=document.location.href.split('#')[0]+$(this).siblings('.comment-permalink').eq(0).attr('href');replyNumber=$(this).attr('rel');reply='<a href="'+replyPermalink+'">@'+replyAuthor+' (#'+replyNumber+')</a>: ';commentBox=$('#comment');currentComment=$(commentBox).val();if(currentComment!=''){reply=' '+reply;}
$(commentBox).val(currentComment+reply);});function resizeColumns(){contentHeight=$('#content').height();sidebarHeight=$('#sidebar').height();if(contentHeight<sidebarHeight){$('#content').height(sidebarHeight);}}
$(window).load(resizeColumns).resize(resizeColumns);$('#sidebar, #content, #expander').addClass('styled');$('#advanced-archive').find('ul').prepend('<span id="error"></span>');$('#advanced-archive-submit').click(function(){days=$('input:radio[name=days]:checked').val();if((days==undefined)||(days=='range'&&(($('#date-start').val()=='')||($('#date-end').val()=='')))){$('#error').html('Error: Please pick a valid date range.');return false;}
postsPerPage=$('#postsperpage').val();if((postsPerPage=='')||(isNaN(postsPerPage))){$('#error').html('Error: Please enter a valid number of posts per page.');return false;}});});