
var activeMenuId='';var autoCloseTimeOutId='';function activateAutoClose(time)
{currentMenuId=activeMenuId;if(autoCloseTimeOutId)clearTimeout(autoCloseTimeOutId);autoCloseTimeOutId=setTimeout('autoCloseActiveMenu(currentMenuId)',time);}
function autoCloseActiveMenu(id)
{if(!activeMenuId)return;if(activeMenuId!=id)return;document.getElementById(id).className=document.getElementById(id).className.replace(" over","");activeMenuId='';}
function keyboardControl()
{var nodeList=document.getElementsByTagName('LI');for(var i=0;i<nodeList.length;++i)
{if(-1==nodeList[i].className.indexOf('dropdownNode'))continue;if(0==nodeList[i].getElementsByTagName('UL').length)continue;if(0==nodeList[i].getElementsByTagName('A').length)continue;with(nodeList[i].getElementsByTagName('A')[0])
{nodeList[i].getElementsByTagName('A')[0].onfocus=function()
{if(activeMenuId&&activeMenuId==this.parentNode.id)return;if(activeMenuId&&activeMenuId!=this.parentNode.id)
{document.getElementById(activeMenuId).className=document.getElementById(activeMenuId).className.replace(" over","");activeMenuId='';}
activeMenuId=this.parentNode.id;this.parentNode.className+=" over";if(activeMenuId){numerOfLevel2Items=document.getElementById(activeMenuId).getElementsByTagName('LI').length;}else{numerOfLevel2Items=0;}
activateAutoClose((numerOfLevel2Items*3000));};}}}
if(window.addEventListener)
{window.addEventListener('load',keyboardControl,false);}
else if(document.addEventListener)
{document.addEventListener('load',keyboardControl,false);}
try
{if((-1!=window.navigator.userAgent.indexOf('MSIE 6.0')&&-1!=window.navigator.userAgent.indexOf('Windows'))||(window.attachEvent&&-1!=window.navigator.userAgent.indexOf('MSIE 7.0')))
{window.attachEvent('onload',function()
{try
{var nodeList=document.getElementsByTagName('LI');for(var i=0;i<nodeList.length;++i)
{if(-1==nodeList[i].className.indexOf('dropdownNode'))continue;if(0==nodeList[i].getElementsByTagName('UL').length)continue;with(nodeList[i])
{onmouseover=function()
{if(activeMenuId&&this.id!=activeMenuId)
{document.getElementById(activeMenuId).className=document.getElementById(activeMenuId).className.replace(" over","");}
this.className+=" over";activeMenuId=this.id;};onmouseout=function()
{this.className=this.className.replace(" over","");};}
if(0==nodeList[i].getElementsByTagName('A').length)continue;with(nodeList[i].getElementsByTagName('A')[0])
{onfocus=function()
{if(activeMenuId&&activeMenuId==this.parentNode.id)return;if(activeMenuId&&activeMenuId!=this.parentNode.id)
{document.getElementById(activeMenuId).className=document.getElementById(activeMenuId).className.replace(" over","");activeMenuId='';}
activeMenuId=this.parentNode.id;this.parentNode.className+=" over";numerOfLevel2Items=document.getElementById(activeMenuId).getElementsByTagName('LI').length;activateAutoClose((numerOfLevel2Items*3000));};}}}
catch(e)
{alert('Unable initialize dropdown menu.');}});}}
catch(e)
{alert('Unable add dropdown menu initializer.');}
if(0)
{alert('navigator: '+window.navigator+'\n'+'appCodeName: '+window.navigator.appCodeName+'\n'+'appName: '+window.navigator.appName+'\n'+'appVersion: '+window.navigator.appVersion+'\n'+'cookieEnabled: '+window.navigator.cookieEnabled+'\n'+'language: '+window.navigator.language+'\n'+'mimeTypes: '+window.navigator.mimeTypes+'\n'+'oscpu: '+window.navigator.oscpu+'\n'+'platform: '+window.navigator.platform+'\n'+'plugins: '+window.navigator.plugins+'\n'+'product: '+window.navigator.product+'\n'+'productSub: '+window.navigator.productSub+'\n'+'userAgent: '+window.navigator.userAgent+'\n'+'vendor: '+window.navigator.vendor+'\n'+'vendorSub: '+window.navigator.vendorSub+'\n');}
