/* Arbutus version 4 Copyright (c) 2013, Peter Michaux All rights reserved. Licensed under the Simplified BSD License. https://github.com/petermichaux/arbutus/blob/master/LICENSE */ var arbutus={};(function(){var trimLeft=/^\s+/,trimRight=/\s+$/;function trim(str){return str.replace(trimLeft,'').replace(trimRight,'');} function getFirstChild(element){return element.firstChild;} function getFirstGrandChild(element){return element.firstChild.firstChild;} function getSecondGrandChild(element){return element.firstChild.firstChild.nextSibling;} function getFirstGreatGrandChild(element){return element.firstChild.firstChild.firstChild;} function getFirstGreatGreatGrandChild(element){return element.firstChild.firstChild.firstChild.firstChild;} function makeParser(before,after,getFirstResult){return function(html,doc){var parser=doc.createElement('div');var fragment=doc.createDocumentFragment();parser.innerHTML=before+html+after;var node=getFirstResult(parser);var nextNode;while(node){nextNode=node.nextSibling;fragment.appendChild(node);node=nextNode;} return fragment;};} var defaultParser=makeParser('','',getFirstChild);var parsers={'td':makeParser('