var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); jQuery(document).ready(function() { if ( jQuery('#commentform').length ) { jQuery('#commentform').submit(function(){ jQuery.ajax({ url: K2.ajaxCommentsURL, data: jQuery('#commentform').serialize(), type: 'POST', beforeSend: function() { jQuery('#commenterror').hide(); jQuery('#commentload').show(); }, error: function(request) { jQuery('#commentload').hide(); jQuery('#commenterror').show().html(request.responseText); }, success: function(data) { jQuery('input,select,textarea', '#commentform').each(function(){ var t = this.type, tag = this.tagName.toLowerCase(); if (t == 'text' || t == 'password' || tag == 'textarea') this.value = ''; else if (t == 'checkbox' || t == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); jQuery('#commenterror').hide().html(); if ( jQuery('#leavecomment').length ) { jQuery('#leavecomment').remove(); } jQuery('#comments').html(parseInt(jQuery('#comments').html()) + 1); if ( !jQuery('#commentlist').length ) { jQuery('#pinglist').before('