﻿//=== Traditional Chin
function writeMenuBar_C(){

var str='';
str+='<table border="0" align="center" cellpadding="0" cellspacing="0" background="images\/menuButton_bg.jpg" id="menuBar">';
str+='          <tr height="21">';
str+='            <td width="1" bgcolor="#666666"><\/td>';
str+='            <td width="150"><a href="index.html">公司簡介<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m2\')" onmouseout="mclosetime()">服務提供<\/a>';
str+='              <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                <table width="190" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                  <tr>';
str+='                    <td><a href="c_service_gia.html">GIA 証書鑽石<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="c_service_product.html">鑽石首飾訂造<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="c_service_ring.html">結婚介子訂造<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="c_service_rental.html">珠寶首飾出租服務<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="c_service_repair.html">首飾維修服務<\/a><\/td>';
str+='                  <\/tr>';
str+='                <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="http://www.diamond.org.hk/discuz/" target="_blank">討論區<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m4\')" onmouseout="mclosetime()">鑽石知識<\/a>';
str+='              <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                  <table width="195" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                    <tr>';
str+='                      <td><a href="c_knowledge_4c.html">何謂鑽石的4C<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="c_knowledge_diameter.html">直徑Measurement<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="c_knowledge_polish.html">打磨及對稱度<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="c_knowledge_fluore.html">螢光反應Fluorescence<\/a><\/td>';
str+='                    <\/tr>';
str+='					<tr>';
str+='                      <td><a href="c_knowledge_origin.html">鑽石的產地永遠是一個迷<\/a><\/td>';
str+='                    <\/tr>';
str+='                  <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="c_contactus.html">聯絡我們<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='          <\/tr>';
str+='        <\/table>';

document.write(str);
}
//===============================================================
//===============================================================
//=== English
function writeMenuBar_E(){
var str='';
str+='<table border="0" align="center" cellpadding="0" cellspacing="0" background="images\/menuButton_bg.jpg" id="e_menuBar">';
str+='          <tr height="21">';
str+='            <td width="1" bgcolor="#666666"><\/td>';
str+='            <td width="150"><a href="e_index.html">About Us<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m2\')" onmouseout="mclosetime()">Services Provided<\/a>';
str+='              <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                <table width="270" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                  <tr>';
str+='                    <td><a href="e_service_gia.html">GIA Certificated Diamonds<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="e_service_product.html">Diamond Jewellery<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="e_service_ring.html">Wedding bands Tailor-made services<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="e_service_rental.html">Jewellery Rental \/ 9999 Gold Rental<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="e_service_repair.html">Jewellery Repair Service<\/a><\/td>';
str+='                  <\/tr>';
str+='                <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="e_forum.html">Forum<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m4\')" onmouseout="mclosetime()">Diamond Knowledge<\/a>';
str+='              <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                  <table width="195" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                    <tr>';
str+='                      <td><a href="e_knowledge_4c.html">4C of Diamonds<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="e_knowledge_diameter.html">Measurement (Diameter)<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="e_knowledge_polish.html">Polish and Symmetry<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="e_knowledge_fluore.html">Fluorescence<\/a><\/td>';
str+='                    <\/tr>';
str+='					<tr>';
str+='                      <td><a href="e_knowledge_origin.html">Origin of Diamond<\/a><\/td>';
str+='                    <\/tr>';
str+='                  <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="e_contactus.html">Contact Us<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='          <\/tr>';
str+='        <\/table>';
document.write(str);
}

//===============================================================
//===============================================================
//=== Simiplified Chin
function writeMenuBar_S(){

var str='';
str+='<table border="0" align="center" cellpadding="0" cellspacing="0" background="images\/menuButton_bg.jpg" id="menuBar">';
str+='          <tr height="21">';
str+='            <td width="1" bgcolor="#666666"><\/td>';
str+='            <td width="150"><a href="s_index.html">公司简介<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m2\')" onmouseout="mclosetime()">服务提供<\/a>';
str+='              <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                <table width="190" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                  <tr>';
str+='                    <td><a href="s_service_gia.html">GIA 证书钻石<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="s_service_product.html">钻石首饰订造<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="s_service_ring.html">结婚介子订造<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="s_service_rental.html">珠宝首饰出租服务<\/a><\/td>';
str+='                  <\/tr>';
str+='                  <tr>';
str+='                    <td><a href="s_service_repair.html">首饰维修服务<\/a><\/td>';
str+='                  <\/tr>';
str+='                <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="s_forum.html">讨论区<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="#" onmouseover="mopen(\'m4\')" onmouseout="mclosetime()">钻石知识<\/a>';
str+='              <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">';
str+='                  <table width="195" border="0" cellpadding="0" cellspacing="0" bgcolor="#3A382B">';
str+='                    <tr>';
str+='                      <td><a href="s_knowledge_4c.html">何谓钻石的4C<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="s_knowledge_diameter.html">直径Measurement<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="s_knowledge_polish.html">打磨及对称度<\/a><\/td>';
str+='                    <\/tr>';
str+='                    <tr>';
str+='                      <td><a href="s_knowledge_fluore.html">荧光反应Fluorescence<\/a><\/td>';
str+='                    <\/tr>';
str+='					<tr>';
str+='                      <td><a href="s_knowledge_origin.html">钻石的产地永远是一个迷<\/a><\/td>';
str+='                    <\/tr>';
str+='                  <\/table>';
str+='            <\/div><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='            <td width="150"><a href="s_contactus.html">联络我们<\/a><\/td>';
str+='            <td width="1" bgcolor="#666666">';
str+='          <\/tr>';
str+='        <\/table>';


document.write(str);
}


//===============================================================
//===============================================================



//===============================================================
//===============================================================
var timeout=500;
var closetimer=0;
var ddmenuitem=0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 