<!--
if (template == null | template == "") {
	var template = 0;	
}

if (template == 1) {
	var objLeft = 226;
	var objLeft02 = 226;
	var minScreen = 780+20;
	var maxScreen = 900;
} else {
	var objLeft = 291;
	var objLeft02 = 291;
	var minScreen = 750+20;
	var maxScreen = 900;
}
	//var bgLeft = objLeft - 10;
	var bgLeft = objLeft - 4;
	var goSpeed = 1;
	var goStep
	var tempLeft;
	var winW;
	var winWidth;
	var motion; 
	

function goLayer() {
	if (parseInt(navigator.appVersion)>3) {
		if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winWidth = winW - 17;
		}
		if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winWidth = winW - 17;
		}
		//alert(winW);
		/*
		if (winWidth <= minScreen) {
			tempLeft = objLeft;
		} else if (winWidth > minScreen && winWidth < maxScreen) {
			tempLeft = (winWidth-minScreen) + objLeft;
		} else if (winWidth >= maxScreen) {
			tempLeft = (maxScreen-minScreen) + objLeft;
		}
		*/
		if (winWidth >= maxScreen) {
		   tempLeft = (maxScreen-minScreen) + objLeft;
		  } else {
		   tempLeft = objLeft;
		  }

		MM_findObj('content').style.left = objLeft02;
		MM_findObj('bg').style.left = objLeft02 - 4;
		
		if (winW > minScreen) {
			if (navigator.appName.indexOf("Microsoft") != -1) {
				MM_findObj('bg').style.width = winWidth - objLeft02 + 4;
			} else {
				MM_findObj('bg').style.width = winWidth - objLeft02 + 2;
			}
		} else {
			MM_findObj('bg').style.width = minScreen - objLeft;
		}
		
		goStep = (tempLeft-objLeft02)/4;
		
		if (objLeft02-tempLeft>1 | objLeft02-tempLeft<-1) {
			//alert(tempLeft);
			objLeft02 += goStep;
			motion = setTimeout("goLayer()",goSpeed);
		} else {
			objLeft02 = tempLeft; 
			clearTimeout(motion);
		}
	}
}

function start() {
	if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winWidth = winW - 17;
		}
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		winW = document.body.offsetWidth;
		winWidth = winW - 17;
	}
	/*
	if (winWidth <= minScreen) {
		tempLeft = objLeft;
	} else if (winWidth > minScreen && winWidth < maxScreen) {
		tempLeft = (winWidth-minScreen) + objLeft;
	} else if (winWidth >= maxScreen) {
		tempLeft = (maxScreen-minScreen) + objLeft;
	}
	*/
	if (winWidth >= maxScreen) {
	  tempLeft = (maxScreen-minScreen) + objLeft;
	 } else {
	  tempLeft = objLeft;
	 }
		
	MM_findObj('content').style.left = tempLeft;
	MM_findObj('bg').style.left = tempLeft - 4;
	
	if (winW > minScreen) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			MM_findObj('bg').style.width = winWidth - tempLeft + 4;
		} else {
			MM_findObj('bg').style.width = winWidth - tempLeft + 2;
		}
	} else {
		MM_findObj('bg').style.width = minScreen - objLeft;
	}
}

function changeHeight() {
	//alert(document.body.scrollHeight);
	if (MM_findObj('flashMovie').height < document.body.scrollHeight) {
		MM_findObj('flashMovie').height = document.body.scrollHeight;
		MM_findObj('flashBg').height = document.body.scrollHeight;
	} else {
		MM_findObj('flashMovie').height = document.body.offsetHeight;
		MM_findObj('flashBg').height = document.body.offsetHeight;
	}
}

