/*)'; var match = new RegExp(Reg, 'img'); var scripts = e.innerHTML.match(match); var doc = document.write; document.write = function(p){ e.innerHTML = e.innerHTML.replace(scripts[s],p)}; if(scripts) { for(var s = 0; s < scripts.length; s++) { var js = ''; var match = new RegExp(Reg, 'im'); js = scripts[s].match(match)[1]; js = js.replace('',''); eval('try{'+js+'}catch(e){}'); } } document.write = doc; }; var link_text = function(id,newtext,toggle_text,style,style_toggle){ if($(id)){ var l = $(id); if(toggle_text){ if(l.firstChild.data == toggle_text){ l.firstChild.data = newtext; if(style) {l.className = style;} }else{ l.firstChild.data = toggle_text; if(style_toggle) {l.className = style_toggle;} } }else{ l.firstChild.data = newtext; if(style) {l.className = style;} } } }; var move = function(id,moveto,mode){ if($(id) && $(moveto) ){ if(mode == 'sib'){ $(id).parentNode.insertBefore($(moveto), $(id).nextSibling); }else{ $(id).parentNode.insertBefore($(moveto),$(id)); } } }; return{ init: function(){ var preload_throbber = document.createElement('img'); preload_throbber.src="http://improbable.com/wp-content/plugins/ajaxd-wordpress/images/throbberradar.gif"; preload_throbber.src="http://improbable.com/wp-content/plugins/ajaxd-wordpress/images/throbberlarge.gif"; }, addEvent: function(evn,fn,base){ if (base.addEventListener){ base.addEventListener(evn, fn, false); return true; } else if (base.attachEvent){ var r = base.attachEvent("on"+evn, fn); return r; } else { return false; } }, doit : function() { aWP.start.main(arguments); }, update: function (){ var e = $(i); _d[i].response = ''; var nodes = _d[i].result.getElementsByTagName("var"); if(nodes.length > 0){ for (j=0; j 0){ for (j=0; j 0){ for (j=0; j 0 && !_d[i].force && !_d[i].no_jump){ aWP.toggle.smooth_scroll(i,-1*(winHeight/4)); } }, commentform: function(){ var comparent; var moveto; var sib; var style = arguments[1]; try{if(_d[i].replyto){$('comment_'+_d[i].id).innerHTML = "@" + _d[i].replyto;}}catch(e){} if(!_p[i].nomove && style != 'none' && !_d[i].nomove){ if(!$('awpcommentform_anchor_'+_d[i].main)){ var div = document.createElement('div'); div.id = 'awpcommentform_anchor_'+_d[i].main; div.style.display = 'none'; try{$('awpcommentform_'+_d[i].main).parentNode.insertBefore(div, $('awpcommentform_'+_d[i].main).nextSibling);}catch(e){} } }else{ if(_d[i].nomove) _p[i].nomove = 1; } if(_p[i].prev_link != _d[i].link_num || _d[i].faked ){ var will_move = 1; moveto = 'awpcommentform_link'+_d[i].link_num+'_'+_d[i].main; sib = 'sib' } if((style == 'none' || _d[i].quickclose == 1 || _p[i].nomove) && !will_move){ var will_hide = 1; } if(_p[i].prev_link == _d[i].link_num && !_p[i].nomove && !will_move){ var will_remove = 1; } link_text('awpcommentform_link'+_d[i].link_num+'_'+_d[i].main,_d[i].show,_d[i].hide); if(will_remove){ _d[i].no_jump = 1; _d[i].link_num =0; will_move = 1 moveto = 'awpcommentform_anchor_'+_d[i].main sib = ''; } if(will_move == 1){ var pos1 = pos(i); if(_a['beforemove']) _a['beforemove'](); move(moveto,i,sib); if(_a['aftermove']) _a['aftermove'](); var pos2 = pos(i); if(pos1 == pos2) will_hide = 1; } if(_p[i].last_show && (pos1 != pos2 || _d[i].quickclose == 1)){ link_text('awpcommentform_link'+_p[i].prev_link+'_'+_d[i].main,_p[i].last_show); } if(will_hide == 1){ aWP.toggle.pick_switch(); _d[i].no_jump = 1; } try{$('submit_commentform_'+_d[i].main).disabled = false;} catch(e){} _p[i].last_show = _d[i].show; _p[i].prev_link = _d[i].link_num; }, //