var menuDOM = (document.getElementById) ? true : false; var menuNS4 = (document.layers) ? true : false; var menuIE = (document.all) ? true : false; var menuIE4 = menuIE && !menuDOM; var menuTimer; var menuDelay = 1500; var iCanHandleMenus = ( menuDOM || menuIE4 ); var iMaxLevel = 3; var sMenuExpanded = ''; var navMenus = new Array(); buildMenus(); function getRef( id ) { var oElement = null; if ( menuIE ) { oElement = document.all[id]; } else if ( menuDOM ) { oElement = document.getElementById(id); } return oElement; } function buildMenus() { navMenus['warrantysupport'] = new Array( {"name":"Business Projectors", "url":"/consumer/projectors/information.nsf/WWarranty?openview&restricttocategory=&title=Business+Projectors+Warranty&nexpand=warrantysupport&count=1000", "target":"_self", "menu":"","posx":"190","posy":"142"}, {"name":"Home Cinema Projectors", "url":"/consumer/projectors/information.nsf/WWarranty?openview&restricttocategory=&title=Home+Cinema+Projectors+Warranty&nexpand=warrantysupport&count=1000", "target":"_self", "menu":"","posx":"190","posy":"162"}, {"name":"Plasma Displays", "url":"/consumer/projectors/information.nsf/WWarranty?openview&restricttocategory=&title=Plasma+Displays+Warranty&nexpand=warrantysupport&count=1000", "target":"_self", "menu":"","posx":"190","posy":"182"} ); navMenus['technology'] = new Array( {"name":"Projectors", "url":"/consumer/projectors/information.nsf/WTechnology?openview&restricttocategory=&title=Projectors&nexpand=technology&count=1000", "target":"_self", "menu":"","posx":"190","posy":"142"} ); navMenus['pvpnews'] = new Array( {"name":"Latest News", "url":"/consumer/projectors/information.nsf/WNews?openview&title=Latest+News&nexpand=pvpnews&count=1000", "target":"_self", "menu":"","posx":"190","posy":"142"}, {"name":"Home Cinema Reviews", "url":"/consumer/projectors/information.nsf/WReviews?openview&title=Home+Cinema+Reviews&nexpand=pvpnews&count=1000&restricttocategory=", "target":"_self", "menu":"","posx":"190","posy":"162"}, {"name":"Business Projector Reviews", "url":"/consumer/projectors/information.nsf/WReviews?openview&title=Business+Projector+Reviews&nexpand=pvpnews&count=1000&restricttocategory=", "target":"_self", "menu":"","posx":"190","posy":"182"} ); navMenus['infodownloads'] = new Array( {"name":"Brochures", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Brochures&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"142"}, {"name":"Images", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Images&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"162"}, {"name":"Manuals", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Manuals&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"182"}, {"name":"Distance Calculator", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Distance Calculator&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"202"}, {"name":"Wireless Software", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Wireless Software&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"222"}, {"name":"Screen Saver", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Screen Saver&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"242"}, {"name":"Archives", "url":"/consumer/projectors/information.nsf/WDownloads?openview&restricttocategory=&title=Archives&nexpand=infodownloads&count=1000", "target":"_self", "menu":"","posx":"190","posy":"262"} ); navMenus['homecinemaproj'] = new Array( {"name":"Entry Level", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-1entrylevel?opendocument§ion=products&nexpand=homecinemaproj", "target":"_self", "menu":"homecinemaproj-entrylevel","posx":"190","posy":"159"}, {"name":"Mid-Range", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-2midrange?opendocument§ion=products&nexpand=homecinemaproj", "target":"_self", "menu":"homecinemaproj-midrange","posx":"190","posy":"179"}, {"name":"High-End", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-3highend?opendocument§ion=products&nexpand=homecinemaproj", "target":"_self", "menu":"homecinemaproj-highend","posx":"190","posy":"199"}, {"name":"Archive", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-archive?opendocument§ion=products&nexpand=homecinemaproj", "target":"_self", "menu":"homecinemaproj-archive","posx":"190","posy":"219"} ); navMenus['homecinemaproj-midrange'] = new Array( {"name":"mt500", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-2midrange-MT500?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-2midrange", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['homecinemaproj-highend'] = new Array( {"name":"mt8", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-3highend-MT8?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-3highend", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['homecinemaproj-entrylevel'] = new Array( {"name":"et1", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-1entrylevel-et1?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-1entrylevel", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s20", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-1entrylevel-s20?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-1entrylevel", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"mt200", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-1entrylevel-mt200?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-1entrylevel", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['homecinemaproj-archive'] = new Array( {"name":"mt100", "url":"/consumer/projectors/products.nsf/pages/homecinemaproj-1entrylevel-MT100?opendocument&nexpand=homecinemaproj&subcat=homecinemaproj-1entrylevel", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj'] = new Array( {"name":"SVGA", "url":"/consumer/projectors/products.nsf/pages/businessproj-1svga?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-svga","posx":"190","posy":"137"}, {"name":"XGA", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-xga","posx":"190","posy":"157"}, {"name":"SXGA", "url":"/consumer/projectors/products.nsf/pages/businessproj-3sxga?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-sxga","posx":"190","posy":"177"}, {"name":"Wireless", "url":"/consumer/projectors/products.nsf/pages/businessproj-4wireless?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-wireless","posx":"190","posy":"197"}, {"name":"Document Camera", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-documentcamera","posx":"190","posy":"217"}, {"name":"Archive", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive?opendocument§ion=products&nexpand=businessproj", "target":"_self", "menu":"businessproj-archive","posx":"190","posy":"237"} ); navMenus['businessproj-xga'] = new Array( {"name":"d2", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-d2?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"p6", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-p6?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t80", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-t80?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t90", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-t90?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t720", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-t720?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"790", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-790?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"x4500", "url":"/consumer/projectors/products.nsf/pages/businessproj-2xga-x4500?opendocument&nexpand=businessproj&subcat=businessproj-2xga", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-wireless'] = new Array( {"name":"sw20", "url":"/consumer/projectors/products.nsf/pages/businessproj-4wireless_a-sw20?opendocument&nexpand=businessproj&subcat=businessproj-4wireless_a", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"tw90", "url":"/consumer/projectors/products.nsf/pages/businessproj-4wireless-tw90?opendocument&nexpand=businessproj&subcat=businessproj-4wireless", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t720", "url":"/consumer/projectors/products.nsf/pages/businessproj-4wireless-t720?opendocument&nexpand=businessproj&subcat=businessproj-4wireless", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t721", "url":"/consumer/projectors/products.nsf/pages/businessproj-4wireless-t721?opendocument&nexpand=businessproj&subcat=businessproj-4wireless", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-sxga'] = new Array( {"name":"f1", "url":"/consumer/projectors/products.nsf/pages/businessproj-3sxga-f1?opendocument&nexpand=businessproj&subcat=businessproj-3sxga", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-svga'] = new Array( {"name":"s20", "url":"/consumer/projectors/products.nsf/pages/businessproj-1svga-s20?opendocument&nexpand=businessproj&subcat=businessproj-1svga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s70", "url":"/consumer/projectors/products.nsf/pages/businessproj-1svga-s70?opendocument&nexpand=businessproj&subcat=businessproj-1svga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s80", "url":"/consumer/projectors/products.nsf/pages/businessproj-1svga-s80?opendocument&nexpand=businessproj&subcat=businessproj-1svga", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-performance'] = new Array( {"name":"f1", "url":"/consumer/projectors/products.nsf/pages/businessproj-3performance-f1?opendocument&nexpand=businessproj&subcat=businessproj-3performance", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t720", "url":"/consumer/projectors/products.nsf/pages/businessproj-3performance-t720?opendocument&nexpand=businessproj&subcat=businessproj-3performance", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"790", "url":"/consumer/projectors/products.nsf/pages/businessproj-3performance-790?opendocument&nexpand=businessproj&subcat=businessproj-3performance", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-mobile'] = new Array( {"name":"d2", "url":"/consumer/projectors/products.nsf/pages/businessproj-2mobile-d2?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"p6", "url":"/consumer/projectors/products.nsf/pages/businessproj-2mobile-p6?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s10", "url":"/consumer/projectors/products.nsf/pages/businessproj-2mobile-s10?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s70", "url":"/consumer/projectors/products.nsf/pages/businessproj-2mobile-s70?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-documentcamera'] = new Array( {"name":"s21", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera-s21?opendocument&nexpand=businessproj&subcat=businessproj-5documentcamera_a", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s81", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera-s81?opendocument&nexpand=businessproj&subcat=businessproj-5documentcamera", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t91", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera-t91?opendocument&nexpand=businessproj&subcat=businessproj-5documentcamera", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t721", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera-t721?opendocument&nexpand=businessproj&subcat=businessproj-5documentcamera", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"791", "url":"/consumer/projectors/products.nsf/pages/businessproj-5documentcamera-791?opendocument&nexpand=businessproj&subcat=businessproj-5documentcamera", "target":"_self", "menu":"","posx":"191","posy":""} ); navMenus['businessproj-archive'] = new Array( {"name":"d1", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-d1?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"p5", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-p5?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s10", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-s10?opendocument&nexpand=businessproj&subcat=businessproj-1svga", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s40", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-s40?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"s41", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-s41?opendocument&nexpand=businessproj&subcat=businessproj-5visualiserarm", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t520", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t520?opendocument&nexpand=businessproj&subcat=businessproj-3performance", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t521", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t521?opendocument&nexpand=businessproj&subcat=businessproj-4wireless", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t60", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t60?opendocument&nexpand=businessproj&subcat=businessproj-2mobile", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t61", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t61?opendocument&nexpand=businessproj&subcat=businessproj-5visualiserarm", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t70", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t70?opendocument&nexpand=businessproj&subcat=businessproj-3performance", "target":"_self", "menu":"","posx":"191","posy":""}, {"name":"t71", "url":"/consumer/projectors/products.nsf/pages/businessproj-archive-t71?opendocument&nexpand=businessproj&subcat=businessproj-5visualiserarm", "target":"_self", "menu":"","posx":"191","posy":""} ); } function expandMenus( sMenuName ) { if ( sMenuExpanded != '' ) { collapseMenus( sMenuExpanded ); } if ( sMenuName != '' ) { oElement = getRef( 'dhtml_expand_' + sMenuName ) element_visibility( 'SELECT', -1 ); var sSubHTML = generateMenus( sMenuName, 1 ); if (oElement ) { menuClearTimer(); oElement.style.visibility = 'visible'; oElement.style.display = 'block'; oElement.innerHTML = sSubHTML; sMenuExpanded = sMenuName; } } } function collapseMenus( sMenuName ) { oElement = getRef( 'dhtml_expand_' + sMenuName ) element_visibility( 'SELECT', -1 ); if (oElement ) { menuClearTimer(); oElement.style.visibility = 'hidden' oElement.style.display = 'none'; } } function showMenus( sMenuName ) { var agt = navigator.userAgent.toLowerCase(); var is_mac = (agt.indexOf("mac")!=-1); if (is_mac) { //alert('No Navigation'); } else { oElement = getRef( sMenuName ) element_visibility( 'SELECT', -1 ) if (oElement ) { menuClearTimer(); oElement.style.visibility = 'visible'; oElement.style.display = 'block'; } } } function generateSubMenus( sSubName, iX, iY, iLevel ) { if ( iCanHandleMenus ) { var str = ''; var iW = 50; var iH = 100; var sSubHTML = generateMenus( sSubName, iLevel ); if (menuDOM || menuIE4) { str += ''; } else if (menuNS4) { str += ''; } // var oHoverElement = getRef( 'dhtml_hover' ); // if (oHoverElement ) { // oHoverElement.innerHTML = oHoverElement.innerHTML + '//str'; // } document.write( str ); } } function generateMenus( sBaseMenu, iLevel ) { var sHTML = ''; var oMenu = navMenus[ sBaseMenu ]; var iCount = 0; var iPosX = 0; var iPosY = 0; var sName; var sURL; var sSubMenu; var sRightArrow; var sSectionArrow = ( typeof(section) != 'undefined' ? section : 'red' ); if ( oMenu ) { sHTML = sHTML + '' for (iCount = 0 ; iCount < oMenu.length; iCount++) { sName = oMenu[iCount].name; sURL = oMenu[iCount].url; sTarget = oMenu[iCount].target; sSubMenu = oMenu[iCount].menu; if ( sSubMenu ) { sRightArrow = 'b_red-wht-red.gif'; if ( !getRef( sSubMenu ) ) { iPosX = oMenu[iCount].posx; iPosY = oMenu[iCount].posy; generateSubMenus( sSubMenu, iPosX, iPosY, iLevel + 1 ) } } else { sRightArrow = 'b_wht-blk-wht.gif'; } tmpExpand = ( sSubMenu ? 'onClick="expandMenus( \'' + sSubMenu + '\' );"' : '' ); tmpURL = ( sURL && menuNS4 ? 'onClick="openWindow(\'' + sURL + '\',\'' + sTarget + '\');"': '' ); tmpOnClick = ( sURL ? tmpURL : tmpExpand ); sLevel0HTML = '' + '' + '' + '' + '' + ''; sLevel1HTML = '' + '' + ''; sLevelHTML = '' + '' + ''; switch ( iLevel ) { case 0: sHTML = sHTML + sLevel0HTML; break; case 1: sHTML = sHTML + sLevel1HTML; break; default: sHTML = sHTML + sLevelHTML; break; } // sHTML = sHTML + (iLevel == 0 ? sLevel0HTML + sLevel0Extra : sLevelHTML ); } sHTML = sHTML + (iLevel > 1 ? '' : '' ) + '
' + sName + '
' + sName + ' 
' + sName + '
'; } return( sHTML ); } function deselectMenuItem( oElement, iLevel ) { oElement.id = 'bg_dhtml_' + (iLevel > 0 ? 'sub' : '' ) + 'nav_content'; if ( iLevel == 0 ) { oElement.firstChild.firstChild.style.visibility = 'visible'; } if ( iLevel == 1 ) { oElement.lastChild.firstChild.src = '/consumer/projectors/home.nsf/b_wht-blk-wht.gif?openimageresource'; } else { oElement.lastChild.firstChild.style.visibility = 'hidden'; } } function selectMenuItem( oElement, iLevel ) { if ( iLevel > -1 ) { menuClose( iLevel + 1 ) } oElement.id = 'bg_dhtml_' + (iLevel > 0 ? 'sub' : '' ) + 'nav_hover'; if ( iLevel == 0 ) { oElement.firstChild.firstChild.style.visibility = 'hidden'; } if ( iLevel == 1 ) { oElement.lastChild.firstChild.src = '/consumer/projectors/home.nsf/b_red-wht-red.gif?openimageresource'; } else { oElement.lastChild.firstChild.style.visibility = 'visible'; } } function menuSetTimer() { menuClearTimer( ); menuTimer = setTimeout( menuClose, menuDelay ); } function menuClearTimer() { clearTimeout(menuTimer); } function menuClose( iLevel ) { menuClearTimer(); var iCount = 0; if (!iLevel || iLevel == 1 ) { element_visibility( 'SELECT', 1 ) } if ( !iLevel ) { oNodes = document.getElementsByTagName( 'DIV' ) for (iCount = 0 ; iCount < oNodes.length ; iCount++ ) { oNode = oNodes[ iCount ] if ( oNode.style.visibility == 'visible') { oNode.style.visibility = 'hidden' oElement.style.display = 'none'; } } } else { for( iLevel = iLevel ; iLevel <= iMaxLevel ; iLevel++ ) { if (menuIE) { oNodes = document.getElementsByTagName( 'DIV' ) } else { oNodes = document.getElementsByName( 'menuLevel' + iLevel ) } for (iCount = 0 ; iCount < oNodes.length ; iCount++ ) { oNode = oNodes[ iCount ] if ( oNode.style.visibility == 'visible' && (!menuIE || oNode.name == 'menuLevel' + iLevel )) { oNode.style.visibility = 'hidden' oNode.style.display = 'none'; } } } } } function initMenus( sMenuName ) { if ( sMenuExpanded != '' ) { collapseMenus( sMenuExpanded ); } if ( sMenuName != '' ) { oElement = getRef( 'dhtml_expand_' + sMenuName ) element_visibility( 'SELECT', -1 ); var sSubHTML = generateMenus( sMenuName, 1 ); if (oElement ) { menuClearTimer(); oElement.style.visibility = 'visible'; oElement.style.display = 'block'; oElement.innerHTML = sSubHTML; sMenuExpanded = sMenuName; } } } function element_visibility( tagName, change ) { if (menuIE) { var els = document.getElementsByTagName(tagName); var i; for (i=0; i < els.length; i++) { var el = els.item(i); if ( el.name != 'searchType' ) { if ( change == -1 ) { //hide element el.style.visibility = 'hidden'; } else if (change == 1 ) { //show element el.style.visibility = 'visible'; } } } } }