function changeFullHeight()
{
	//alert(document.body.scrollHeight);
	if (MM_findObj('flashMovie').height < document.body.scrollHeight)
	{
		MM_findObj('flashMovie').height = document.body.scrollHeight;
		MM_findObj('flashBg').height = document.body.scrollHeight;
	}
	else if (MM_findObj('flashMovie').height > document.body.scrollHeight) 
	{
		MM_findObj('flashMovie').height = document.body.offsetHeight;
		MM_findObj('flashBg').height = document.body.offsetHeight;

		if (MM_findObj('flashMovie').height < document.body.scrollHeight)
		{
			MM_findObj('flashMovie').height = document.body.scrollHeight;
			MM_findObj('flashBg').height = document.body.scrollHeight;
		}

	}
}

function changeHeightHome() {
	//alert(document.body.scrollHeight);
	if (MM_findObj('flashMovie').height < document.body.scrollHeight) {
		MM_findObj('flashMovie').height = document.body.scrollHeight;
	} else {
		MM_findObj('flashMovie').height = document.body.offsetHeight;
	}
}

function changeLanguage() {
	tempFirstpos = location.href.lastIndexOf('/big5/')+5;
	tempLastPos = location.href.length;
	tempURL = location.href.substring(tempFirstpos, tempLastPos);
	
	window.location.href = path + '../en' + tempURL;
}

function goBadges(eventNo, templateNo, badgesSection02) {
	//alert(badgesSection);
	if (badgesSection02 != null) {
		badgesSection = badgesSection02;
	}
	window.location.href = path + "badges/event_" + templateNo + ".asp?badgesSection=" + badgesSection + "&eventNo=" + eventNo;
}

var engUpperArray = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
var engLowerArray = new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");
var menuSubSection = 1;

