var ymd = new Date();
var yy = ymd.getYear() % 1900 + 1900;
var mm = ymd.getMonth() + 1;
var dd = ymd.getDate();
var today = Date.parse(yy+"/"+mm+"/"+dd);


//NASCAR Race Calendar
var nextRaceNascar = "";
if(today <= Date.parse("2011/02/20")){
nextRaceNascar = "第1戦 2/20 DAYTONA";
}else if(today <= Date.parse("2011/02/27")){
nextRaceNascar = "第2戦 2/27 PHOENIX";
}else if(today <= Date.parse("2011/03/06")){
nextRaceNascar = "第3戦 3/6 LAS VEGAS";
}else if(today <= Date.parse("2011/03/20")){
nextRaceNascar = "第4戦 3/20 BRISTOL";
}else if(today <= Date.parse("2011/03/27")){
nextRaceNascar = "第5戦 3/27 FONTANA";
}else if(today <= Date.parse("2011/04/03")){
nextRaceNascar = "第6戦 4/3 MARTINSVILLE";
}else if(today <= Date.parse("2011/04/09")){
nextRaceNascar = "第7戦 4/9 TEXAS";
}else if(today <= Date.parse("2011/04/17")){
nextRaceNascar = "第8戦 4/17 TALLADEGA";
}else if(today <= Date.parse("2011/04/30")){
nextRaceNascar = "第9戦 4/30 RICHMOND";
}else if(today <= Date.parse("2011/05/07")){
nextRaceNascar = "第10戦 5/7 DARLINGTON";
}else if(today <= Date.parse("2011/05/15")){
nextRaceNascar = "第11戦 5/15 DOVER";
}else if(today <= Date.parse("2011/05/21")){
nextRaceNascar = "特別戦 5/21 ALL-STAR RACE";
}else if(today <= Date.parse("2011/05/29")){
nextRaceNascar = "第12戦 5/29 CHARLOTTE";
}else if(today <= Date.parse("2011/06/05")){
nextRaceNascar = "第13戦 6/5 KANSAS";
}else if(today <= Date.parse("2011/06/12")){
nextRaceNascar = "第14戦 6/12 POCONO";
}else if(today <= Date.parse("2011/06/19")){
nextRaceNascar = "第15戦 6/19 MICHIGAN";
}else if(today <= Date.parse("2011/06/26")){
nextRaceNascar = "第16戦 6/26 SONOMA";
}else if(today <= Date.parse("2011/07/02")){
nextRaceNascar = "第17戦 7/2 DAYTONA";
}else if(today <= Date.parse("2011/07/09")){
nextRaceNascar = "第18戦 7/9 KENTUCKY";
}else if(today <= Date.parse("2011/07/17")){
nextRaceNascar = "第19戦 7/17 LOUDON";
}else if(today <= Date.parse("2011/07/31")){
nextRaceNascar = "第20戦 7/31 INDIANAPOLIS";
}else if(today <= Date.parse("2011/08/07")){
nextRaceNascar = "第21戦 8/7 POCONO";
}else if(today <= Date.parse("2011/08/14")){
nextRaceNascar = "第22戦 8/14 WATKINS GLEN";
}else if(today <= Date.parse("2011/08/21")){
nextRaceNascar = "第23戦 8/21 MICHIGAN";
}else if(today <= Date.parse("2011/08/27")){
nextRaceNascar = "第24戦 8/27 BRISTOL";
}else if(today <= Date.parse("2011/09/04")){
nextRaceNascar = "第25戦 9/4 ATLANTA";
}else if(today <= Date.parse("2011/09/10")){
nextRaceNascar = "第26戦 9/10 RICHMOND";
}else if(today <= Date.parse("2011/09/18")){
nextRaceNascar = "第27戦 9/18 CHICAGO";
}else if(today <= Date.parse("2011/09/25")){
nextRaceNascar = "第28戦 9/25 LOUDON";
}else if(today <= Date.parse("2011/10/02")){
nextRaceNascar = "第29戦 10/2 DOVER";
}else if(today <= Date.parse("2011/10/09")){
nextRaceNascar = "第30戦 10/9 KANSAS";
}else if(today <= Date.parse("2011/10/15")){
nextRaceNascar = "第31戦 10/15 CHARLOTTE";
}else if(today <= Date.parse("2011/10/23")){
nextRaceNascar = "第32戦 10/23 TALLADEGA";
}else if(today <= Date.parse("2011/10/30")){
nextRaceNascar = "第33戦 10/30 MARTINSVILLE";
}else if(today <= Date.parse("2011/11/06")){
nextRaceNascar = "第34戦 11/6 TEXSAS";
}else if(today <= Date.parse("2011/11/13")){
nextRaceNascar = "第35戦 11/13 PHOENIX";
}else if(today <= Date.parse("2011/11/20")){
nextRaceNascar = "第36戦 11/20 HOMESTEAD";
}

//SUPER GT Race Calendar
var nextRaceGt = "";
if(today <= Date.parse("2011/05/01")){
nextRaceGt = "第2戦 5/1（富士スピードウェイ）";
}else if(today <= Date.parse("2011/05/22")){
nextRaceGt = "第1戦 5/22（岡山）";
}else if(today <= Date.parse("2011/06/19")){
nextRaceGt = "第3戦 6/19（セパン）";
}else if(today <= Date.parse("2011/07/31")){
nextRaceGt = "第4戦 7/31（SUGO）";
}else if(today <= Date.parse("2011/08/21")){
nextRaceGt = "第5戦 8/21（鈴鹿）";
}else if(today <= Date.parse("2011/09/11")){
nextRaceGt = "第6戦 9/11（富士）";
}else if(today <= Date.parse("2011/10/02")){
nextRaceGt = "第7戦 10/2（オートポリス）";
}else if(today <= Date.parse("2011/10/16")){
nextRaceGt = "第8戦 10/16（もてぎ）";
}else if(today <= Date.parse("2011/11/13")){
nextRaceGt = "特別戦 11/13（富士）";
}

