var d3_rocks = {} d3_rocks.stopwords = { words: [ {word: "Maryville (Tenn.)", href: "/school/MVLT/mens/2008", nocase: true}, {word: "Huntingdon", href: "/school/HNTG/mens/2008", nocase: true}, {word: "LaGrange", href: "/school/LGRN/mens/2008", nocase: true}, {word: "Piedmont", href: "/school/PIED/mens/2008", nocase: true}, {word: ["GSAC", "Great South Athletic Conference"], href: "/conf/GSAC/mens/2008", nocase: true}, {word: "Andrew Shumate", href: "http://www.pictureprints.net/identify/Maryville+%28Tenn.%29/Andrew+Shumate", nocase: true, external: true}, {word: "Uche Ndubizu", href: "http://www.pictureprints.net/identify//Uche+Ndubizu", nocase: true, external: true}, {word: "d3football", href: "http://www.d3football.com/", nocase: true, external: true}, {word: "d3hoops", href: "/", nocase: true, external: true}, {word: "d3baseball", href: "http://www.d3baseball.com/", nocase: true, external: true}, {word: ["top 25","ranked"], href: "/top25/", nocase: true, external: true}, ], newstopwords: [], wholewords: false, wholewords: true, limit: true, cssClass: 'red', stoptags: /^A$|H1|H2|H3|H4|BLOCKQUOTE/i, skipclass: 'infobox' }; function linkify(element, team){ var completed = false; var SW = d3_rocks.stopwords; SW.words = SW.words.concat(SW.newstopwords); function wordArray(string, obj) { var words = obj.word; if (words.constructor == Array){ for (var i=0, l=words.length; i= 0) { if ( restrictedContainer(node.parentNode) ){ return; } completed = true; var spannode = document.createElement('a'); spannode.href = obj.href; spannode.className = obj.cssClass || SW.cssClass; spannode.target = obj.newtab ? '_blank' : '' ; var middlebit = node.splitText( pos ); var endbit = middlebit.splitText( start.length ); spannode.appendChild( middlebit.cloneNode(true) ); middlebit.parentNode.replaceChild(spannode, middlebit); skip = 1; } } else if (node.nodeType == 1 && node.childNodes && node.className != SW.skipnodes && !/(script|style|^A$)/i.test(node.tagName)) { for (var i=0, l=node.childNodes.length; i