if(document.getElementById&&document.getElementsByTagName){var nb={productsMenu:document.getElementById("products"),productsNavItem:document.getElementById("productsHdr"),gallery:document.getElementById("gallery"),subscribeForm:document.getElementById("subscribeForm"),timer:null,init:function(){this.util.configEvents();this.productsMenu.className="rem";this.subscribeForm.target="vr_optin_popup";this.setupNewWindows();this.util.addEvent(this.productsMenu,"mouseover",this.displaySubMenu,false);this.util.addEvent(this.productsNavItem,
"mouseover",this.displaySubMenu,false);this.util.addEvent(this.productsMenu,"mouseout",this.setTimer,false);this.util.addEvent(this.productsNavItem,"mouseout",this.closeSubMenu,false);this.util.addEvent(this.productsMenu,"focus",this.displaySubMenu,false);this.util.addEvent(this.productsNavItem,"focus",this.displaySubMenu,true);this.util.addEvent(this.gallery,"focus",this.closeSubMenu,false)},displaySubMenu:function(){nb.timer&&clearTimeout(nb.timer);nb.productsMenu.className=""},setTimer:function(){nb.timer&&
clearTimeout(nb.timer);nb.timer=setTimeout(nb.closeSubMenu,500)},closeSubMenu:function(){nb.productsMenu.className="rem"},setupNewWindows:function(){for(var a=document.getElementsByTagName("a"),b=0,c=a.length;b<c;b++)if(/newWin/.test(a[b].className)){a[b].title="This link opens in a new browser window";nb.util.addEvent(a[b],"click",nb.openWin,false)}},openWin:function(a){window.open(this.href,"_blank","top=5,left=5,width=820,height=500,menubar=1,scrollbars=1,resizable=1,location=1");nb.util.stopDefault(a)},
util:{configEvents:function(){if(document.addEventListener){this.addEvent=function(a,b,c,d){a.addEventListener(b,c,d)};this.stopBubble=function(a){a.stopPropagation()};this.stopDefault=function(a){a.preventDefault()};this.findTarget=function(a,b,c){for(a=a.target;a&&a!==c;)if(a.nodeName.toLowerCase()===b)return a;else a=a.parentNode;return false}}else if(document.attachEvent){this.addEvent=function(a,b,c){a["e"+b+c]=c;a[b+c]=function(){a["e"+b+c](window.event)};a.attachEvent("on"+b,a[b+c])};this.stopBubble=
function(a){a.cancelBubble=true};this.stopDefault=function(a){a.returnValue=false};this.findTarget=function(a,b,c){for(a=a.srcElement;a&&a!==c;)if(a.nodeName.toLowerCase()===b)return a;else a=a.parentNode;return false}}}}};nb.init()};