// Written by John Marino, April 2004
// Distributed with Renegade Series Six
// http://www.marino.st/renegade
function parseme (rawstr, week, season)
{
var brseason = /\x7BSEASON\x7D/g;
var brshortseason = /\x7BSS\x7D/g;
var brweek = /\x7BW\x7D/g;
var brlongweek = /\x7BWW\x7D/g;
var seasonstr = String (season);
var weekstr = String (week);
var shortseason = seasonstr.substr(2,2);
var longweek = (week > 9) ? weekstr : "0" + weekstr;
var workstr = rawstr.replace (brseason, seasonstr);
workstr = workstr.replace (brshortseason, shortseason);
workstr = workstr.replace (brweek, weekstr);
workstr = workstr.replace (brlongweek, longweek);
return workstr;
}
function RS6_report (RID, section, name, range_start, range_end, floater, basename)
{
this.id = RID;
this.section = section;
this.name = name;
this.range_start = range_start;
this.range_end = range_end;
this.floater = floater;
this.basename = basename;
}
function flash(curobj){
curobj.style.color = '#B00000';
}
function flash2(curobj){
curobj.style.color = '#B00000';
}
function deflash2(curobj){
curobj.style.color = '#000080';
}
function deflash(curobj){
curobj.style.color = '#000040';
}
function floater(myurl) {
window.open(myurl,'floater',config='width=790, height=400, scrollbars=1 resizable=1');
}
function mapID2index (RID)
{
var x = 0;
var found = false;
var returnint = 0;
do
{
if (report[x].id == RID) found = true;
else x++;
}
while (x < tracker && !found);
if (found) returnint = x;
return returnint;
}
var tracker = 41;
var report = new Array(41);
report[0] = new RS6_report (42, 1, "Fantasy Boxscores", 1, 17, 0, "../reports/fantasy_boxscores.php" );
report[1] = new RS6_report (3, 1, "Live Scoreboard", 1, 17, 0, "../reports/live_scoreboard.php" );
report[2] = new RS6_report (0, 1, "Scores & Standings", 1, 17, 0, "../reports/standings.php" );
report[3] = new RS6_report (1, 1, "Tiebreaker Summary", 1, 14, 0, "../reports/tiebreakers.php" );
report[4] = new RS6_report (29, 1, "Strength of Victory", 1, 14, 0, "../reports/sov.php" );
report[5] = new RS6_report (2, 1, "Las Vegas Odds", 1, 17, 0, "../reports/vegas_odds.php" );
report[6] = new RS6_report (40, 1, "Starting Lineups", 1, 17, 0, "../reports/starting_lineups.php" );
report[7] = new RS6_report (5, 1, "NFL Box Scores", 1, 17, 1, "http://www.nfl.com/scores/{SEASON}/week{W}" );
report[8] = new RS6_report (6, 1, "Players of the Week", 1, 17, 0, "../reports/allstars.php" );
report[9] = new RS6_report (7, 1, "Hot Free Agents", 1, 17, 0, "../reports/hot_agents.php" );
report[10] = new RS6_report (18, 1, "AFC City Weather", 1, 17, 0, "../reports/afc_weather.php" );
report[11] = new RS6_report (19, 1, "NFC City Weather", 1, 17, 0, "../reports/nfc_weather.php" );
report[12] = new RS6_report (41, 1, "Injury Status", 1, 17, 0, "../reports/injury.php" );
report[13] = new RS6_report (8, 1, "Projections", 11, 14, 0, "../reports/projections.php" );
report[14] = new RS6_report (99, 2, "Add/Drop Players", 1, 17, 0, "../reports/pickups.php" );
report[15] = new RS6_report (31, 2, "Draft Summary", 1, 17, 0, "../reports/draft_summary_photos.php" );
report[16] = new RS6_report (51, 2, "League Calendar", 1, 17, 0, "../reports/calendar.php" );
report[17] = new RS6_report (35, 2, "Fantasy Schedule", 1, 17, 0, "../reports/fantasy_schedule.php" );
report[18] = new RS6_report (36, 2, "NFL Schedule", 1, 17, 0, "../reports/nfl_schedule.php" );
report[19] = new RS6_report (37, 2, "Strength of Schedule", 1, 17, 0, "../reports/sos.php" );
report[20] = new RS6_report (22, 2, "{SEASON} Fame Records", 1, 17, 0, "../reports/hof_single_season.php" )
report[21] = new RS6_report (23, 2, "{SEASON} Shame Records", 1, 17, 0, "../reports/hos_single_season.php" );
report[22] = new RS6_report (10, 2, "Transactions", 1, 17, 0, "../reports/transactions.php" );
report[23] = new RS6_report (55, 2, "Rosters", 1, 17, 0, "../reports/all_rosters.php" );
report[24] = new RS6_report (11, 2, "Scoring History", 1, 17, 0, "../reports/scoring_history.php" );
report[25] = new RS6_report (12, 2, "Player Statistics", 1, 17, 0, "../reports/player_stats.php" );
report[26] = new RS6_report (13, 2, "Free Agent Stats", 1, 17, 0, "../reports/free_agent_stats.php" );
report[27] = new RS6_report (14, 2, "Combo Stats", 1, 17, 0, "../reports/combo_stats.php" );
report[28] = new RS6_report (43, 2, "Defensive Trends", 1, 17, 0, "../reports/detrends.php" );
report[29] = new RS6_report (44, 2, "Defensive Trends II", 1, 17, 0, "../reports/detrends2.php" );
report[30] = new RS6_report (15, 2, "CBS - Latest Injuries", 1, 17, 1, "http://www.sportsline.com/nfl/injuries" );
report[31] = new RS6_report (16, 2, "Head to Head Grid", 1, 14, 0, "../reports/h2h.php" );
report[32] = new RS6_report (17, 2, "Division Strength", 1, 14, 0, "../reports/division_strength.php" );
report[33] = new RS6_report (20, 2, "Kitty Summary", 1, 17, 0, "../reports/kitty.php" );
report[34] = new RS6_report (21, 2, "Playoffs", 14, 17, 0, "../reports/brackets.php" );
report[35] = new RS6_report (33, 4, "Rules", 1, 17, 2, "../reports/rules.php" );
report[36] = new RS6_report (34, 4, "Smackboard", 1, 17, 2, "../../phpBB/" );
report[37] = new RS6_report (39, 4, "Fantasy Links", 1, 17, 2, "../reports/links.php" );
report[38] = new RS6_report (103, 4, "GSFBL", 1, 17, 2, "../../gsfbl/index.php" );
report[39] = new RS6_report (104, 4, "SDFBL", 1, 17, 2, "../../sdfbl/index.php" );
report[40] = new RS6_report (105, 4, "Home", 1, 17, 2, "../../index.php" );
function make_horizontal_menu(weeks_in_season, selected_week, selected_season, defsea, defwk)
{
// notes
// - report_week variable must be defined inside the calling report before this script
// - report_id variable must be defined as well
var menu_week = (selected_season == defsea) ? defwk : weeks_in_season;
var i;
var label;
var frase = '");
}
function make_season_arrows(first_season, last_season, selected_season, selected_week, defsea, defwk)
{
var left_rollover = " onMouseOver=\"flipper.src='../league_images/menu/left_arrow_lit.gif'; return true\"";
left_rollover += " onMouseOut=\"flipper.src='../league_images/menu/left_arrow.gif'; return true\">";
var rite_rollover = " onMouseOver=\"rflipper.src='../league_images/menu/right_arrow_lit.gif'; return true\"";
rite_rollover += " onMouseOut=\"rflipper.src='../league_images/menu/right_arrow.gif'; return true\">";
var left_image = '
defsea) last_season = defsea;
if (selected_season > first_season)
{
move_season = selected_season - 1;
TMB = parseme(report[myIndex].basename, selected_week, move_season);
txt += '';
}
else
{
txt += '
';
}
txt += '