var fix = 0; var delay = 200; var modd = 0;
var bar = new menuBar();
bar.addMenu('About ECBC');
bar.addItem('amessage.htm','Message from the Minister');
bar.addItem('aintro.htm','Introduction');
bar.addItem('misvis.htm','Mission & Vision');
bar.addItem('objectiv.htm','Objectives');
bar.addItem('board.htm','Board Members');
bar.addItem('golden.htm','Golden Members');
bar.addItem('committee.htm','Committees');

bar.addMenu('Services & Activities');
bar.addItem('busmat.htm','Business Matchmaking');
bar.addItem('database.htm','Members Database');
bar.addItem('confer.htm','Conferences and Events');
bar.addItem('busdel.htm','Business Delegations');
bar.addItem('studies.htm','Studies');
bar.addItem('committ.htm','Translation & Web Surfing');

bar.addMenu('Export Clubs');
bar.addItem('food.htm','Food Export');
bar.addItem('citrus.htm','Citrus Export');
bar.addItem('marble.htm','Marble Export');
bar.addItem('cotton.htm','Cotton & Flax Export');
bar.addItem('leather.htm','Leather Export');

bar.addMenu('Membership');
bar.addItem('members.htm','Types of Membership');
bar.addItem('how.htm','How to Join');

bar.addMenu('Egypt Guide');
bar.addItem('generalinfo.htm','General Information');
bar.addItem('governor.htm','Governorates');
bar.addItem('geograph.htm','Geography');
bar.addItem('climate.htm','Climate');
bar.addItem('populati.htm','Population');
bar.addItem('labor.htm','Labor');
bar.addItem('egvisa.htm','Getting a Visa');
bar.addItem('reside.htm','Residence in Egypt for Foreign Nationals ');
bar.addItem('egtour.htm','Tourism ');
bar.addItem('medical.htm','Medical Services');
bar.addItem('eguseful.htm','Useful links');

bar.addMenu('Business in Egypt');
bar.addItem('economy.htm','Economy Overview');
bar.addItem('ports.htm','Ports & Logistics');
bar.addItem('business.htm','Business Associations');
bar.addItem('commerce.htm','Chambers of Commerce');
bar.addItem('laws.htm','Laws');
bar.addItem('agree.htm','Agreements');
bar.addItem('faq.htm','FAQ');
bar.addItem('incentiv.htm','Incentive Based Zones');



bar.addMenu('China Guide');
bar.addItem('chinalinfo.htm','General Information');
bar.addItem('citichina.htm ','Major Cities');
bar.addItem('chingeog.htm','Geography');
bar.addItem('visa.htm','Getting a Visa');
bar.addItem('ecbctour.htm','Tourism ');
bar.addItem('domest.htm','Domestic Airlines');
bar.addItem('ecbcmedi.htm','Health Care');
bar.addItem('offices.htm','Useful Contacts');
bar.addItem('ecuseful.htm','Useful links');
bar.addItem('culture.htm','China Business Culture');


bar.addMenu('Business in China');
bar.addItem('chinaec.htm','Economy Overview');
bar.addItem('extrade.htm','External trade ');
bar.addItem('trade.htm','China Foreign trade ');
bar.addItem('invest.htm','Investment Zones ');
bar.addItem('banking.htm','Banking System ');
bar.addItem('taxation.htm','Taxation ');
bar.addItem('exporting.htm','Exporting to China ');
bar.addItem('customs.htm','Customs');
bar.addItem('africa.htm','China - Africa Relations');
bar.addItem('ecbclaws.htm','Laws');


// do not change anything below this line
var blc = '#afa280';var blh = '#c3baa0';var bla = '#c3baa0';var lc = '#000000';var lh = '#C6000A';var la = '#C6000A';
function menuBar() {this.jj = -1;this.kk = 0;this.mO = new Array();this.addMenu = addMenu;this.addItem = addItem;this.writeBar = writeBar;this.writeDrop = writeDrop;}function addMenu(main) {this.mO[++this.jj] = new Object();this.mO[this.jj].main = main;this.kk = 0;this.mO[this.jj].link = new Array();this.mO[this.jj].name = new Array();}function addItem(link,name) {this.mO[this.jj].link[this.kk] = link;this.mO[this.jj].name[this.kk++] = name;}function writeBar() {for (var i=1;i <= this.mO.length; i++){document.write('<span id="navMenu'+i+'" class="mH">'+this.mO[i-1].main+'<\/span>');}}function writeDrop() {for (var i=1;i <= this.mO.length; i++){document.write('<div id="dropMenu'+i+'" class="mD">\r\n');for (var h=0;h < this.mO[i-1].link.length; h++){document.write('<a class="mL" href="'+this.mO[i-1].link[h]+'">'+this.mO[i-1].name[h]+'<\/a>\r\n');}document.write('<\/div>\r\n');}}
if (fix) window.onscroll=sMenu;window.onload=iMenu;var onm = null;var ponm = null;var podm = null;var ndm = bar.mO.length;
function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}
function sMenu() {document.getElementById('mB').style.top = posY() + 'px'; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i;odm = document.getElementById(menuName); if (onm) {var yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight;odm.style.top = yPos + 'px';}}}
function iMenu() {if (document.getElementById) {document.onclick = mHide; for (i=1; i<=ndm; i++) {menuName = 'dropMenu' + i; navName = 'navMenu' + i; odm = document.getElementById(menuName); onm = document.getElementById(navName); odm.style.visibility = 'hidden'; onm.onmouseover =  mHov; onm.onmouseout = mOut;} onm = null;} return;}
function  mHov(e) {if (modd) clearTimeout(modd);document.onclick = null; honm = document.getElementById(this.id); if (honm != onm) {honm.style.color = lh; honm.style.backgroundColor = blh;} menuName = 'drop' + this.id.substring(3,this.id.length); odm = document.getElementById(menuName); if (podm == odm) {mHide(); return;} if (podm != null) mHide(); onm = document.getElementById(this.id); if ((ponm != onm ) || (podm == null)) {onm.style.color = la; onm.style.backgroundColor = bla;} if (odm) {xPos = onm.offsetParent.offsetLeft + onm.offsetLeft; yPos = onm.offsetParent.offsetTop + onm.offsetParent.offsetHeight; odm.style.left = xPos + 'px'; odm.style.top = yPos + 'px'; odm.style.visibility = 'visible'; odm.onmouseover = omov; odm.onmouseout = omot; podm = odm; ponm = onm;}}
function omov() {if (modd) clearTimeout(modd);}
function omot() {modd = setTimeout('mHide()',delay);}
function mOut(e) {modd = setTimeout('mHide()',delay);document.onclick = mHide;oonm = document.getElementById(this.id); if (oonm != onm) {oonm.style.color = lc; oonm.style.backgroundColor = blc;}}
function mHide() {document.onclick = null; if (podm) {podm.style.visibility = 'hidden'; podm = null; ponm.style.color = lc; ponm.style.backgroundColor = blc;} onm = null;}
if (fix) {var ag = navigator.userAgent.toLowerCase();var isG = (ag.indexOf('gecko') != -1);var isR=0;if (isG) {t = ag.split("rv:"); isR = parseFloat(t[1]);}if (isR && isR<1) setInterval('sMenu()',50);}