/*
Special var
*/

PageLayout = "racing";

/*
 Milonic DHTML Website Navigation Menu - Version 3.4
 Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
 Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.
 
 The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
 Commercial and Corporate licenses  are available for use on all other web sites & Intranets.
 All Copyright notices MUST remain in place at ALL times and, please keep us informed of your 
 intentions to use the menu and send us your URL.
*/


//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE. If you have more than one menu_array.js file rem out this line in subsequent files
menunum=0;
menus=new Array();
_d=document;

function addmenu(){
	menunum++;
	menus[menunum]=menu;
}
function dumpmenus(){
	mt="<script language=javascript>";
	for(a=1;a<menus.length;a++){
		mt+=" menu"+a+"=menus["+a+"];"
	}
	mt+="<\/script>";
	_d.write(mt)
}
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless this file is part of a multi pack.

function jcew_openCurrentOdds() {
	var tempwin2=window.open('http://bet.hkjc.com/default.aspx?url=/racing/pages/odds_wp.aspx', '', 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600,top=80,left=80');
}

function jcew_allupcalculator() {
	var tempwin2=window.open('http://www.hkjc.com/chinese/oddscalc/oddscalc.asp','','width=700,height=560');
}

function jcew_investcalculator() {
	var tempwin2=window.open('http://analysis.hkjc.com/racing/ch/calculator/racingcalculator.html','','width=680,height=570,resizable');
}

function openEasyformShortcut(easyformPath, raceNo, displayLang){
	if(screen.availHeight >= 700){
		var easyform = window.open(easyformPath + "?shortcut=30&raceNo="+raceNo+"&lang="+displayLang, "easyform", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,screenX=0,screenY=0,left=0,top=0,maximize=1");
	}else{
		var easyform = window.open(easyformPath + "?shortcut=30&raceNo="+raceNo+"&lang="+displayLang, "easyform", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,screenX=0,screenY=0,left=0,top=0,maximize=1");
	}
	easyform.focus();
}

function openEasyform(easyformPath, displayLang){
	if(screen.availHeight >= 700){
		var easyform = window.open(easyformPath + "?lang="+displayLang, "easyform", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,screenX=0,screenY=0,left=0,top=0,maximize=1");
	}else{
		var easyform = window.open(easyformPath + "?lang="+displayLang, "easyform", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,screenX=0,screenY=0,left=0,top=0,maximize=1");
	}
	easyform.focus();
}

function jcew_openEasyWin() {
	openEasyform('/easyform/popIndex.asp', 'tc');
}
function jcew_simulcast_openWin() {
	var tempwin2=window.open('http://www.hkjc.com/chinese/special/Simulcast_races/index.asp', 'simulWin', 'Height=600,Width=780,resizable=1,scrollbars=yes,menubar=1,toolbar=1,left=20,top=20');
}

////////////////////////////////////
// Editable properties START here //
////////////////////////////////////

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=5)"
}
else
{
	effect = "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
}


timegap=500			// The time delay for menus to remain visible
followspeed=5		// Follow Scrolling speed
followrate=40		// Follow Scrolling Rate
suboffset_top=10;	// Sub menu offset Top position 
suboffset_left=10;	// Sub menu offset Left position

style1=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"FFFFFF",			// Mouse Off Font Color
"204a88",			// Mouse Off Background Color
"99ffff",			// Mouse On Font Color
"000000",			// Mouse On Background Color
"FFFFFF",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"新細明體, Verdana, Arial",	// Font Name
3,					// Menu Item Padding
"arrow.gif",		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"66ffff",			// 3D High Color
"000099",			// 3D Low Color
"000080",			// Current Page Item Font Color (leave this blank to disable)
"e7e7e7",			// Current Page Item Background Color (leave this blank to disable)
,					// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"000099",			// Menu Header Background Color (Leave blank if headers are not needed)
"204a88",			// Menu Item Separator Color
]

style2=[			// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"FFFFFF",			// Mouse Off Font Color
"204a88",			//"1252ac",			// Mouse Off Background Color
"99ffff",			// Mouse On Font Color
"000000",			// Mouse On Background Color
"25569f",			//"99ccff",			// Menu Border Color 
11,					// Font Size in pixels
"normal",			// Font Style (italic or normal)
"normal",			// Font Weight (bold or normal)
"新細明體, Verdana, Arial",	// Font Name
4,					// Menu Item Padding
"/chinese/images/neo02/hrc_sub_menu_arrow.gif",		// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
,					// 3D High Color
,					// 3D Low Color
"ffffff",			// Current Page Item Font Color (leave this blank to disable)
"000088",			// Current Page Item Background Color (leave this blank to disable)
,					// Top Bar image (Leave this blank to disable)
"ffffff",			// Menu Header Font Color (Leave blank if headers are not needed)
"",					// Menu Header Background Color (Leave blank if headers are not needed)
"25569f",			// Menu Item Separator Color
]

addmenu(menu=[		// This is the array that contains your menu properties and details
"mainmenu",			// Menu Name - This is needed in order for the menu to be called
116,					// Menu Top - The Top position of the menu in pixels
13,				// Menu Left - The Left position of the menu in pixels
,					// Menu Width - Menus width in pixels
0,					// Menu Border Width 
,					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,				// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"left",				// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
,				// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Background image for menu when BGColor set to transparent.
,					// Scrollable Menu
,					// Reserved for future use
,"&nbsp;報名表 &nbsp;","/chinese/racing/entry.asp",,"報名表",2
,"&nbsp;排位表 &nbsp;","show-menu=Race_Card","/chinese/racing/startersR1_c.asp","排位表",2
,"&nbsp;即時賠率 &nbsp;","javascript:jcew_openCurrentOdds()",,"即時賠率",2
,"&nbsp;參考資料 &nbsp;","show-menu=Reference_Info","/chinese/racing/Change.asp","參考資料",2
,"&nbsp;統計資料 &nbsp;","show-menu=Statistics","/chinese/racing/Draw.asp","統計資料",2
,"&nbsp;賽果及派彩 &nbsp;","/chinese/racing/Results.asp",,"賽果及派彩",2
,"&nbsp;賽事報告 &nbsp;","show-menu=Race_Reports","/chinese/racing/RaceReportFull.asp","賽事報告",2
,"&nbsp;騎練資料 &nbsp;","show-menu=Jockeys_Trainers","/chinese/racing/Jockey.asp","騎練資料",2
,"&nbsp;馬匹資料 &nbsp;","show-menu=Horses","/chinese/racing/SelectHorse.asp","馬匹資料",2
,"&nbsp;賽期表 &nbsp;","show-menu=Fixture","/chinese/racing/Fixture.asp","賽期表",2
,"&nbsp;國際評分及世界排名 &nbsp;","show-menu=Int_classifications","/chinese/racinginfo/hk_int_rating.asp","國際評分及世界排名",2
])

	addmenu(menu=["Race_Card",
	,,210,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;排位表 &nbsp;","/chinese/racing/startersR1_c.asp",,"排位表",2
	,"&nbsp;晨操資料","/chinese/racing/Track_Racecard.asp",,"晨操資料",2
	,"&nbsp;各駒上次競賽事件摘要","/chinese/racing/RaceReportExt.asp",,"各駒上次競賽事件摘要",2
	,"&nbsp;同場賽駒上次對壘賽績比較","/chinese/racing/formline.asp",,"同場賽駒上次對壘賽績比較",2
	,"&nbsp;特別因素","/chinese/racing/Exception.asp",,"特別因素",2
	,"&nbsp;傷患紀錄","/chinese/racing/veterinary_record.asp",,"傷患紀錄",2
	])

	addmenu(menu=["Reference_Info",
	,,210,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;更易事項","/chinese/racing/Change.asp",,"更易事項",2
	,"&nbsp;賽馬日一般資訊","/chinese/racing/Summary.asp",,"賽馬日一般資訊",2
	,"&nbsp;貼士指數","/chinese/tipsindex/tips_index.asp  target=_blank",,"貼士指數",2
	,"&nbsp;智易表","javascript:jcew_openEasyWin()",,"智易表",2
	,"&nbsp;速勢系統","/chinese/formguide/formguide.asp",,"速勢系統",2
	,"&nbsp;賽道選用","/chinese/racinginfo/racing_course_select.htm",,"賽道選用",2
	,"&nbsp;跑道資料","/chinese/racinginfo/racing_course.htm",,"跑道資料",2
	,"&nbsp;跑道標準時間","/chinese/racinginfo/racing_course_time.htm",,"跑道標準時間",2
	,"&nbsp;賽事規例及指示","/chinese/racinginfo/racing_rules_instr.asp",,"賽事規例及指示",2
	,"&nbsp;評磅及評分政策","/chinese/racinginfo/handicap_policy.asp",,"評磅及評分政策",2
	,"&nbsp;練馬師分場表","/chinese/racing/TrainerEntry.asp",,"練馬師分場表",2
	,"&nbsp;騎師分場表","/chinese/racing/JockeyBooking.asp",,"騎師分場表",2
	,"&nbsp;過關計算機","javascript:jcew_allupcalculator()",,"過關計算機",2
	,"&nbsp;投注計算機","javascript:jcew_investcalculator()",,"投注計算機",2	
	,"&nbsp;三T神算機","/chinese/racing/3tgen_index.asp",,"三T神算機",2	
	,"&nbsp;天氣預測","/chinese/racinginfo/racing_weather.htm",,"天氣預測",2
	])

	addmenu(menu=["Statistics",
	,,170,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;檔位統計","/chinese/racing/Draw.asp",,"檔位統計",2
	,"&nbsp;騎師王統計","/chinese/racing/jkcstat.asp",,"騎師王統計",2
	,"&nbsp;騎師大熱勝出及入位統計","/chinese/racing/JockeyFavourite.asp",,"騎師大熱勝出及入位統計",2
	,"&nbsp;練馬師大熱勝出及入位統計","/chinese/racing/TrainerFavourite.asp",,"練馬師大熱勝出及入位統計",2
	])

	addmenu(menu=["Race_Reports",
	,,210,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;競賽事件報告","/chinese/racing/RaceReportFull.asp",,"競賽事件報告",2
	,"&nbsp;沿途走勢評述","/chinese/racing/CORunning.asp",,"沿途走勢評述",2
	])

	addmenu(menu=["Jockeys_Trainers",
	,,140,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;騎師資料","/chinese/racing/Jockey.asp",,"騎師資料",2
	,"&nbsp;練馬師資料","/chinese/racing/Trainer.asp",,"練馬師資料",2
	])

	addmenu(menu=["horses",
	,,150,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;馬匹資料","/chinese/racing/SelectHorse.asp",,"馬匹資料",2
	,"&nbsp;馬匹評分","../racing/mcs01_xml_horserating.asp?type=CLAS",,"馬匹評分",2
//for season end	,"&nbsp;馬匹評分","../racing/mcs01_showhtml.asp?SelType=AHRL&filename=20070718_154519_C_AHRL.htm",,"馬匹評分",2
	,"&nbsp;「首度勝出特別獎金」資料","../racinginfo/fwb_declared_starters.asp",,"「首度勝出特別獎金」資料",2
	,"&nbsp;晨操資料","/chinese/racing/Track_Search.asp",,"晨操資料",2
	,"&nbsp;試閘詳細結果","/chinese/racing/btresult.asp",,"試閘詳細結果",2
	,"&nbsp;傷患紀錄","/chinese/racing/ove_record.asp",,"傷患紀錄",2
	,"&nbsp;馬匹消息","/chinese/racing/horseinfo.asp",,"馬匹消息",2
	,"&nbsp;馬匹健康狀況","/chinese/racing/Health.asp",,"馬匹健康狀況",2
	,"&nbsp;馬匹來港前名稱及血統","/chinese/racing/horse_former_name.asp",,"馬匹來港前名稱及血統",2
	,"&nbsp;自購馬進口資格","/chinese/racinginfo/pps_import_critieria.htm",,"自購馬進口資格",2
	,"&nbsp;自購馬來港前賽績","/chinese/racinginfo/ppo_performance_current.asp",,"自購馬來港前賽績",2
	])

	addmenu(menu=["Fixture",
	,,140,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;香港分級賽","show-menu=Pattern_Races","/chinese/racinginfo/patternrace_current.asp","香港分級賽",2
	,"&nbsp;主要賽事","/chinese/racinginfo/key_races.asp",,"主要賽事",2
	,"&nbsp;今季賽期表","/chinese/racing/Fixture.asp",,"今季賽期表",2
	,"&nbsp;越洋轉播海外賽事","javascript:jcew_simulcast_openWin()",,"越洋轉播海外賽事",2
	])

		addmenu(menu=["Pattern_Races",
		,,170,2,"",style2,,"left",effect,,,,,,,,,,,,
		,"&nbsp;二○○九至二○一○分級賽","/chinese/racinginfo/0910_menu_patternrace_list_chrono.asp",,"二○○九至二○一○分級賽",2
		,"&nbsp;二○○八至二○○九分級賽","/chinese/racinginfo/0809_menu_patternrace_list_chrono.asp",,"二○○八至二○○九分級賽",2
		,"&nbsp;二○○七至二○○八分級賽","/chinese/racinginfo/0708_menu_patternrace_list_chrono.asp",,"二○○七至二○○八分級賽",2
		,"&nbsp;二○○六至二○○七分級賽","/chinese/racinginfo/0607_menu_patternrace_list_chrono.asp",,"二○○六至二○○七分級賽",2
		,"&nbsp;二○○五至二○○六分級賽","/chinese/racinginfo/0506_menu_patternrace_list_chrono.asp",,"二○○五至二○○六分級賽",2
		,"&nbsp;二○○四至二○○五分級賽","/chinese/racinginfo/04_menu_patternrace_list_chrono.asp",,"二○○四至二○○五分級賽",2
		,"&nbsp;二○○三至二○○四分級賽","/chinese/racinginfo/03_menu_patternrace_list_chrono.asp",,"二○○三至二○○四分級賽",2
		,"&nbsp;二○○二至二○○三分級賽","/chinese/racinginfo/menu_patternrace_list_chrono.asp",,"二○○二至二○○三分級賽",2
		])

	addmenu(menu=["Int_classifications",
	,,170,2,"",style2,,"left",effect,,,,,,,,,,,,
	,"&nbsp;香港馬匹國際評分","/chinese/racinginfo/hk_int_rating.asp",,"香港馬匹國際評分",2
	,"&nbsp;最新世界馬匹排名","/chinese/events/intl_world50_rank.asp",,"最新世界馬匹排名",2
	,"&nbsp;歷年世界馬匹年終排名","show-menu=world_ranking","/chinese/special/2006_world_rankings/index.asp target=_blank","歷年世界馬匹年終排名",2
	])

	addmenu(menu=["world_ranking",
			,,190,2,"",style2,,"left",effect,,,,,,,,,,,,
			,"&nbsp;2009 世界馬匹年終排名","http://special.hkjc.com/promo/ch/200912_world_rankings/wr_release.asp target=_blank",,"2009 世界馬匹年終排名",2			
			,"&nbsp;2008/2009 香港馬匹年終排名","http://special.hkjc.com/promo/ch/2009_hk_ranking/wr_hkranking.asp target=_blank",,"2008/2009 香港馬匹年終排名",2			
			,"&nbsp;2008 世界馬匹年終排名","http://special.hkjc.com/promo/ch/200812_world_rankings/wr_release.asp target=_blank",,"2008 世界馬匹年終排名",2
			,"&nbsp;2007/2008 世界馬匹年終排名","http://special.hkjc.com/promo/ch/2008_world_rankings/index.asp target=_blank",,"2007/2008 世界馬匹年終排名",2
			,"&nbsp;2006/2007 世界馬匹年終排名","http://special.hkjc.com/promo/ch/2007_world_rankings/index.asp target=_blank",,"2006/2007 世界馬匹年終排名",2
			,"&nbsp;2005/2006 世界馬匹年終排名","/chinese/special/2006_world_rankings/index.asp target=_blank",,"2005/2006 世界馬匹年終排名",2
			,"&nbsp;2005 世界馬匹年終排名","/chinese/special/world_rankings_2005/wr2005_index.asp target=_blank",,"2005 世界馬匹年終排名",2
			,"&nbsp;2004/2005 香港及世界馬匹年終排名","/chinese/special/2005_world_ranking/index.asp",,"2005 香港及世界馬匹年終排名",2
			,"&nbsp;2004 香港及世界馬匹年終排名","/chinese/special/2005_wr2004/wr2004_index.asp",,"2004 香港及世界馬匹年終排名",2
			,"&nbsp;2003 香港及國際分類評分","/chinese/special/07/intl_classification03.htm",,"2003 香港及國際分類評分",2
			,"&nbsp;2002 香港及國際分類評分","/english/special/07/int_hk_classifications02to03.htm",,"2002 香港及國際分類評分",2
			,"&nbsp;2001 香港及國際分類評分","/english/special/07/int_hk_classifications02.htm",,"2001 香港及國際分類評分",2
			])

addmenu(menu=["firstlevel_betting_service",
79,245,100,2,"",style2,,"left",effect,,,,,,,,,,,,
,"&nbsp;投注途徑","javascript:openBet_Win(1);",,"投注途徑",2
,"&nbsp;投注戶口","javascript:openBet_Win(2);",,"投注戶口",2
,"&nbsp;投注入門","/chinese/betting/guide.htm",,"投注入門",2
,"&nbsp;博彩規例","/chinese/betting/bet_betrules.htm",,"博彩規例",2])

dumpmenus();

/// functions

function neo02_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=neo02_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
neo02_reloadPage(true);

function neo02_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=neo02_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function neo02_swapImage() { //v3.0
  var i,j=0,x,a=neo02_swapImage.arguments; document.neo02_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=neo02_findObj(a[i]))!=null){document.neo02_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}