");
topBorderDiv.css({"position":"absolute", "top":e.offset().top + "px", "left":e.offset().left + "px", "height":"0px", "width":e.width() + "px", "border":"1px solid red"});
bottomBorderDiv.css({"position":"absolute", "top":(e.offset().top + e.height()) + "px", "left":e.offset().left + "px", "height":"0px", "width":e.width() + "px", "border":"1px solid red"});
leftBorderDiv.css({"position":"absolute", "top":e.offset().top + "px", "left":e.offset().left + "px", "height":e.height() + "px", "width":"0px", "border":"1px solid red"});
rightBorderDiv.css({"position":"absolute", "top":e.offset().top + "px", "left":(e.offset().left + e.width()) + "px", "height":e.height() + "px", "width":"0px", "border":"1px solid red"});
$("body").append(topBorderDiv, bottomBorderDiv, leftBorderDiv, rightBorderDiv);
_elements.push(topBorderDiv);
_elements.push(bottomBorderDiv);
_elements.push(leftBorderDiv);
_elements.push(rightBorderDiv);
}
var addMouseEventsToInfoContainer = function(infoContainer, filepath, nodename, namespace, name, match)
{
infoContainer.click(function()
{
_currentFilepath = filepath;
_currentNodename = nodename;
_currentNamespace = namespace;
_currentName = name;
_currentMatch = match;
var responseName = "requestedNameTemplate";
var url = gs.xsltParams.library_name + "?a=g&rt=r&s=RetrieveXMLTemplateFromFile&s1.filePath=" + _currentFilepath + "&s1.namespace=" + _currentNamespace + "&s1.nodename=" + _currentNodename;
if(_currentMatch && _currentMatch.length > 0){url += "&s1.match=" + _currentMatch; responseName = "requestedMatchTemplate";}
if(_currentName && _currentName.length > 0){url += "&s1.name=" + _currentName;}
$.ajax(url)
.success(function(response)
{
var template;
if(response.search(responseName) != -1)
{
var startIndex = response.indexOf("<" + responseName + ">") + responseName.length + 2;
var endIndex = response.indexOf("" + responseName + ">");
template = response.substring(startIndex, endIndex);
}
else
{
return;
}
var editArea = $("