
var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

var path='';
for( var i=0; i<document.location.pathname.split('/').length-3; i++)
	path+='../';

//Home
document.write("<table id='menu' cellpadding=\"0\" cellspacing=\"0\"><tr><td><div id=\"home\" onMouseOver=\"document.home_img.src='" + path +  "images/en/menu_home_o.jpg';over(this);\" onMouseOut=\"document.home_img.src='" + path +  "images/en/menu_home.jpg' \" ><a tabindex='12' href=\"" + path +  "index.html\"><img class='vert_align' name=\"home_img\" src=\"" + path +  "images/en/menu_home.jpg\" border=\"0\" alt=\"Home\"></a></div></td></tr>");

//What's new
document.write("<tr><td><div id=\"news\" onMouseOver=\"document.news_img.src='" + path +  "images/en/menu_whats_new_o.jpg';over(this);\" onMouseOut=\"document.news_img.src='" + path +  "images/en/menu_whats_new.jpg' \" ><a tabindex='13' href=\"" + path +  "en/whats_new/index.html\"><img class='vert_align' name=\"news_img\" src=\"" + path +  "images/en/menu_whats_new.jpg\" border=\"0\" alt=\"What&#8216;s New\"></a></div></td></tr>");

//About us
document.write("<tr><td><div id=\"about_us\" onMouseOver=\"document.about_us_img.src='" + path +  "images/en/menu_about_us_o.jpg';over(this);\" onMouseOut=\"document.about_us_img.src='" + path +  "images/en/menu_about_us.jpg';mclosetime(); \" ><a tabindex='14' onfocus='onFocusMenu(this);' href=\"" + path +  "en/About_Us/index.html\"><img class='vert_align' name=\"about_us_img\" src=\"" + path +  "images/en/menu_about_us.jpg\" border=\"0\" alt=\"About Us\"></a></div></td></tr>");

//Policy Responsibilities
document.write("<tr><td><div id=\"policy\" onMouseOver=\"document.policy_img.src='" + path +  "images/en/menu_policy_responsibilities_o.jpg';over(this);\" onMouseOut=\"document.policy_img.src='" + path +  "images/en/menu_policy_responsibilities.jpg';mclosetime(); \" ><a tabindex='19' onfocus='onFocusMenu(this);' href=\"" + path +  "en/Policy_Responsibilities/index.html\"><img class='vert_align' name=\"policy_img\" src=\"" + path +  "images/en/menu_policy_responsibilities.jpg\" border=\"0\" alt=\"Policy Responsibilities\"></a></div></td></tr>");

//Publication and Press Releases
document.write("<tr><td><div id=\"public\" onMouseOver=\"document.public_img.src='" + path +  "images/en/menu_publication_press_release_o.jpg';over(this);\" onMouseOut=\"document.public_img.src='" + path +  "images/en/menu_publication_press_release.jpg';mclosetime(); \" ><a tabindex='31' onfocus='onFocusMenu(this);' href=\"" + path +  "en/Pub_Press/index.html\"><img class='vert_align' name=\"public_img\" src=\"" + path +  "images/en/menu_publication_press_release.jpg\" border=\"0\" alt=\"Publications and Press Releases\"></a></div></td></tr>");

//Legistlative Council Business
document.write("<tr><td><div id=\"legistlative\" onMouseOver=\"document.legistlative_img.src='" + path +  "images/en/menu_legislative_council_business_o.jpg';over(this);\" onMouseOut=\"document.legistlative_img.src='" + path +  "images/en/menu_legislative_council_business.jpg';mclosetime(); \" ><a tabindex='36' onfocus='onFocusMenu(this);' href=\"" + path +  "en/Legco_Business/index.html\"><img class='vert_align' name=\"legistlative_img\" src=\"" + path +  "images/en/menu_legislative_council_business.jpg\" border=\"0\" alt=\"Legislative Council Business\"></a></div></td></tr>");

//Councils, Broads and Committie
document.write("<tr><td><div id=\"council\" onMouseOver=\"document.council_img.src='" + path +  "images/en/menu_councils_o.jpg';over(this);\" onMouseOut=\"document.council_img.src='" + path +  "images/en/menu_councils.jpg';mclosetime(); \" ><a tabindex='47' href=\"" + path +  "en/Councils_Boards_Committees/index.html\"><img class='vert_align' name=\"council_img\" src=\"" + path +  "images/en/menu_councils.jpg\" border=\"0\" alt=\"Councils, Boards and Committees\"></a></div></td></tr>");

