var blueline = new Image(); var spacerImg = new Image(); var arrowImg = new Image(); blueline.src = "/images/12/blueline.jpg"; spacerImg.src = "/images/12/spacer.gif"; arrowImg.src= "/images/12/arrow.gif"; function showmenu(tblObj, tabKey) { var mainObj = document.getElementById(tblObj); var menuItemObj = document.getElementById('menuitemid'); var menulist = new Array(); menulist['candidate'] = new Array(); menulist['client'] = new Array(); menulist['aboutus'] = new Array(); menulist['candidate']['Home'] = new Array(); menulist['candidate']['Home']['Home'] = "/index.php?inc=fncms_display&template_id=174"; menulist['candidate']['Areas of expertise'] = new Array(); menulist['candidate']['Areas of expertise']['Areas of expertise'] = "/index.php?inc=fncms_display&template_id=148"; menulist['candidate']['Areas of expertise']['Investment Banking'] = "/index.php?inc=fncms_display&template_id=148&page_id=321"; menulist['candidate']['Areas of expertise']['Asset Management'] = "/index.php?inc=fncms_display&template_id=148&page_id=322"; menulist['candidate']['Areas of expertise']['Office Support'] = "/index.php?inc=fncms_display&template_id=148&page_id=372"; menulist['candidate']['Areas of expertise']['Human Resources'] = "/index.php?inc=fncms_display&template_id=148&page_id=579"; //menulist['candidate']['Areas of expertise']['Vendor Technologies'] = "/index.php?inc=fncms_display&template_id=148&page_id=580"; menulist['candidate']['Your job search'] = new Array(); menulist['candidate']['Your job search']['Your job search'] = "/index.php?inc=fncms_display&template_id=149"; menulist['candidate']['Your job search']['Writing your CV'] = "/index.php?inc=fncms_display&template_id=149&page_id=341"; menulist['candidate']['Your job search']['Understanding your value in the marketplace'] = "/index.php?inc=fncms_display&template_id=149&page_id=340"; menulist['candidate']['Your job search']['The interview'] = "/index.php?inc=fncms_display&template_id=149&page_id=344"; menulist['candidate']['Your job search']['Resigning'] = "/index.php?inc=fncms_display&template_id=149&page_id=345"; menulist['candidate']['Recommend a friend'] = new Array(); menulist['candidate']['Recommend a friend']['Recommend a friend'] = "/index.php?inc=fncms_display&template_id=150"; menulist['candidate']['Just arrived in the UK?'] = new Array(); menulist['candidate']['Just arrived in the UK?']['Just arrived in the UK?'] = "/index.php?inc=fncms_display&template_id=151"; menulist['candidate']['Just arrived in the UK?']['Visa Advice'] = "/index.php?inc=fncms_display&template_id=151&page_id=346"; //menulist['candidate']['Interested in working abroad?'] = new Array(); //menulist['candidate']['Interested in working abroad?']['Interested in working abroad?'] = "/index.php?inc=fncms_display&template_id=152"; menulist['candidate']['Candidate registration'] = new Array(); menulist['candidate']['Candidate registration']['Candidate registration'] = "/index.php?inc=candidate_add&template_id=Candidate registration"; menulist['candidate']['Advanced job search'] = new Array(); menulist['candidate']['Advanced job search']['Advanced job search'] = "/index.php?inc=vacancy_search_show&template_id=Advanced job search"; menulist['candidate']['View all vacancies'] = new Array(); menulist['candidate']['View all vacancies']['View all vacancies'] = "/vacancy/?template_id=View all vacancies"; menulist['candidate']['Download a timesheet'] = new Array(); menulist['candidate']['Download a timesheet']['Download a timesheet'] = "/index.php?inc=fncms_display&template_id=178"; menulist['candidate']['Download an application form'] = new Array(); menulist['candidate']['Download an application form']['Download an application form'] = "/index.php?inc=fncms_display&template_id=179"; menulist['candidate']['Download company brochure'] = new Array(); menulist['candidate']['Download company brochure']['Download company brochure'] = "/index.php?inc=fncms_display&template_id=257"; menulist['client']['Home'] = new Array(); menulist['client']['Home']['Home'] = "/index.php?inc=fncms_display&template_id=175"; menulist['client']['Areas of expertise'] = new Array(); menulist['client']['Areas of expertise']['Areas of expertise'] = "/index.php?inc=fncms_display&template_id=154"; menulist['client']['Areas of expertise']['Investment Banking'] = "/index.php?inc=fncms_display&template_id=154&page_id=348"; menulist['client']['Areas of expertise']['Asset Management'] = "/index.php?inc=fncms_display&template_id=154&page_id=349"; menulist['client']['Areas of expertise']['Office Support'] = "/index.php?inc=fncms_display&template_id=154&page_id=347"; menulist['client']['Areas of expertise']['Human Resources'] = "/index.php?inc=fncms_display&template_id=154&page_id=579"; //menulist['client']['Areas of expertise']['Vendor Technologies'] = "/index.php?inc=fncms_display&template_id=154&page_id=580"; menulist['client']['Why LMA Recruitment?'] = new Array(); menulist['client']['Why LMA Recruitment?']['Why LMA Recruitment?'] = "/index.php?inc=fncms_display&template_id=155"; menulist['client']['Sourcing candidates'] = new Array(); menulist['client']['Sourcing candidates']['Sourcing candidates'] = "/index.php?inc=fncms_display&template_id=156"; menulist['client']['Candidate screening'] = new Array(); menulist['client']['Candidate screening']['Candidate screening'] = "/index.php?inc=fncms_display&template_id=157"; menulist['client']['Register a vacancy'] = new Array(); menulist['client']['Register a vacancy']['Register a vacancy'] = "/index.php?inc=lma_vacancy&template_id=Register a vacancy"; menulist['client']['Value Added Services'] = new Array(); menulist['client']['Value Added Services']['Value Added Services'] = "/index.php?inc=fncms_display&template_id=159"; menulist['client']['Download company brochure'] = new Array(); menulist['client']['Download company brochure']['Download company brochure'] = "/index.php?inc=fncms_display&template_id=257"; menulist['aboutus']['Home'] = new Array(); menulist['aboutus']['Home']['Home'] = "/index.php?inc=fncms_display&template_id=176"; menulist['aboutus']['Our history'] = new Array(); menulist['aboutus']['Our history']['Our history'] = "/index.php?inc=fncms_display&template_id=161"; menulist['aboutus']['Our team'] = new Array(); menulist['aboutus']['Our team']['Our team'] = "/index.php?inc=fncms_display&template_id=172"; menulist['aboutus']['Our team']['Management'] = "/index.php?inc=fncms_display&template_id=172&page_id=363"; menulist['aboutus']['Our team']['Banking/Asset Management'] = "/index.php?inc=fncms_display&template_id=172&page_id=364"; menulist['aboutus']['Our team']['Office Support'] = "/index.php?inc=fncms_display&template_id=172&page_id=365"; menulist['aboutus']['Our team']['Human Resources'] = "/index.php?inc=fncms_display&template_id=172&page_id=577"; //menulist['aboutus']['Our team']['Vendor Technologies'] = "/index.php?inc=fncms_display&template_id=172&page_id=578"; menulist['aboutus']['Areas of expertise'] = new Array(); menulist['aboutus']['Areas of expertise']['Areas of expertise'] = "/index.php?inc=fncms_display&template_id=163"; menulist['aboutus']['Areas of expertise']['Investment Banking'] = "/index.php?inc=fncms_display&template_id=163&page_id=351"; menulist['aboutus']['Areas of expertise']['Asset Management'] = "/index.php?inc=fncms_display&template_id=163&page_id=352"; menulist['aboutus']['Areas of expertise']['Office Support'] = "/index.php?inc=fncms_display&template_id=163&page_id=371"; menulist['aboutus']['Areas of expertise']['Human Resources'] = "/index.php?inc=fncms_display&template_id=163&page_id=579"; //menulist['aboutus']['Areas of expertise']['Vendor Technologies'] = "/index.php?inc=fncms_display&template_id=163&page_id=580"; menulist['aboutus']['Our mission statement'] = new Array(); menulist['aboutus']['Our mission statement']['Our mission statement'] = "/index.php?inc=fncms_display&template_id=164"; menulist['aboutus']['Our values'] = new Array(); menulist['aboutus']['Our values']['Our values'] = "/index.php?inc=fncms_display&template_id=165"; menulist['aboutus']['Diversity and equal opportunities'] = new Array(); menulist['aboutus']['Diversity and equal opportunities']['Diversity and equal opportunities'] = "/index.php?inc=fncms_display&template_id=166"; menulist['aboutus']['Associated companies'] = new Array(); menulist['aboutus']['Associated companies']['Associated companies'] = "/index.php?inc=fncms_display&template_id=167"; menulist['aboutus']['Careers @ LMA Recruitment'] = new Array(); menulist['aboutus']['Careers @ LMA Recruitment']['Careers @ LMA Recruitment'] = "/index.php?inc=fncms_display&template_id=171"; menulist['aboutus']['Careers @ LMA Recruitment']['Our culture'] = "/index.php?inc=fncms_display&template_id=171&page_id=354"; menulist['aboutus']['Careers @ LMA Recruitment']['Rewards and Benefits'] = "/index.php?inc=fncms_display&template_id=171&page_id=355"; menulist['aboutus']['Careers @ LMA Recruitment']['Training and Development'] = "/index.php?inc=fncms_display&template_id=171&page_id=356"; menulist['aboutus']['Careers @ LMA Recruitment']['Current Vacancies'] = "/index.php?inc=fncms_display&template_id=171&page_id=357"; menulist['aboutus']['Memberships'] = new Array(); menulist['aboutus']['Memberships']['Memberships'] = "/index.php?inc=fncms_display&template_id=169"; menulist['aboutus']['Contact us'] = new Array(); menulist['aboutus']['Contact us']['Contact us'] = "/index.php?inc=fncms_display&template_id=170"; menulist['aboutus']['Download company brochure'] = new Array(); menulist['aboutus']['Download company brochure']['Download company brochure'] = "/index.php?inc=fncms_display&template_id=257"; if(!tabKey) { tabKey = "candidate"; } switch(tabKey) { case "candidate": while(mainObj.tBodies[0].rows.length) { mainObj.tBodies[0].deleteRow(0); } var newRow = mainObj.insertRow(mainObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/candidate_on.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=174'; showmenu('menuid', 'candidate'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/clients_off.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=175'; showmenu('menuid', 'client'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/aboutus_off.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=176'; showmenu('menuid', 'aboutus'); }; newCol.appendChild(col1Img); break; case "client": while(mainObj.tBodies[0].rows.length) { mainObj.tBodies[0].deleteRow(0); } var newRow = mainObj.insertRow(mainObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/candidate_off.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=174'; showmenu('menuid', 'candidate'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/clients_on.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=175'; showmenu('menuid', 'client'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/aboutus_off1.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=176'; showmenu('menuid', 'aboutus'); }; newCol.appendChild(col1Img); break; case "aboutus": while(mainObj.tBodies[0].rows.length) { mainObj.tBodies[0].deleteRow(0); } var newRow = mainObj.insertRow(mainObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/candidate_off2.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=174'; showmenu('menuid', 'candidate'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/clients_off2.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=175'; showmenu('menuid', 'client'); }; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); newCol.className = "mainmenu"; var col1Img = document.createElement('IMG'); col1Img.src = "/images/12/aboutus_on1.jpg"; col1Img.onclick = function(e) { location.href='/index.php?inc=fncms_display&template_id=176'; showmenu('menuid', 'aboutus'); }; newCol.appendChild(col1Img); break; } while(menuItemObj.tBodies[0].rows.length) { menuItemObj.tBodies[0].deleteRow(0); } var newRow = menuItemObj.insertRow(menuItemObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.height = "20px"; newCol.appendChild(col1Img); for(key in menulist[tabKey]) { for(skey in menulist[tabKey][key]) { if(skey == key || (key == 'Home' && tabKey == 'aboutus')) { var newRow = menuItemObj.insertRow(menuItemObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = blueline.src; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); var newRow = menuItemObj.insertRow(menuItemObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = arrowImg.src; newCol.appendChild(col1Img); var col1Link = document.createElement('a'); col1Link.setAttribute('className', 'menutext'); col1Link.setAttribute('class', 'menutext'); col1Link.setAttribute('href', menulist[tabKey][key][skey]); var imgWidth = (50 - skey.length) * 3; col1Link.innerHTML = skey + ''; newCol.appendChild(col1Link); newCol.className = "vacancytext"; //newCol.onclick = function(e) { // location.href= menulist[tabKey][key][skey]; // } if(key == 'Home' && tabKey == 'aboutus') { if(skey != key) { newCol.style.paddingLeft = "18px"; newCol.style.paddingRight = "3px"; newCol.style.paddingTop = "3px"; newCol.style.paddingBottom = "3px"; if(skey == '') { newCol.className = "menubgOver"; newCol.childNodes[1].setAttribute('className', 'menutexton'); newCol.childNodes[1].setAttribute('class', 'menutexton'); }else { newCol.onmouseover = function(e) { this.className='menubgOver'; this.childNodes[1].setAttribute('className', 'menutexton'); this.childNodes[1].setAttribute('class', 'menutexton'); }; newCol.onmouseout = function(e) { this.className='vacancytext'; this.childNodes[1].setAttribute('className', 'menutext'); this.childNodes[1].setAttribute('class', 'menutext'); }; } }else { newCol.style.padding = "3px"; newCol.className = "menubgOver"; newCol.childNodes[1].setAttribute('className', 'menutexton'); newCol.childNodes[1].setAttribute('class', 'menutexton'); } }else { newCol.style.padding = "3px"; newCol.onmouseover = function(e) { this.className='menubgOver'; this.childNodes[1].setAttribute('className', 'menutexton'); this.childNodes[1].setAttribute('class', 'menutexton'); }; newCol.onmouseout = function(e) { this.className='vacancytext'; this.childNodes[1].setAttribute('className', 'menutext'); this.childNodes[1].setAttribute('class', 'menutext'); }; } newCol.style.cursor = "pointer"; var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); } } } var newRow = menuItemObj.insertRow(menuItemObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = blueline.src; newCol.appendChild(col1Img); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.width = "20px"; col1Img.style.height = "1px"; newCol.appendChild(col1Img); var newRow = menuItemObj.insertRow(menuItemObj.tBodies[0].rows.length); var newCol = newRow.insertCell(newRow.cells.length); var col1Img = document.createElement('IMG'); col1Img.src = spacerImg.src; col1Img.style.height = "20px"; newCol.appendChild(col1Img); }