function genMenu(target) {
	var tempTxt;
	
	tempTxt = '<table width="100%"  border="0" cellspacing="0" cellpadding="0">';
	//alert(menuArray[0]);
	for (i=0; i<menuArray.length; i+=2) {
		tempTxt += '<tr>';
		
		if (target == 0) {
			tempTxt += '<td width="4" class="' + section + 'MenuOff2" id ="menuLeft_' + i + '"><img src="../images/common/spacer.gif" width="4" height="8"></td>';
			if (menuArray[i+1] > 0) {
				tempTxt += '<td width="80" align="right" class="' + section + 'MenuOff1" onMouseOver="menuOn(' + i + ')" onMouseOut="menuOff(' + i + ')" onClick="window.location.href=\'' + menuLink + '?menuSection=' + (i/2) + "&subSection=" + engLowerArray[0] + '\'" id ="menuBtn_' + i + '"><img src="../images/common/spacer.gif" width="4" height="4"><br><strong>' +  menuArray[i] +'</strong><br><img src="../images/common/spacer.gif" width="4" height="4"></td>';
			} else {
				tempTxt += '<td width="80" align="right" class="' + section + 'MenuOff1" onMouseOver="menuOn(' + i + ')" onMouseOut="menuOff(' + i + ')" onClick="window.location.href=\'' + menuLink + '?menuSection=' + (i/2) + '\'" id ="menuBtn_' + i + '"><img src="../images/common/spacer.gif" width="4" height="4"><br><strong>' +  menuArray[i] +'</strong><br><img src="../images/common/spacer.gif" width="4" height="4"></td>';
			}
			tempTxt += '<td width="13" align="right" valign="top" class="' + section + 'MenuOff1" id ="menuRight_' + i + '"><img src="../images/common/arrow_white.gif" width="4" height="8" hspace="3" vspace="9" name="menuArrow_' + i + '"></td>';
		} else {
			if (menuSection == i/2) {
				tempTxt += '<td width="4" class="' + section + 'MenuOn2" id ="menuLeft_' + i + '"><img src="../images/common/spacer.gif" width="4" height="8"></td>';
				tempTxt += '<td width="80" align="right" class="' + section + 'MenuOn1"><img src="../images/common/spacer.gif" width="4" height="4"><br><strong>' +  menuArray[i] +'</strong><br><img src="../images/common/spacer.gif" width="4" height="3"></td>';
				tempTxt += '<td width="13" align="right" valign="top" class="' + section + 'MenuOn1" id ="menuRight_' + i + '"><img src="../images/common/arrow_white02.gif" width="4" height="8" hspace="3" vspace="9" name="menuArrow_' + i + '"></td>';
				
				if (menuArray[i+1] > 0) {
				tempTxt += '<tr><td colspan="3" background="../images/common/dash_02.gif" class="' + section + 'MenuOn1"><img src="../images/common/spacer.gif" width="1" height="1"></td></tr>';
				
					for (j=1; j<=menuArray[i+1]; j+=1) {
						tempTxt += '<tr>';
						
						if (menuSubSection == j) {
							tempTxt += '<td width="4" class="' + section + 'MenuOn2" id ="menuLeft_' + j+20 + '"><img src="../images/common/spacer.gif" width="4" height="8"></td>';
							tempTxt += '<td width="80" align="right" class="' + section + 'MenuOff1" id ="menuBtn_' + j+20 + '"><strong>' +  '菜譜 "' + engUpperArray[j-1] +'"</strong></td>';
							tempTxt += '<td width="13" align="right" valign="top" class="' + section + 'MenuOff1" id ="menuRight_' + j+20 + '"><img src="../images/common/point_white.gif" width="4" height="8" hspace="3" vspace="7" name="menuArrow_' + j+20 + '"></td>';
						} else {
							tempTxt += '<td width="4" class="' + section + 'MenuOn2" id ="menuLeft_' + j+20 + '"><img src="../images/common/spacer.gif" width="4" height="8"></td>';
							tempTxt += '<td width="80" align="right" class="' + section + 'MenuOn1" onMouseOver="subMenuOff(' + j+20 + ')" onMouseOut="subMenuOn(' + j+20 + ')" onClick="subMenuGo(' + j + ');genMenu(1)" id ="menuBtn_' + j+20 + '"><strong>' +  '菜譜 "' + engUpperArray[j-1] +'"</strong></td>';
							tempTxt += '<td width="13" align="right" valign="top" class="' + section + 'MenuOn1" id ="menuRight_' + j+20 + '"><img src="../images/common/point_white02.gif" width="4" height="8" hspace="3" vspace="7" name="menuArrow_' + j+20 + '"></td>';
						}
				
				tempTxt += '</tr>';
					}
				}
			} else {
				tempTxt += '<td width="4" class="' + section + 'MenuOff2" id ="menuLeft_' + i + '"><img src="../images/common/spacer.gif" width="4" height="8"></td>';
				tempTxt += '<td width="80" align="right" class="' + section + 'MenuOff1" onMouseOver="menuOn(' + i + ')" onMouseOut="menuOff(' + i + ')" onClick="menuGo(' + i + ');genMenu(1)" id ="menuBtn_' + i + '"><img src="../images/common/spacer.gif" width="4" height="4"><br><strong>' +  menuArray[i] +'</strong><br><img src="../images/common/spacer.gif" width="4" height="3"></td>';
				tempTxt += '<td width="13" align="right" valign="top" class="' + section + 'MenuOff1" id ="menuRight_' + i + '"><img src="../images/common/arrow_white.gif" width="4" height="8" hspace="3" vspace="9" name="menuArrow_' + i + '"></td>';
			}
		}
		tempTxt += '</tr>';
		tempTxt += '<tr><td colspan="3" bgcolor="#FFFFFF"><img src="../images/common/spacer.gif" width="1" height="1"></td></tr>';
	}
	if (target == 1) {
		tempTxt += '<tr>';
		tempTxt += '<td colspan="3"><a href="javascript:menuPrint()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'menuPrint\',\'\',\'../images/common/btn_menu_print_f2.gif\',1)"><img src="../images/common/btn_menu_print.gif" name="menuPrint" width="97" height="40" border="0"></a></td>';
		tempTxt += '</tr>';
		
		tempTxt += '<tr><td colspan="3" bgcolor="#FFFFFF"><img src="../images/common/spacer.gif" width="1" height="1"></td></tr>';
	}
	
	tempTxt += '</table>';
	
	MM_findObj('menu').innerHTML = tempTxt;
	if (target == 0) {
		MM_preloadImages("../images/common/arrow_white02.gif","../images/common/btn_menu_print_f2.gif");
	}
}