//Access to Information
document.write("<tr><td><div id=\"information\" onMouseOver=\"document.information_img.src='" + path +  "images/en/menu_access_to_information_o.jpg';over(this);\" onMouseOut=\"document.information_img.src='" + path +  "images/en/menu_access_to_information.jpg';mclosetime(); \" ><a tabindex='48' onfocus='onFocusMenu(this);' href=\"" + path +  "en/Access_To_Information/index.html\"><img class='vert_align' name=\"information_img\" src=\"" + path +  "images/en/menu_access_to_information.jpg\" border=\"0\" alt=\"Access to Information\"></a></div></td></tr>");

//Job Opportunities
document.write("<tr><td><div id=\"job\" onMouseOver=\"document.job_img.src='" + path +  "images/en/menu_job_opportunities_o.jpg';over(this);\" onMouseOut=\"document.job_img.src='" + path +  "images/en/menu_job_opportunities.jpg';mclosetime(); \" ><a tabindex='51' href=\"" + path +  "en/Job_Opportunities/index.html\"><img class='vert_align' name=\"job_img\" src=\"" + path +  "images/en/menu_job_opportunities.jpg\" border=\"0\" alt=\"Job Opportunities\"></a></div></td></tr>");

//Tender Notice
document.write("<tr><td><div id=\"tender\" onMouseOver=\"document.tender_img.src='" + path +  "images/en/menu_tender_notices_o.jpg';over(this);\" onMouseOut=\"document.tender_img.src='" + path +  "images/en/menu_tender_notices.jpg';mclosetime(); \" ><a tabindex='52' href=\"" + path +  "en/Tender_Notices/index.html\"><img class='vert_align' name=\"tender_img\" src=\"" + path +  "images/en/menu_tender_notices.jpg\" border=\"0\" alt=\"Tender Notices\"></a></div></td></tr>");

//Links
document.write("<tr><td><div id=\"link\" onMouseOver=\"document.link_img.src='" + path +  "images/en/menu_links_o.jpg';over(this);\" onMouseOut=\"document.link_img.src='" + path +  "images/en/menu_links.jpg';mclosetime(); \" ><a tabindex='53' href=\"" + path +  "en/Links/index.html\"><img class='vert_align' name=\"link_img\" src=\"" + path +  "images/en/menu_links.jpg\" border=\"0\" alt=\"Links\"></a></div></td></tr>");

//Contact Us
document.write("<tr><td><div id=\"contact\" onMouseOver=\"document.contact_img.src='" + path +  "images/en/menu_contact_us_o.jpg';over(this);\" onMouseOut=\"document.contact_img.src='" + path +  "images/en/menu_contact_us.jpg';mclosetime(); \" ><a tabindex='54' href=\"" + path +  "en/Contact_Us/index.html\"><img class='vert_align' name=\"contact_img\" src=\"" + path +  "images/en/menu_contact_us.jpg\" border=\"0\" alt=\"Contact Us\"></a></div></td></tr></table>");

//sub menu id should be formant in (menu id) + '_sub'

//About us sub menu
document.write("<div id=\"about_us_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='15' href=\"" + path +  "en/About_Us/biography.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Biography of Permanent Secretary for Commerce and Economic Development (Commerce, Industry and Tourism)</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='16' href=\"" + path +  "en/About_Us/o_chart.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Organisation Chart</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='17'  href=\"http://www.cedb.gov.hk/about/mission.htm\" style=\"text-decoration : sans-serif  ;color: #000000\" target=\"_blank\">Mission</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='18'  href=\"http://www.cedb.gov.hk/about/policy.htm\" style=\"text-decoration : sans-serif  ;color: #000000\" target=\"_blank\" onblur='onBlurMenu(this);'>Policy Initiatives</a></td></tr></table></div>");

