var link_head;
   link_head='http://info.hktdc.com/lahk/';
  var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
  
  
  //submenu[0]=""
submenu[0]="<font size='1.5' face='Verdana'><b><table  height='20' border='0' cellpadding='0' cellspacing='0' align='left' style='color:#757879;text-align:center; '><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='140'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "awards_cate/awards_cate.htm'>Award Categories </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='150'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "ass_criteria/ass_criteria.htm'>Assessment Criteria</a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='130'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "fact_sheet/fact_sheet.htm'>Fact Sheet </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='130'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "photo_ga/photo_ga_2008.htm'>Photo Gallery </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='130'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "timetable/timetable.htm'>Timetable </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='130'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "contact/contact.htm'>Contact us </a> </td></table></b></font>"

submenu[1]="<font size='1.5' face='Verdana'><b><table  height='20' border='0' cellpadding='0' cellspacing='0' align='left' style='color:#757879;text-align:center; '><td width='179'>&nbsp;</td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='110'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "nom_form/nom_form.htm'>Nomination Form </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='120'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "pm_leaflet/pm_leaflet.htm'>Promotion Leaflet</a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='220'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "supplementary/supplementary.htm'>Supplementary Information Sheet </a> </td></table></b></font>"

submenu[2]="<font size='1.5' face='Verdana'><b><table  height='20' border='0' cellpadding='0' cellspacing='0' align='right' style='color:#757879;text-align:center; '><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='150'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "list_award/list_award_2008.htm'>List of awardees 2008 </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='150'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "list_award/list_award_2007.htm'>List of awardees 2007</a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='150'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "list_award/list_award_2006.htm'>List of awardees 2006 </a> </td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='150'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "list_award/list_award_2005.htm'>List of awardees 2005 </a> </td></table></b></font>"

submenu[3]="<font size='1.5' face='Verdana'><b><table  height='20' border='0' cellpadding='0' cellspacing='0' align='left' style='color:#757879;text-align:center; '><td width='442' > &nbsp;</td><td align='center' id='t1' name-'t1' onmouseover='resetStyle(this);' onmouseout='menuout(this);' width='140'><a style='color:#757879;' onmouseover='ac(this)' onmouseout='rc(this)' style='text-decoration:none; '  href='" + link_head + "press/press.htm'>Press Contact </a> </td></table></b></font>"

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""


function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]

if (document.getElementById||document.all)

menuobj.innerHTML=thecontent

else if (document.layers){

menuobj.document.write(thecontent)
menuobj.document.close()

}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
function resetStyle(elem) {
	elem.style.background = '#F26522';
	elem.style.color = 'white';
}
function menuout(elem) {
	elem.style.background = 'white';
}

function ac(elem) {
	elem.style.color = 'white';
}
function rc(elem) {
	elem.style.color = '#757879';
}