function menuPrint() {
	printURL = window.menuIFrame.location.href;
	//window.open(printURL);
	NewWindow(printURL + '?menuPrint=1', 'print', '400', '580', 'yes', 'yes');
}

function menuGo(target) {
	menuSection = target/2;
	menuLink02 = menuLink.substring(0,menuLink.length-4);
	if (menuArray[target+1] > 0) {
		window.menuIFrame.location.href =  menuLink02 + "_" + (menuSection + 1) + engLowerArray[0] + ".asp";
		menuSubSection = 1;
	} else {
		window.menuIFrame.location.href =  menuLink02 + "_" + (menuSection + 1) + ".asp";
	}
	//alert(window.menuIFrame.location.href);
}

function subMenuGo(target) {
	menuSubSection = target;
	menuLink02 = menuLink.substring(0,menuLink.length-4);
	window.menuIFrame.location.href =  menuLink02 + "_" + (menuSection + 1) + engLowerArray[target-1] + ".asp";
	//alert(window.menuIFrame.location.href);
}

function menuOn(target) {
	MM_findObj('menuBtn_'+target).className = section + 'MenuOn1';
	MM_findObj('menuRight_'+target).className = section + 'MenuOn1';
	MM_findObj('menuLeft_'+target).className = section + 'MenuOn2';
	MM_findObj('menuArrow_'+target).src = "../images/common/arrow_white02.gif";
}

function menuOff(target) {
	MM_findObj('menuBtn_'+target).className = section + 'MenuOff1';
	MM_findObj('menuRight_'+target).className = section + 'MenuOff1';
	MM_findObj('menuLeft_'+target).className = section + 'MenuOff2';
	MM_findObj('menuArrow_'+target).src = "../images/common/arrow_white.gif";
		
}

function subMenuOn(target) {
	MM_findObj('menuBtn_'+target).className = section + 'MenuOn1';
	MM_findObj('menuRight_'+target).className = section + 'MenuOn1';
	//MM_findObj('menuLeft_'+target).className = section + 'MenuO2';
	MM_findObj('menuArrow_'+target).src = "../images/common/point_white02.gif";
}

function subMenuOff(target) {
	MM_findObj('menuBtn_'+target).className = section + 'MenuOff1';
	MM_findObj('menuRight_'+target).className = section + 'MenuOff1';
	//MM_findObj('menuLeft_'+target).className = section + 'MenuOff2';
	MM_findObj('menuArrow_'+target).src = "../images/common/point_white.gif";
		
}

function htmlToFlash() {
	if (location.href.lastIndexOf('/') !=-1) {
		firstpos = location.href.lastIndexOf('/')+1;
		//secondpos = location.href.indexOf('/');
		//secondpos = 28;
		lastpos = location.href.length;
		pageName = location.href.substring(firstpos,lastpos);
		//folderName = location.href.substring(secondpos,firstpos-1);
		pageURL = location.href;
	}
	//alert (folderName);
	
	var theMovie;
/*
	if(navigator.appName=="Netscape") {
		theMovie = document.embeds[0];
	} else {
		theMovie = document.flashMovie;
	}
*/
	MM_findObj('flashMovie').SetVariable("_root.pageName", pageName);
	MM_findObj('flashMovie').SetVariable("_root.pageURL", pageURL);
	//window.document.flashMovie.SetVariable("_root.pageName", pageName);
	//theMovie.SetVariable("_root.pageName", pageName);
	//theMovie.SetVariable("_root.pageURL", pageURL);
}