//Formula NIPPON Race Calendar
var nextRaceFn = "";
if(today <= Date.parse("2011/05/15")){
nextRaceFn = "第1戦 5/15（鈴鹿）に日程変更";
}else if(today <= Date.parse("2011/06/05")){
nextRaceFn = "第2戦 6/5（オートポリス）";
}else if(today <= Date.parse("2011/07/17")){
nextRaceFn = "第3戦 7/17（富士）";
}else if(today <= Date.parse("2011/08/07")){
nextRaceFn = "第4 8/7（もてぎ）";
}else if(today <= Date.parse("2011/09/04")){
nextRaceFn = "第5戦 9/4（鈴鹿）";
}else if(today <= Date.parse("2011/09/25")){
nextRaceFn = "第6戦 9/25（SUGO）";
}else if(today <= Date.parse("2011/11/06")){
nextRaceFn = "第7戦 11/6（もてぎ）";
}else if(today <= Date.parse("2011/11/13")){
nextRaceFn = "FUJI SPRINT CUP 11/13（富士）";
}

//F3 Race Calendar
var nextRaceF3 = "";
if(today <= Date.parse("2011/05/15")){
nextRaceF3 = "第1・2戦 5/14・15（鈴鹿）に日程変更";
}else if(today <= Date.parse("2011/06/12")){
nextRaceF3 = "第3・4・5戦 6/11・12（富士）";
}else if(today <= Date.parse("2011/07/17")){
nextRaceF3 = "第6・7戦 7/16・17（富士）";
}else if(today <= Date.parse("2011/08/07")){
nextRaceF3 = "第8・9・10戦 8/6・7（もてぎ）";
}else if(today <= Date.parse("2011/08/28")){
nextRaceF3 = "第11・12戦 8/27・28（岡山）";
}else if(today <= Date.parse("2011/09/4")){
nextRaceF3 = "第13戦 9/3・4（鈴鹿）"
}else if(today <= Date.parse("2011/09/25")){
nextRaceF3 = "第14・15・16戦 9/24・25（SUGO）";;
}

//Formula Challenge Japan Race Calendar
var nextRaceFcj = "";
if(today <= Date.parse("2011/04/24")){
nextRaceFcj = "第1・2戦 4/23・24（富士）";
}else if(today <= Date.parse("2011/05/15")){
nextRaceFcj = "第3・4戦 5/14・15(鈴鹿）";
}else if(today <= Date.parse("2011/06/12")){
nextRaceFcj = "第5・6・7戦 6/11・12（富士）";
}else if(today <= Date.parse("2011/09/04")){
nextRaceFcj = "第8・9戦 9/3・4（鈴鹿）";
}else if(today <= Date.parse("2011/10/9")){
nextRaceFcj = "第10・11戦 10/8・9（鈴鹿）";
}else if(today <= Date.parse("2011/11/06")){
nextRaceFcj = "第12・13・14戦 11/5・6（もてぎ）";
}

//Netz Cup Race Calendar
var nextRaceNetz = "";
if(today <= Date.parse("2011/04/30")){
nextRaceNetz = "関東第1戦 4/30・5/1（富士）";
}else if(today <= Date.parse("2011/05/08")){
nextRaceNetz = "西日本第1戦 5/8（オートポリス）";
}else if(today <= Date.parse("2011/05/15")){
nextRaceNetz = "北海道第1戦 5/22（十勝）";
}else if(today <= Date.parse("2011/05/29")){
nextRaceNetz = "関西第2戦 5/29（岡山） ";
}else if(today <= Date.parse("2011/07/03")){
nextRaceNetz = "北海道第2戦 7/3（十勝）";
}else if(today <= Date.parse("2011/07/10")){
nextRaceNetz = "関西第3戦 7/9・10（鈴鹿）";
}else if(today <= Date.parse("2011/07/17")){
nextRaceNetz = "関東第2戦 7/16・17（富士）";
}else if(today <= Date.parse("2011/07/31")){
nextRaceNetz = "東北第2戦 7/30・31（SUGO）";
}else if(today <= Date.parse("2011/08/14")){
nextRaceNetz = "西日本第2戦 8/14（オートポリス）";
}else if(today <= Date.parse("2011/08/28")){
nextRaceNetz = "関西第4戦 8/27・28（岡山）";
}else if(today <= Date.parse("2011/09/04")){
nextRaceNetz = "関東第3戦 9/3・4（富士）";
}else if(today <= Date.parse("2011/09/018")){
nextRaceNetz = "関西第1戦 9/18（鈴鹿）";
}else if(today <= Date.parse("2011/09/25")){
nextRaceNetz = "東北第3戦 9/24・25（SUGO）";
}else if(today <= Date.parse("2011/10/01")){
nextRaceNetz = "西日本第3戦 10/1・2（オートポリス）";
}else if(today <= Date.parse("2011/10/02")){
nextRaceNetz = "関東第4戦 10/2（富士） ";
}else if(today <= Date.parse("2011/10/09")){
nextRaceNetz = "北海道第3戦 10/9（十勝）";
}
