var d3_rocks = {} d3_rocks.stopwords = { words: [ {word: "Plattsburgh State", href: "/school/PLTS/mens/2008", nocase: true}, {word: "Brockport State", href: "/school/BRCK/mens/2008", nocase: true}, {word: "New Paltz State", href: "/school/PLTZ/mens/2008", nocase: true}, {word: "Cortland State", href: "/school/CORT/mens/2008", nocase: true}, {word: "Fredonia State", href: "/school/FRED/mens/2008", nocase: true}, {word: "Buffalo State", href: "/school/BUFF/mens/2008", nocase: true}, {word: "Geneseo State", href: "/school/GEN/mens/2008", nocase: true}, {word: "Oneonta State", href: "/school/ONTA/mens/2008", nocase: true}, {word: "Potsdam State", href: "/school/POTS/mens/2008", nocase: true}, {word: "Oswego State", href: "/school/OSWG/mens/2008", nocase: true}, {word: ["SUNYAC", "State University of New York Athletic Conference"], href: "/conf/SUNYAC/mens/2008", nocase: true}, {word: "Anthony Williams", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Anthony+Williams", nocase: true, external: true}, {word: "Antwane Miller ", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Antwane+Miller+", nocase: true, external: true}, {word: "Lance Darrell", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Lance+Darrell", nocase: true, external: true}, {word: "Travis Gorham", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Travis+Gorham", nocase: true, external: true}, {word: "Khylan Hunt", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Khylan+Hunt", nocase: true, external: true}, {word: "Ricky Rider", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Ricky+Rider", nocase: true, external: true}, {word: "Tom Roberts", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Tom+Roberts", nocase: true, external: true}, {word: "Jared Lowe", href: "http://www.pictureprints.net/identify/Plattsburgh+State/Jared+Lowe", 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