var d3_rocks = {} d3_rocks.stopwords = { words: [ {word: "Franklin and Marshall", href: "/school/FM/mens/2009", nocase: true}, {word: "Washington and Lee", href: "/school/WL/mens/2009", nocase: true}, {word: "Washington College", href: "/school/WSHC/mens/2009", nocase: true}, {word: "Bridgewater (Va.)", href: "/school/BWVA/mens/2009", nocase: true}, {word: "Eastern Mennonite", href: "/school/EMU/mens/2009", nocase: true}, {word: "Virginia Wesleyan", href: "/school/VWC/mens/2009", nocase: true}, {word: "Emory and Henry", href: "/school/EANDH/mens/2009", nocase: true}, {word: "Hampden-Sydney", href: "/school/HSC/mens/2009", nocase: true}, {word: "Randolph-Macon", href: "/school/RMC/mens/2009", nocase: true}, {word: "Johns Hopkins", href: "/school/JHU/mens/2009", nocase: true}, {word: "Gettysburg", href: "/school/GETT/mens/2009", nocase: true}, {word: "Muhlenberg", href: "/school/MUHL/mens/2009", nocase: true}, {word: "Swarthmore", href: "/school/SWAT/mens/2009", nocase: true}, {word: "Dickinson", href: "/school/DICK/mens/2009", nocase: true}, {word: "Haverford", href: "/school/HAV/mens/2009", nocase: true}, {word: "Lynchburg", href: "/school/LNCH/mens/2009", nocase: true}, {word: "Guilford", href: "/school/GUIL/mens/2009", nocase: true}, {word: "McDaniel", href: "/school/MCD/mens/2009", nocase: true}, {word: "Randolph", href: "/school/RAND/mens/2009", nocase: true}, {word: "Roanoke", href: "/school/NOKE/mens/2009", nocase: true}, {word: "Ursinus", href: "/school/URS/mens/2009", nocase: true}, {word: ["ODAC", "Old Dominion Athletic Conference"], href: "/conf/ODAC/mens/2009", nocase: true}, {word: ["CC", "Centennial Conference"], href: "/conf/CC/mens/2009", nocase: true}, {word: "Martin Stephenson", href: "http://www.pictureprints.net/identify/Guilford/Martin+Stephenson", nocase: true, external: true}, {word: "Justin Stafford", href: "http://www.pictureprints.net/identify/Guilford/Justin+Stafford", nocase: true, external: true}, {word: "Anthony Brooks", href: "http://www.pictureprints.net/identify/Franklin+and+Marshall/Anthony+Brooks", nocase: true, external: true}, {word: "Gabriel Lowder", href: "http://www.pictureprints.net/identify/Guilford/Gabriel+Lowder", nocase: true, external: true}, {word: "George Neville", href: "http://www.pictureprints.net/identify/Guilford/George+Neville", nocase: true, external: true}, {word: "Steve Tolliver", href: "http://www.pictureprints.net/identify/Franklin+and+Marshall/Steve+Tolliver", nocase: true, external: true}, {word: "Mary Robinson", href: "http://www.pictureprints.net/identify/Guilford/Mary+Robinson", nocase: true, external: true}, {word: "Tyler Sanborn", href: "http://www.pictureprints.net/identify/Guilford/Tyler+Sanborn", nocase: true, external: true}, {word: "Alicia Miles", href: "http://www.pictureprints.net/identify/Guilford/Alicia+Miles", nocase: true, external: true}, {word: "Clay Scovill", href: "http://www.pictureprints.net/identify/Franklin+and+Marshall/Clay+Scovill", nocase: true, external: true}, {word: "Matt Stanley", href: "http://www.pictureprints.net/identify/Guilford/Matt+Stanley", nocase: true, external: true}, {word: "Rhett Bonner", href: "http://www.pictureprints.net/identify/Guilford/Rhett+Bonner", nocase: true, external: true}, {word: "T C Anderson", href: "http://www.pictureprints.net/identify/Guilford/T+C+Anderson", nocase: true, external: true}, {word: "Brad Monroe", href: "http://www.pictureprints.net/identify/Guilford/Brad+Monroe", nocase: true, external: true}, {word: "Clay Henson", href: "http://www.pictureprints.net/identify/Guilford/Clay+Henson", nocase: true, external: true}, {word: "Tom Palumbo", href: "http://www.pictureprints.net/identify/Guilford/Tom+Palumbo", nocase: true, external: true}, {word: "Mike Baker", href: "http://www.pictureprints.net/identify/Franklin+and+Marshall/Mike+Baker", nocase: true, external: true}, {word: "Eric High", href: "http://www.pictureprints.net/identify/Guilford/Eric+High", 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