//Policy Responsibilities sub menu
document.write("<div id=\"policy_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='20' href=\"" + path +  "en/Policy_Responsibilities/external_commercial_relations.html\" style=\"text-decoration : sans-serif  ;color: #000000\">External Commercial Relations</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='21' href=\"" + path +  "en/Policy_Responsibilities/industry_business_support.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Industry and Business Support</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='22' href=\"" + path +  "en/Policy_Responsibilities/intellectual_property_protection.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Intellectual Property Protection</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='23' href=\"" + path +  "en/Policy_Responsibilities/inward_investment_promotion.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Inward Investment Promotion</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='24' href=\"" + path +  "en/Policy_Responsibilities/tourism.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Tourism</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='25' href=\"" + path +  "en/Policy_Responsibilities/consumer_protection.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Consumer Protection</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='26' href=\"" + path +  "en/Policy_Responsibilities/promotion_of_competition.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Promotion of Competition</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='27' href=\"" + path +  "en/Policy_Responsibilities/meteorological_services.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Meteorological Services</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='28' href=\"" + path +  "en/Policy_Responsibilities/postal_services.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Postal Services</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='29' href=\"" + path +  "en/Policy_Responsibilities/gets.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Government Electronic Trading Services (GETS)</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='30'  href=\"http://www.cedb.gov.hk/citb/psdas/\" style=\"text-decoration : sans-serif  ;color: #000000\" target=\"_blank\" onblur='onBlurMenu(this);'>Professional Services Development Assistance Scheme (External)</a></td></tr></table></div>");

//Publication and Press Releases sub menu
document.write("<div id=\"public_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='32' href=\"" + path +  "en/Pub_Press/Press_Releases/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Press Releases</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='33' href=\"" + path +  "en/Speeches/index_main.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Speeches</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='34' href=\"" + path +  "en/Pub_Press/Consultation_Documents/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Consultation Documents</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='35' href=\"" + path +  "en/Pub_Press/Other_Publications/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\" onblur='onBlurMenu(this);'>Other Publications</a></td></tr></table></div>");

//Legistlative Council Business sub menu
document.write("<div id=\"legistlative_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><div id=\"CommerceAndIndustry\" onmouseover=\"changeColor('9bcfb4', this);over(this);\" onmouseout=\"changeColor('d2eadd', this); \" ><a tabindex='37' onfocus='onFocusMenu(this);' href=\"" + path +  "en/Legco_Business/index_main.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Commerce and Industry</a></div></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);close3(this) ;\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='45' href=\"http://www.tourism.gov.hk/cgi-bin/tourism/search.pl?lang=eng&cat=3\" style=\"text-decoration : sans-serif; color: #000000\"  target=\"_blank\">Tourism </a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);close3(this) ;\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='46' href=\"" + path +  "en/Legco_Business/FC_meetings/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\" onblur='onBlurMenu(this);'>Finance Committee Meetings</a></td></tr></table></div>");

// level3 menu - Commerce and Industry
document.write("<div id=\"CommerceAndIndustry_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='38' href=\"" + path +  "en/Legco_Business/briefs.html\" style=\"text-decoration : sans-serif  ;color: #000000\">LegCo Briefs</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='39' href=\"" + path +  "en/Legco_Business/CI_panel/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Panel on Commerce and Industry</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='40' href=\"" + path +  "en/Legco_Business/ED_panel/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Panel on Economic Development</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='41' href=\"" + path +  "en/Legco_Business/Legco_bills/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">LegCo Bills</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='42' href=\"" + path +  "en/Legco_Business/Motion_debates/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\">LegCo Motion Debates</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='43' href=\"" + path +  "en/Legco_Business/Replies_to_Legco_Questions/index2011.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Replies to LegCo Questions</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='44' href=\"" + path +  "en/Legco_Business/Others/index.html\" style=\"text-decoration : sans-serif  ;color: #000000\" onblur='onBlurMenu(this);'>Others</a></td></tr></table></div>");

//Access to Information sub menu
document.write("<div id=\"information_sub\" style=\"visibility:hidden;position:absolute;\" onMouseOver=\"mcancelclosetime()\"  onmouseout=\"mclosetime()\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"3\" bgcolor=\"#ffffff\" class=\"submenu_box\">");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='49' href=\"" + path +  "en/Access_To_Information/code.html\" style=\"text-decoration : sans-serif  ;color: #000000\">Access to Information</a></td></tr>");
document.write("<tr><td bgcolor=\"#d2eadd\" width=\"200px\" onmouseover=\"changeColor('9bcfb4', this);\" onmouseout=\"changeColor('d2eadd', this);\"><a tabindex='50' href=\"" + path +  "en/Access_To_Information/privacy.html\" style=\"text-decoration : sans-serif  ;color: #000000\" onblur='onBlurMenu(this);'>Privacy Policy Statement</a></td></tr></table></div>");

