// Drop Bown Menu - Head Script
// copyright Stephen Chapman, 4th March 2005, 5th February 2006
// you may copy this menu provided that you retain the copyright notice

var fix = 1; var delay = 2000; var modd = 0;
var bar = new menuBar();
bar.addMenu('Features');
bar.addItem('/audio/index.html','Audio Vault');
bar.addItem('/boners.html','Bonehead Sportswriters');
bar.addItem('/debates.html','Heated Debates');
bar.addItem('/guest/mailbag.html','Mailbag');
bar.addItem('/scorer.html','The Scorers Corner');
bar.addItem('/scouting.html','Scouting Reports');
bar.addItem('/teams/index.html','The Teams Page');
bar.addItem('/awards/index.html','The Award Room');
bar.addItem('/postseason.html','Playoff Central');


bar.addMenu('AL Teams');
bar.addItem('/teams/anaheim.html','Anaheim Angels');
bar.addItem('/teams/baltimore.html','Baltimore Orioles');
bar.addItem('/teams/boston.html','Boston Red Sox');
bar.addItem('/teams/chicagoal.html','Chicago White Sox');
bar.addItem('/teams/cleveland.html','Cleveland Indians');
bar.addItem('/teams/detroit.html','Detroit Tigers');
bar.addItem('/teams/kansascity.html','Kansas City Royals');
bar.addItem('/teams/minnesota.html','Minnesota Twins');
bar.addItem('/teams/newyorkal.html','New York Yankees');
bar.addItem('/teams/oakland.html','Oakland Athletics');
bar.addItem('/teams/seattle.html','Seattle Mariners');
bar.addItem('/teams/tampa.html','Tampa Bay Devil Rays');
bar.addItem('/teams/texas.html','Texas Rangers');
bar.addItem('/teams/toronto.html','Toronto Blue Jays');

bar.addMenu('NL Teams');

bar.addItem('/teams/arizona.html','Arizona Diamondbacks');
bar.addItem('/teams/atlanta.html','Atlanta Braves');
bar.addItem('/teams/chicagonl.html','Chicago Cubs');
bar.addItem('/teams/cincinnati.html','Cincinnati Reds');
bar.addItem('/teams/colorado.html','Colorado Rockies');
bar.addItem('/teams/florida.html','Florida Marlins');
bar.addItem('/teams/houston.html','Houston Astros');
bar.addItem('/teams/losangeles.html','Los Angeles Dodgers');
bar.addItem('/teams/milwaukee.html','Milwaukee Brewers');
bar.addItem('/teams/newyorknl.html','New York Mets');
bar.addItem('/teams/philadelphia.html','Philadelphia Phillies');
bar.addItem('/teams/pittsburgh.html','Pittsburgh Pirates');
bar.addItem('/teams/sandiego.html','San Diego Padres');
bar.addItem('/teams/sanfrancisco.html','San Francisco Giants');
bar.addItem('/teams/stlouis.html','St. Louis Cardinals');
bar.addItem('/teams/washington.html','Washington Nationals');


bar.addMenu('Statistics');

bar.addItem('/compendium','Compendium');
bar.addItem('/compendium/06nlhit.html','2006 Statistics');
bar.addItem('/statistics/index.html','Statistics Home');
bar.addItem('/spltisvillehome.html','Splitsville');
bar.addItem('/statistics/2006final.html','2006 Standings');


bar.addMenu('Hall of Fame');

bar.addItem('/halloffame/index.html','Hall of Fame');
bar.addItem('/halloffame/members.html','Members');
bar.addItem('/halloffame/commentary.html','Commentary');
bar.addItem('/halloffame/breakdown.html','Breakdowns');
bar.addItem('/halloffame/aboutbehof.html','Guidelines');
bar.addItem('/halloffame/2007vote.html','2007 Voting Results');
bar.addItem('/2007hallsummary.html','2007 Review');
bar.addItem('http://baseballhalloffame.org/','Cooperstown');

bar.addMenu('Player Rankings','top100s/index.html');

bar.addItem('/top100s/index.html','Player Rankings');
bar.addItem('/200comp2009.html','2009 Composite 200');
bar.addItem('/200keith2009.html','Keith's 2009 List');
bar.addItem('/200asher2009.html','Asher's 2009 List');
bar.addItem('/2006comp100.html','2006 Composite 100');
bar.addItem('/200scott2006.html','Scott 2006 List');
bar.addItem('/100tony2006.html','Tony 2006 List');
bar.addItem('/100richard2006.html','Richard 2006 List');



bar.addMenu('2007 Season');

bar.addItem('/powerrankings/index.html','Weekly Power Rankings');
bar.addItem('/previews/teampreviewsindex.html','2007 Team Previews');
bar.addItem('/predictions.html','2007 Predictions');
bar.addItem('/statistics/07final.html','Final 2007 Standings');
bar.addItem('/postseason.html','Playoff Central');
bar.addItem('/toptens.html','Daily Top Tens');


bar.addMenu('Fun Stuff');

bar.addItem('/quizzes.html','Quizzes');
bar.addItem('/nick.html','Player Nicknames');
bar.addItem('/hnick.html','Historical Nicknames');
bar.addItem('/food.html','Ballpark Food');
bar.addItem('/toptens.html','Top Tens');
bar.addItem('/namegame.html','The Name Game');
bar.addItem('/funfacts.html','Fun Facts');
bar.addItem('/haveglove.html','Have Glove Will Travel');
bar.addItem('/oneteam.html','One Teamers');

bar.addMenu('Columnists');
bar.addItem('/keith/index.html','Keith Glab');
bar.addItem('/scott/index.html','Scott Glab');
bar.addItem('/asher/index.html','Asher B. Chancey');
bar.addItem('/tony/index.html','Tony Aubry');
bar.addItem('/richard/index.html','Richard Van Zandt');
bar.addItem('/karl/index.html','Karl Wright');
bar.addItem('/guest/index.html','Guest Contributors');
bar.addItem('/aboutus1.html','About Us');

bar.addMenu('Store');
bar.addItem('/store/ssl/books.html','Bill James Handbook');
bar.addItem('/store/ssl/books.html#hard07','Hardball Times Annual');
bar.addItem('/store/ssl/books.html#fbible','The Fielding Bible');
bar.addItem('/store/ssl/audio.html#hc','Harry Caray Tribute CD');
bar.addItem('/store/ssl/audio.html#jb','Jack Buck Tribute CD');
bar.addItem('/store/ssl/audio.html#mb','Marty Brennaman CD');

// do not change anything below this line
var blc = '#000066';var blh = '#000066';var bla = '#000066';var lc = '#ffffff';var lh = '#ffffff';var la = '#ffffff';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}