var mainMenu = new Array(); var subMenu = new Array(); mainMenu[0] = '1'; subMenu[0] = new Array(); mainMenu[1] = '2'; subMenu[1] = new Array(); subMenu[1][0] = 'Kabeltelevisie|37'; subMenu[1][1] = 'Technische info|9'; subMenu[1][2] = 'De kabelinstallatie|10'; subMenu[1][3] = 'Connectoren|11'; subMenu[1][4] = 'Coaxkabel|15'; subMenu[1][5] = 'Aansluitdoos Kabel|25'; subMenu[1][6] = 'Satellietontvangst|44'; subMenu[1][7] = 'De Schotel|45'; subMenu[1][8] = 'Satellietontvangers|46'; subMenu[1][9] = 'Canal-Digitaal|47'; subMenu[1][10] = 'Camping|48'; subMenu[1][11] = 'Caravan en Camper|49'; subMenu[1][12] = 'Gezamelijke ontvangst|50'; subMenu[1][13] = 'Paardenkoersen|52'; subMenu[1][14] = 'Sat zenders zoeken|53'; subMenu[1][15] = 'Kabel zenders zoeken|54'; mainMenu[2] = '3'; subMenu[2] = new Array(); subMenu[2][0] = 'Ontvangst installaties|13'; subMenu[2][1] = 'Recreatie parken|14'; subMenu[2][2] = 'Hotels|58'; subMenu[2][3] = 'DVB-S|55'; subMenu[2][4] = 'DVB-T|56'; subMenu[2][5] = 'DVB-IP|27'; subMenu[2][6] = 'V.O.D.|57'; subMenu[2][7] = 'Internet Docsis|60'; subMenu[2][8] = 'H.F.C.|59'; mainMenu[3] = '4'; subMenu[3] = new Array(); subMenu[3][0] = 'OTDR|21'; subMenu[3][1] = 'SC-APC|22'; subMenu[3][2] = 'DWDM|23'; subMenu[3][3] = 'Beheer en administratie|28'; mainMenu[4] = '29'; subMenu[4] = new Array(); subMenu[4][0] = 'ReturnPath Generator|34'; subMenu[4][1] = 'SDA5000 en Dsam|31'; subMenu[4][2] = 'Optische app.|32'; subMenu[4][3] = 'Kabel pulsers TDR|33'; subMenu[4][4] = 'Kabel detectie|39'; mainMenu[5] = '6'; subMenu[5] = new Array(); subMenu[5][0] = 'A.A.S. Detac B.V.|16'; subMenu[5][1] = 'A.A.S Fiber B.V.|19'; subMenu[5][2] = 'A.A.S. Telecom Groep B.V.|18'; subMenu[5][3] = 'Erkend Leerbedrijf BBL|35'; subMenu[5][4] = 'Solliciteren|36'; subMenu[5][5] = 'Contact|20'; var isPageLoaded = false; window.onload = function() { initPopMenu(); isPageLoaded = true; } function initPopMenu() { divContainer = ""; for (var menuItem in mainMenu) { myObject = document.getElementById("menuMain" + mainMenu[menuItem]); currHeight = myObject.offsetHeight; currWidth = myObject.offsetWidth; if (myObject.offsetParent) { curLeft = myObject.offsetLeft; curTop = myObject.offsetTop; while (myObject = myObject.offsetParent) { curLeft += myObject.offsetLeft; curTop += myObject.offsetTop; } } newObject = ""; newObject = "
\n"; if (subMenu[menuItem].length > 0) { newObject = newObject + "\n"; for (l = 0; l < subMenu[menuItem].length; l++) { thisStr = subMenu[menuItem][l]; intPos = strrpos(thisStr,"|"); strName = thisStr.substr(0,intPos); strURL = thisStr.substr(intPos + 1,thisStr.length - intPos); newObject = newObject + "\n"; } newObject = newObject + "
" + strName + "
\n"; } newObject = newObject + "
\n"; divContainer = divContainer + newObject; } document.body.innerHTML = document.body.innerHTML + divContainer; } function overItem(objItem) { objItem.className = 'TD-sub-01-over'; } function outItem(objItem) { objItem.className = 'TD-sub-01'; } var currMenu = ""; var timeOutID = ""; function openMenu(menuID) { if (isPageLoaded == true) { if (timeOutID != "") { clearTimeout(timeOutID); timeOutID = ""; } if (currMenu != "") { displayClose(); } menuObject = document.getElementById("divSubMenu" + menuID); currMenu = menuID; menuObject.style.display = ""; } } function closeMenu() { if (isPageLoaded == true) { timeOutID = setTimeout("displayClose()",200); } } function displayClose() { menuObject = document.getElementById("divSubMenu" + currMenu); menuObject.style.display = "none"; if (timeOutID != "") { clearTimeout(timeOutID); timeOutID = ""; } currMenu = ""; } function overMenu() { if (timeOutID != "") { clearTimeout(timeOutID); timeOutID = ""; } } function strpos(strInput, strChar) { var intCount, intLength, intReturn; var strCheck; intLength = strChar.length; intReturn = -1; for (intCount = 0; intCount < strInput.length; intCount++) { strCheck = strInput.substr(intCount,intLength); if (strCheck == strChar) { intReturn = intCount; break; } } return intReturn; } function strrpos(strInput, strChar) { var intCount, intLength, intReturn; var strCheck; intLength = strChar.length; intReturn = -1; for (intCount = strInput.length - 1; intCount >= 0; intCount--) { strCheck = strInput.substr(intCount,intLength); if (strCheck == strChar) { intReturn = intCount; break; } } return intReturn; }