function NewWindow(mypage, myname, w, h, scroll,resizable) {
//var winl = (screen.width - w) / 2;
//var wint = (screen.height - h) / 2;
var winl = 0;
var wint = 0;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
win = window.open(mypage, myname, winprops)
win.self.focus()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function genShopImage(mypage, myname, w, h, scroll, resizable, imgW, imgH) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
win = window.open(mypage, myname, winprops);
win.document.open();
win.document.write('<html>');
win.document.write('<head><title>The Hong Kong Jockey Club</title></head>');
win.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
win.document.write('<img src="'+mypage+'" width="'+w+'" height="'+h+'" border="0">');
win.document.write('</body>');
win.self.focus()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_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=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function genPulldown(){  // default top for 3 para, change top for 4 para

	var args = genPulldown.arguments;
	
	if( args.length == 3 )
		genPulldownCore(args[0], args[1], args[2], "69");
	else
		genPulldownCore(args[0], args[1], args[2], args[3]);
}



function genPulldownCore(genList, pDownClass, dashGif, topHeight){

document.write('<div id="pulldown" style="position:absolute; left:310; top:' + topHeight + '; z-index:100; visibility: hidden" onMouseOut="MM_showHideLayers(\'pulldown\',\'\',\'hide\')" onMouseOver="MM_showHideLayers(\'pulldown\',\'\',\'show\')">');
document.write('<table width="157" border="0" cellspacing="1" cellpadding="0" bgcolor="#D7D7D7">');
document.write('<tr>');
document.write('<td><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">');
document.write('<tr bgcolor="#FFFFFF">');
document.write('<td><table width="100%" border="0" cellspacing="0" cellpadding="5" bgcolor="#FFFFFF">');

for( var i=0; i<genList.length; i++ )
{	
	if( i != 0 )
	{
		//For generate the dash line
		if( genList[i][1] != genList[i-1][1] )
		{
			document.write('<tr>');
			document.write('<td style="padding:0px;" align="center"><img src="../images/common/' + dashGif + '" width="142" height="1"></td>');
			document.write('</tr>');
		}
	}
	
	// For no link Main Menu
	if( genList[i][1] == 0 & genList[i][2] == "none" )
	{
		document.write('<tr>');
		document.write('<td class="' + pDownClass + '" height="26">' + genList[i][0] + '</td>');
		document.write('</tr>');
	}
	
	//For link Main Meun
	if( genList[i][1] == 0 & genList[i][2] != "none" )
	{	
		document.write('<tr>');
		
		if (genList[i][3] == 1) {
			document.write('<td class="' + pDownClass + 'Off" onClick="window.open(\'');
			document.write(genList[i][2]);
			document.write('\');"');
		} else {
			document.write('<td class="' + pDownClass + 'Off" onClick="location.href=\'');
			document.write(genList[i][2]);
			document.write('\';"');
		}
		
		document.write(' onMouseOver="this.className=\'' + pDownClass + 'On\'" onMouseOut="this.className=\'' + pDownClass + 'Off\'" height="26">');
		document.write(genList[i][0]);
		document.write('</td>');
		document.write('</tr>');
	}
	
	//For sub Meun
	if( genList[i][1] == 1 )
	{
		document.write('<tr>');
		
		if (genList[i][3] == 1) {
			document.write('<td class="pulldownVmOff" onClick="window.open(\'');
			document.write(genList[i][2]);
			document.write('\');"');
		} else {
			document.write('<td class="pulldownVmOff" onClick="location.href=\'');
			document.write(genList[i][2]);
			document.write('\';"');
		}
		
		document.write('\'" onMouseOver="this.className=\'pulldownVmOn\'" onMouseOut="this.className=\'pulldownVmOff\'" height="21">');
		document.write(genList[i][0]);
		document.write('</td>');
		document.write('</tr>');
	}
}

document.write('</table></td>');
document.write('</tr>');
document.write('</table></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

}

function DDN_openBrWindow(theURL,winName,features) { //v1.2
  window.open(theURL,winName,features);
}

function openQuiz() {
  NewWindow(path + 'others/quiz_home.asp','quiz','646','396','no','no');
}

var xmasMenuArray_1 = new Array(["冬日濃情禮物籃","shopping_xmas_gift_santa.asp"],["佳節歡騰禮物籃","shopping_xmas_gift_hoho.asp"],["聖誕喜悅禮物籃","shopping_xmas_gift_north.asp"],["瑰麗奇珍禮物籃","shopping_xmas_gift_white.asp"],["醇酒聖誕禮物籃","shopping_xmas_gift_choco.asp"]);

var xmasMenuArray_2 = new Array(["Champagne","shopping_xmas_conn_champagne.asp"],["White Burgundy","shopping_xmas_conn_whiteBurgundy.asp"],["Red Burgundy","shopping_xmas_conn_redBurgundy.asp"],["Baron Philippe<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">de Rothschild","shopping_xmas_conn_de.asp"],["Ch&acirc;teau Palmer<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">& Sichel Family","shopping_xmas_conn_family.asp"],["Barossa Valley &<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">South Australia","shopping_xmas_conn_australian.asp"],["USA White<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">Wines","shopping_xmas_conn_whiteWines.asp"],["USA Red Wines","shopping_xmas_conn_redWines.asp"],["Sweet Delights","shopping_xmas_conn_delights.asp"],["Wine Boutique<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">Selections","shopping_xmas_conn_boutique.asp"],["Riedel Crystal<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">Range","shopping_xmas_conn_crystal.asp"],["Royal Selangor<br><img src=\"../images/common/spacer.gif\" width=\"24\" height=\"1\">Range","shopping_xmas_conn_royal.asp"]);

var xmasMenuArray_3 = new Array(["頭盤","shopping_xmas_food_appe.asp"],["主菜","shopping_xmas_food_main.asp"],["甜品","shopping_xmas_food_dess.asp"]);


function xmasMenu(happySection) {
	//xmasSection(happySection);
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="5">');
	for (i=0; i<eval("xmasMenuArray_"+happySection).length; i++) {
			if (i == xmasNav - 1)	{
				document.write('<tr>');
				document.write('	<td class="xmasNav10pxOn" onClick="location.href=\''+ eval("xmasMenuArray_"+happySection)[i][1] +'\'" height="26"><img src="../images/shopping/xmas/point_snow_f2.gif" width="12" height="12" hspace="6" align="absmiddle" name="snow'+ i +'"><strong>'+ eval("xmasMenuArray_"+happySection)[i][0] +'</strong></td>');
				document.write('</tr>');
			} else {
				document.write('<tr>');
				document.write('	<td class="xmasNav10px" onClick="location.href=\''+ eval("xmasMenuArray_"+happySection)[i][1] +'\'" onMouseOver="xmasMenuOn(' + i + ')" onMouseOut="xmasMenuOff(' + i + ')" id="xmasGift'+ i +'" height="26"><img src="../images/shopping/xmas/point_snow.gif" width="12" height="12" hspace="6" align="absmiddle" name="snow'+ i +'"><strong>'+ eval("xmasMenuArray_"+happySection)[i][0] +'</strong></td>');
				document.write('</tr>');
			}
		}
		document.write('</table>');
}

function xmasMenuOn(i) {
	MM_findObj('xmasGift'+i).className =  'xmasNav10pxOn';
	MM_findObj('snow'+i).src = "../images/shopping/xmas/point_snow_f2.gif";
}

function xmasMenuOff(i) {
	MM_findObj('xmasGift'+i).className =  'xmasNav10pxOff';
	MM_findObj('snow'+i).src = "../images/shopping/xmas/point_snow.gif";
		
}

function popupFlash(file, w, h, name, vars) {
 var popUpPage2 = window.open('', ''+name+'', 'width='+(Number(w))+',height='+h+',left=0,top=0,screenX=0,screenY=0,scrollbars=0,resizable=0');
 popUpPage2.document.open();
 popUpPage2.document.write('<html>');
 popUpPage2.document.write('<head><title>The Hong Kong Jockey Club</title></head>');
 popUpPage2.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
 popUpPage2.document.write('	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'">');
 popUpPage2.document.write('	<param name="allowScriptAccess" value="always">');
 popUpPage2.document.write('	<param name="movie" value="'+file+'">');
 popUpPage2.document.write('	<param name="quality" value="high">');
 popUpPage2.document.write('	<param name="menu" value="false">');
 popUpPage2.document.write('	<param name="wmode" value="transparent">');
	
	if (vars != null) {
 		popUpPage2.document.write('	<param name="flashVars" value="'+vars+'">');
 		popUpPage2.document.write('	<embed src="'+file+'" allowScriptAccess="always" flashVars="'+vars+'" quality="high" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'"></embed>');
	} else {
 		popUpPage2.document.write('	<embed src="'+file+'" allowScriptAccess="always" quality="high" scale="noscale" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" id="'+name+'" name="'+name+'"></embed>');
	}
	
 	popUpPage2.document.write('	</object>');
 popUpPage2.document.write('</body>');
 popUpPage2.document.write('</html>');
 popUpPage2.document.close();
 popUpPage2.focus();
}


function openerLink(link) { 
	if (!(window.opener.closed)) {
		window.opener.location.href = link;
		void(0);
	} else {
		parentWindow = window.open(link, "parentWindow");
		parentWindow.focus();
	}
}

function popupHtml(file, w, h, name, link) {
 var popUpPage2 = window.open('', ''+name+'', 'width='+w+',height='+h+',left=0,top=0,screenX=0,screenY=0,scrollbars=0,resizable=0');
 popUpPage2.document.open();
 popUpPage2.document.write('<html>');
 popUpPage2.document.write('<head><title>The Hong Kong Jockey Club</title><script language="JavaScript" src="include/common.js"></script></head>');
 popUpPage2.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
 popUpPage2.document.write(' <a href="../'+path+link+'" target="_blank"><img src="'+path+file+'" width="'+w+'" height="'+h+'" border="0"></a>');
 popUpPage2.document.write('</body>');
 popUpPage2.document.write('</html>');
 popUpPage2.document.close();
 popUpPage2.focus();
}

function popupHtml2(file, w, h, name, link) {
 var popUpPage2 = window.open('', ''+name+'', 'width='+w+',height='+h+',left=0,top=0,screenX=0,screenY=0,scrollbars=0,resizable=0');
 popUpPage2.document.open();
 popUpPage2.document.write('<html>');
 popUpPage2.document.write('<head><title>The Hong Kong Jockey Club</title><script language="JavaScript" src="include/common.js"></script></head>');
 popUpPage2.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
 popUpPage2.document.write('<a href="'+link+'" target="_blank"> <img src="'+path+file+'" width="'+w+'" height="'+h+'" border="0" onclick="window.close();"></a>');
 popUpPage2.document.write('</body>');
 popUpPage2.document.write('</html>');
 popUpPage2.document.close();
 popUpPage2.focus();
}

function popupHtml3(file, w, h, name) {
 var popUpPage2 = window.open('', ''+name+'', 'width='+w+',height='+h+',left=0,top=0,screenX=0,screenY=0,scrollbars=0,resizable=0');
 popUpPage2.document.open();
 popUpPage2.document.write('<html>');
 popUpPage2.document.write('<head><title>The Hong Kong Jockey Club</title><script language="JavaScript" src="include/common.js"></script></head>');
 popUpPage2.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
 popUpPage2.document.write('<img src="'+path+file+'" width="'+w+'" height="'+h+'" border="0" onclick="window.close();">');
 popUpPage2.document.write('</body>');
 popUpPage2.document.write('</html>');
 popUpPage2.document.close();
 popUpPage2.focus();
}