﻿var myJQ=jQuery.noConflict();function thereplyTo(commentID,author){var inReplyTo='@<a href="#comment-'+commentID+'">'+author+"</a>: ";var myField=myJQ("#comment").get(0);if(!myField){return false}if(document.selection){myField.focus();sel=document.selection.createRange();sel.text=inReplyTo;myField.focus()}else{if(myField.selectionStart||myField.selectionStart=="0"){var startPos=myField.selectionStart;var endPos=myField.selectionEnd;var cursorPos=endPos;myField.value=myField.value.substring(0,startPos)+inReplyTo+myField.value.substring(endPos,myField.value.length);cursorPos+=inReplyTo.length;myField.focus();myField.selectionStart=cursorPos;myField.selectionEnd=cursorPos}else{myField.attr("value",myField.attr("value")+inReplyTo);myField.focus()}}}myJQ(function(){var theLinks=myJQ("a.atr_link");theLinks.hover(function(){myJQ("div#atr_tt").remove();var c=myJQ("<div>").append(myJQ(myJQ(this).attr("href")+" .text").html());var tt=myJQ('<div id="atr_tt">').empty().append(c).css("left",this.offsetLeft-15+"px").css("top",this.offsetTop+19+"px").hide();tt.appendTo(myJQ(this).parent());tt.fadeIn("slow")},function(){myJQ("div#atr_tt").fadeOut("slow",function(){myJQ("div#atr_tt").remove()})})});var myJQ=jQuery.noConflict();function thereplyTo(commentID,author){var inReplyTo='@<a href="#comment-'+commentID+'">'+author+"</a>: ";var myField=myJQ("#comment").get(0);if(!myField){return false}if(document.selection){myField.focus();sel=document.selection.createRange();sel.text=inReplyTo;myField.focus()}else{if(myField.selectionStart||myField.selectionStart=="0"){var startPos=myField.selectionStart;var endPos=myField.selectionEnd;var cursorPos=endPos;myField.value=myField.value.substring(0,startPos)+inReplyTo+myField.value.substring(endPos,myField.value.length);cursorPos+=inReplyTo.length;myField.focus();myField.selectionStart=cursorPos;myField.selectionEnd=cursorPos}else{myField.attr("value",myField.attr("value")+inReplyTo);myField.focus()}}}myJQ(function(){var theLinks=myJQ("a.atr_link");theLinks.hover(function(){myJQ("div#atr_tt").remove();var c=myJQ("<div>").append(myJQ(myJQ(this).attr("href")+" .text").html());var tt=myJQ('<div id="atr_tt">').empty().append(c).css("left",this.offsetLeft-15+"px").css("top",this.offsetTop+19+"px").hide();tt.appendTo(myJQ(this).parent());tt.fadeIn("slow")},function(){myJQ("div#atr_tt").fadeOut("slow",function(){myJQ("div#atr_tt").remove()})})});