var d3_rocks = {} d3_rocks.stopwords = { words: [ {word: "North Central (Ill.)", href: "/school/NCC/womens/2008", nocase: true}, {word: "Illinois Wesleyan", href: "/school/IWU/womens/2008", nocase: true}, {word: "Wheaton (Ill.)", href: "/school/WTIL/womens/2008", nocase: true}, {word: "North Park", href: "/school/NPRK/womens/2008", nocase: true}, {word: "Augustana", href: "/school/AUGU/womens/2008", nocase: true}, {word: "Carthage", href: "/school/CRTH/womens/2008", nocase: true}, {word: "Elmhurst", href: "/school/ELMH/womens/2008", nocase: true}, {word: "Millikin", href: "/school/MLKN/womens/2008", nocase: true}, {word: ["CCIW", "College Conference of Illinois and Wisconsin"], href: "/conf/CCIW/womens/2008", nocase: true}, {word: "", href: "http://www.pictureprints.net/identify//", 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