function addEvent(obj, evType, fn, useCapture){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be attached");
  }
}

/* or
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != "function") {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
*/

var h = function() 
	{
	menu1_1 = "menu1_1";
	menu1_2 = "menu1_2";
	menu1_3 = "menu1_3";
	menu1_4 = "menu1_4";
	menu1_5 = "menu1_5";

	menu2_1 = "menu2_1";
	menu2_2 = "menu2_2";
	menu2_3 = "menu2_3";
	menu2_4 = "menu2_4";
	menu2_5 = "menu2_5";
	menu2_6 = "menu2_6";
	menu2_7 = "menu2_7";
	menu2_8 = "menu2_8";
	menu2_9 = "menu2_9";

	menu3_1 = "menu3_1";
	menu3_2 = "menu3_2";
	menu3_3 = "menu3_3";
	
	menu4_1 = "menu4_1";
	menu4_2 = "menu4_2";
	
	menu5_1 = "menu5_1";
	menu5_2 = "menu5_2";
	menu5_3 = "menu5_3";
	menu5_4 = "menu5_4";

	menu7_1 = "menu7_1";
	menu7_2 = "menu7_2";
	menu7_3 = "menu7_3";
	menu7_4 = "menu7_4";
	menu7_5 = "menu7_5";
	menu7_6 = "menu7_6";
	
	varMenu = "";
	varMenu = varMenu + "<div id='menu1' class='menu' onmouseover='menuMouseover(event)'>"
	varMenu = varMenu + "<a class='menuItem' href='index.html' rel='nofollow' title='Pagina Inicial'><span class='menuItemText'>Home</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='projetores.html' rel='nofollow' title='Projetores'><span class='menuItemText'>Projetores</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='usados.html' rel='nofollow' title='Usados'><span class='menuItemText'>Usados</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='cameras.html' rel='nofollow' title='Cameras Digitais'><span class='menuItemText'>Cameras Digitais</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='filmadora.html' rel='nofollow' title='Filmadoras'><span class='menuItemText'>Filmadoras</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='informatica.html' rel='nofollow' title='Inform&aacute;tica'><span class='menuItemText'>Inform&aacute;tica</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='duplicadores.html' rel='nofollow' title='Duplicadores CD/DVD'><span class='menuItemText'>Duplicadores CD/DVD</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='hometheater.html' rel='nofollow' title='Home Theater'><span class='menuItemText'>Home Theater</span></a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu2' class='menu' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='sony.html' rel='nofollow' title=''><span class='menuItemText'>Sony</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='sharp.html' rel='nofollow' title=''><span class='menuItemText'>Sharp</span></a>";
varMenu = varMenu + "<a class='menuItem' href='sanyo.html' rel='nofollow' title=''><span class='menuItemText'>Sanyo</span></a>";
varMenu = varMenu + "<a class='menuItem' href='epson.html' rel='nofollow' title=''><span class='menuItemText'>Epson</span></a>";
varMenu = varMenu + "<a class='menuItem' href='hitachi.html' rel='nofollow' title=''><span class='menuItemText'>Hitachi</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='infocus.html' rel='nofollow' title=''><span class='menuItemText'>Infocus</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='panasonic.html' rel='nofollow' title=''><span class='menuItemText'>Panasonic</span></a>";
varMenu = varMenu + "<a class='menuItem' href='lentes.html' rel='nofollow' title=''><span class='menuItemText'>Lentes em geral</span></a>";
	varMenu = varMenu + "<div class='menuItemSep'></div>";
	
	varMenu = varMenu + "<a class='menuItem' href='usados.html' rel='nofollow' title=''><span class='menuItemText'>Usados</span></a>";

	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu3' class='menu' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='javascript:void(0)' rel='nofollow' title='' onclick='return false;' onmouseover='menuItemMouseover(event, menu3_1);'><span class='menuItemText'>Telas</span><span class='menuItemArrow'>&#9654;</span></a>";

varMenu = varMenu + "<a class='menuItem' href='javascript:void(0)' rel='nofollow' title='' onclick='return false;' onmouseover='menuItemMouseover(event, menu3_2);'><span class='menuItemText'>Suportes</span><span class='menuItemArrow'>&#9654;</span></a>";

varMenu = varMenu + "<a class='menuItem' href='javascript:void(0)' rel='nofollow' title='' onclick='return false;' onmouseover='menuItemMouseover(event, menu3_3);'><span class='menuItemText'>Cabos e Acessorios</span><span class='menuItemArrow'>&#9654;</span></a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu4' class='menu' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='tannoy.html' rel='nofollow' title=''>Tannoy</a>";
	varMenu = varMenu + "<a class='menuItem' href='bose.html' rel='nofollow' title=''>Bose</a>";
	varMenu = varMenu + "<a class='menuItem' href='yamaha.html' rel='nofollow' title=''>Yamaha</a>";
	varMenu = varMenu + "<a class='menuItem' href='jbl.html' rel='nofollow' title=''>JBL</a>";
varMenu = varMenu + "<a class='menuItem' href='lando.html' rel='nofollow' title=''>Lando</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu5' class='menu' onmouseover='menuMouseover(event)'>";
		varMenu = varMenu + "<a class='menuItem' href='lampproj.html' rel='nofollow' title=''>para projetores</a>";
		varMenu = varMenu + "<a class='menuItem' href='medica.html' rel='nofollow' title=''>para &aacute;rea m&eacute;dica</a>";
	varMenu = varMenu + "<a class='menuItem' href='automotiva.html' rel='nofollow' title=''>para automotiva</a>";
	varMenu = varMenu + "<a class='menuItem' href='germicida.html' rel='nofollow' title=''>germicida</a>";
	varMenu = varMenu + "<a class='menuItem' href='aeroportos.html' rel='nofollow' title=''>aeroportos</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu6' class='menu' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='conserto.html' rel='nofollow' title=''>Conserto</a>";
	varMenu = varMenu + "<a class='menuItem' href='manutencao.html' rel='nofollow' title=''>Manuten&ccedil;&atilde;o</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu7' class='menu' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='storages.html' rel='nofollow' title=''>Storages</a>";
	varMenu = varMenu + "<a class='menuItem' href='mp3.html' rel='nofollow' title=''>MP3/4/5/6/7/8</a>";
	varMenu = varMenu + "<a class='menuItem' href='software.html' rel='nofollow' title=''>Softwares</a>";
	varMenu = varMenu + "<a class='menuItem' href='placas.html' rel='nofollow' title=''>Placas</a>";
	varMenu = varMenu + "<a class='menuItem' href='acesso.html' rel='nofollow' title=''>Acess&oacute;rios</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<!-- Sub menus for menu 1. -->";
	varMenu = varMenu + "<div id='menu1_1' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/ASK-Proxima-projectors.asp' rel='nofollow' title=''>ASK Proxima Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/benq-projectors.asp' rel='nofollow' title=''>BenQ Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/canon-projectors.asp' rel='nofollow' title=''>Canon Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/casio-projectors.asp' rel='nofollow' title=''>Casio Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/epson-projectors.asp' rel='nofollow' title=''>Epson Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/hitachi-projectors.asp' rel='nofollow' title=''>Hitachi Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/infocus-projectors.asp' rel='nofollow' title=''>InFocus Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/jvc-projectors.asp' rel='nofollow' title=''>JVC Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/marantz-projectors.asp' rel='nofollow' title=''>Marantz Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/mitsubishi-projectors.asp' rel='nofollow' title=''>Mitsubishi Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/nec-projectors.asp' rel='nofollow' title='NEC Projectors'>NEC Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/optoma-projectors.asp' rel='nofollow' title='Optoma Projectors'>Optoma Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/panasonic-projectors.asp' rel='nofollow' title='Panasonic Projectors'>Panasonic Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/ask-proxima-projectors.asp' rel='nofollow' title='Proxima Projectors'>Proxima Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/sanyo-projectors.asp' rel='nofollow' title='Sanyo Projectors'>Sanyo Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/sharp-projectors.asp' rel='nofollow' title='Sharp Projectors'>Sharp Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/sony-projectors.asp' rel='nofollow' title='Sony Projectors'>Sony Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/toshiba-projectors.asp' rel='nofollow' title='Toshiba Projectors'>Toshiba Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/Vivitek-projectors.asp' rel='nofollow' title='Vivitek Projectors'>Vivitek Projectors</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu1_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projector-rebates.asp' rel='nofollow' title='Rebates &amp; Promotions'>Rebates &amp; Promotions</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/business-specials.asp' rel='nofollow' title='Business Packages'>Business Packages</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/hometheater-specials.asp' rel='nofollow' title='Home Theater Packages'>Home Theater Packages</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/hometheaterbundle.asp' rel='nofollow' title='Customize Your HT Package'>Customize Your HT Package</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/demo-projectors.asp' rel='nofollow' title='Demo Projector Sales'>Demo Projector Sales</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/open-box-projectors.asp' rel='nofollow' title='Open Box Projector Specials'>Open Box Projector Specials</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu1_3' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/buyersguide.asp' rel='nofollow' title='Home Theater Buyer's Guide'>Home Theater Buyer's Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/bp_buyersguide.asp' rel='nofollow' title='Business Buyer's Guide'>Business Buyer's Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projector-finder.asp' rel='nofollow' title='Projector Finder'>Projector Finder</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projector-comparisons.asp' rel='nofollow' title='Comparison Charts'>Comparison Charts</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu1_4' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/top-ten-projectors.asp' rel='nofollow' title='Top Ten Bestsellers'>Top Ten Bestsellers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/under1000.asp' rel='nofollow' title='Projectors Under $1,000'>Projectors Under $1,000</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/under700.asp' rel='nofollow' title='Projectors Under $700'>Projectors Under $700</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/hdtv-projectors.asp' rel='nofollow' title='HDTV Projectors'>HDTV Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/network-projectors.asp' rel='nofollow' title='Network Projectors'>Network Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/wireless-projectors.asp' rel='nofollow' title='Wireless Projectors'>Wireless Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/all-projectors.asp?sort=price' rel='nofollow' title='Sort by Price'>Sort by Price</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/tradeups.asp' rel='nofollow' title='Trade Up Program'>Trade Up Program</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu1_5' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projectors-education.asp' rel='nofollow' title='Education'>Education</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projectors-government.asp' rel='nofollow' title='Government'>Government</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projectors-religion.asp' rel='nofollow' title='House of Worship'>House of Worship</a>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/projectors-fleetsales.asp' rel='nofollow' title='Fleet Sales'>Fleet Sales</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<!-- Sub menus for menu 2. -->";
	
	varMenu = varMenu + "<div id='menu2_1' class='menu sub' onmouseover='menuMouseover(event)'>";
	varMenu = varMenu + "<a class='menuItem' href='/projectors/hometheater-specials.asp' rel='nofollow' title='Home Theater Packages'>Home Theater Packages</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/hometheaterbundle.asp' rel='nofollow' title='Customize Your HT Package'>Customize Your HT Package</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/backyard_theater.asp' rel='nofollow' title='Backyard Theater Packages'>Backyard Theater Packages</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/ht-scenario.asp' rel='nofollow' title='Home Theater Plan'>Home Theater Plan</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/ht-quiz-landing.asp' rel='nofollow' title='Test Your Home Theater IQ'>Test Your Home Theater IQ</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/hometheater-showrooms.asp' rel='nofollow' title='Home Theater Customer Showroom'>Home Theater Customer Showroom</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu2_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/axiom.asp' rel='nofollow' title='Axiom Audio'>Axiom Audio</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/Onkyo-home-theater-systems.asp' rel='nofollow' title='Onkyo Home Theater Systems'><span class='menuItemNew'>Onkyo Home Theater Systems</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/tannoy.asp' rel='nofollow' title='Tannoy'>Tannoy</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/audio-packages.asp' rel='nofollow' title='Audio Packages'><span class='menuItemNew'>Audio Packages</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/ceiling-speakers.asp' rel='nofollow' title='Speakers'>Speakers: In-Ceiling</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/inwall-speakers.asp' rel='nofollow' title='Speakers'>Speakers: In-Wall</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/subwoofers.asp' rel='nofollow' title='Subwoofers'>Subwoofers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/audio-accessories.asp' rel='nofollow' title='Audio Accessories'>Audio Accessories</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu2_3' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/dvd-players-up-converting.asp' rel='nofollow' title='Up-Converting DVD Players'>DVD Players: Up-Converting</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/dvd-players-hd.asp' rel='nofollow' title='High Definition (HD and Blu-Ray) DVD Players'>DVD Players: High-Definition</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/dvd-players-combo.asp' rel='nofollow' title='DVD-VCR Player Combos'>DVD-VCR Player Combos</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/video-processors.asp' rel='nofollow' title='Video Scalers &amp; Processors'>Video Scalers &amp; Processors</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu2_4' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='AV Receivers'>Epson 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu2_5' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='Hitachi'>Hitachi 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";
	
		varMenu = varMenu + "<div id='menu2_6' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='Hitachi'>Infocus 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";
	
		varMenu = varMenu + "<div id='menu2_7' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='Hitachi'>Panasonic 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";
	
		varMenu = varMenu + "<div id='menu2_8' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='Hitachi'>Lentes em geral 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";
	
		varMenu = varMenu + "<div id='menu2_9' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/av-receivers.asp' rel='nofollow' title='Hitachi'>Usados 1</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/cables.asp' rel='nofollow' title='Cables'>Cables</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/calibration.asp' rel='nofollow' title='Video Calibration Software'>Calibration Software</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/switchers.asp' rel='nofollow' title='Digital Switchers'>Digital Switchers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/hometheater-audio/monster-power.asp' rel='nofollow' title='Power Management'>Power Management</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<!-- Sub menus for menu 3. -->"
	varMenu = varMenu + "<div id='menu3_1' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='eletricas.html' rel='nofollow' title=''>Eletricas</a>";
	varMenu = varMenu + "<a class='menuItem' href='manuais.html' rel='nofollow' title=''>Manuais</a>";
	varMenu = varMenu + "<a class='menuItem' href='armar.html' rel='nofollow' title=''>Armar</a>";
varMenu = varMenu + "<a class='menuItem' href='tripe.html' rel='nofollow' title=''>Tripe</a>";
varMenu = varMenu + "<a class='menuItem' href='mapa.html' rel='nofollow' title=''>Mapa</a>";
varMenu = varMenu + "<a class='menuItem' href='tecidos.html' rel='nofollow' title=''>Tecidos</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu3_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='suptv.html' rel='nofollow' title='Axiom Audio'>Suporte para TV</a>";
	varMenu = varMenu + "<a class='menuItem' href='supprojetores.html' rel='nofollow' title='Onkyo Home Theater Systems'>Suporte para projetores</a>";
	varMenu = varMenu + "<a class='menuItem' href='lift.html' rel='nofollow' title='Tannoy'>Lift</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu3_3' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='cabovideo.html' rel='nofollow' title='Axiom Audio'>Cabos para video</a>";
	varMenu = varMenu + "<a class='menuItem' href='caboaudio.html' rel='nofollow' title='Onkyo Home Theater Systems'>Cabos para audio</a>";
	varMenu = varMenu + "<a class='menuItem' href='caboacessorios.html' rel='nofollow' title='Tannoy'>Acessorios</a>";
	varMenu = varMenu + "</div>";
	
	
	varMenu = varMenu + "<!-- Sub menus for menu 4. -->"
	varMenu = varMenu + "<div id='menu4_1' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/dec-cable.asp' rel='nofollow' title='Cables &amp; Connections'>Cables &amp; Connections</a>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/dvi-connections.asp' rel='nofollow' title='DVI Connections'>DVI Connections</a>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/HDCP_DVI.asp' rel='nofollow' title='HDCP over DVI'>HDCP over DVI</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu4_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/cable-adapters.asp' rel='nofollow' title='Cable Adapters'>Cable Adapters</a>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/distribution-amplifiers.asp' rel='nofollow' title='Distribution Amplifiers'>Distribution Amplifiers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/signal-extender-repeater.asp' rel='nofollow' title='Signal Extenders/Repeaters'>Signal Extenders/Repeaters</a>";
	varMenu = varMenu + "<a class='menuItem' href='/cables/wall-plates.asp' rel='nofollow' title='Wall Plates'>Wall Plates</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<!-- Sub menus for menu 5. -->";
	varMenu = varMenu + "<div id='menu5_1' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/lamps.asp' rel='nofollow' title='Replacement Lamps &amp; Bulbs'>Lamps &amp; Bulbs</a>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/mounts.asp' rel='nofollow' title='Projector Mounts'>Projector Mounts </a>";
	varMenu = varMenu + "<a class='menuItem' href='/screens/default.asp' rel='nofollow' title='Projector Screens'>Projector Screens</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<div id='menu5_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/mounts.asp' rel='nofollow' title='Projector Mounts'>Projector Mounts</a>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/flatpanel-mounts.asp' rel='nofollow' title='Flat Panel Mounts'>Flat Panel Mounts</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu5_3' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/home-theater-remotes.asp' rel='nofollow' title='Home Theater Remotes'>Home Theater Remotes</a>";
	varMenu = varMenu + "<a class='menuItem' href='/accessories/Interlink-remotes.asp' rel='nofollow' title='Presentation Remotes'>Presentation Remotes</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu5_4' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/screens/da-lite-screens.asp' rel='nofollow' title='Da-Lite Screens'>Da-Lite Screens</a>";
	varMenu = varMenu + "<a class='menuItem' href='/screens/draper-screens.asp' rel='nofollow' title='Draper Screens'>Draper Screens</a>";
	varMenu = varMenu + "</div>";
	
	varMenu = varMenu + "<!-- Sub menus for menu 7. -->";
	varMenu = varMenu + "<div id='menu7_1' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/bp_buyersguide.asp' rel='nofollow' title='Buyer's Guide - Business'>Buyer's Guide - Business</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/buyersguide.asp' rel='nofollow' title='Buyer's Guide - Home Theater'>Buyer's Guide - Home Theater</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/photography-projection.asp' rel='nofollow' title='Buyer's Guide - Photography'>Buyer's Guide - Photography</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/gadget-guide.asp' rel='nofollow' title='Gadgets Guide'>Gadgets Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/lumen-guide.asp' rel='nofollow' title='Lumens Guide'>Lumens Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-care.asp' rel='nofollow' title='Projector Care Guide'>Projector Care Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-lamp_life.asp' rel='nofollow' title='Tips to Extend Lamp Life'>Tips to Extend Lamp Life</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu7_2' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/glossary.asp' rel='nofollow' title='Glossary'>Glossary</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/aspect-ratios.asp' rel='nofollow' title='Aspect Ratios'>Aspect Ratios</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/display-def.asp' rel='nofollow' title='Display Definitions'>Display Definitions</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/lcd-plasma-projector.asp' rel='nofollow' title='LCD TVs vs. Plasma TVs vs. Projectors'><span class='menuItemNew'>LCD TVs vs. Plasma TVs vs. Projectors</span></a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-sources.asp' rel='nofollow' title='Projectors &amp; Sources'>Projectors &amp; Sources</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/keystone-correction.asp' rel='nofollow' title='Keystone Correction'>Keystone Correction</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/lens_shift.asp' rel='nofollow' title='Lens Shift'>Lens Shift</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-networking.asp' rel='nofollow' title='Networking Projectors'>Networking Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/short-throw.asp' rel='nofollow' title='Short-Throw Lenses'>Short-Throw Lenses</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/wireless-projectors.asp' rel='nofollow' title='Wireless Projector'>Wireless Projectors</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu7_3' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/ht-intro.asp' rel='nofollow' title='Intro to Home Theater Projectors'>Intro to Home Theater Projectors</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-resolution.asp' rel='nofollow' title='Resolution &amp; Video'>Resolution &amp; Video</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/formats.asp' rel='nofollow' title='Standard vs. Widescreen'>Standard vs. Widescreen</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-formats.asp' rel='nofollow' title='How Projectors Interpret Formats'>How Projectors Interpret Formats</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-signals.asp' rel='nofollow' title='Interlaced vs. Progressive Scan'>Interlaced vs. Progressive Scan</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/doublers.asp' rel='nofollow' title='Line Doublers &amp; Scalers'>Line Doublers &amp; Scalers</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/hdtv.asp' rel='nofollow' title='HDTV Standards'>HDTV Standards</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/pulldown.asp' rel='nofollow' title='3:2 Pulldown Explained'>3:2 Pulldown Explained</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/video-calibration.asp' rel='nofollow' title='Video Calibration'>Video Calibration</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu7_4' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/presenter-tips.asp' rel='nofollow' title='Presenter Tip Library'>Presenter Tip Library</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/presenter-shortcuts.asp' rel='nofollow' title='Presentation Shortcuts'>Presentation Shortcuts</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/templates.asp' rel='nofollow' title='Presentation Templates'>Presentation Templates</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-links.asp' rel='nofollow' title='Projector Industry Links'>Projector Industry Links</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu7_5' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/podcast.asp' rel='nofollow' title='Projector Podcasts'>Podcasts</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/pdfs/ProjectorPeople-ConnectionGuide.pdf' rel='nofollow' title='Projector Connection Guide'>Projector Connection Guide</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/rebateforms.asp' rel='nofollow' title='Rebate Claim Forms'>Rebate Claim Forms</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/mfrspecsheets.asp' rel='nofollow' title='Spec Sheets'>Spec Sheets</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/usermanuals.asp' rel='nofollow' title='User Manuals'>User Manuals</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/whitepapers.asp' rel='nofollow' title='Technology White Papers'>Technology White Papers</a>";
	varMenu = varMenu + "</div>";

	varMenu = varMenu + "<div id='menu7_6' class='menu sub'>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/rmorgan.asp' rel='nofollow' title='Backyard Theater'>Backyard Theater</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/football-projectors.asp' rel='nofollow' title='Outdoor Football Projection'>Outdoor Football</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/mciavolino.asp' rel='nofollow' title='Pool Party'>Pool Party</a>";
	varMenu = varMenu + "<!--<a class='menuItem' href='' rel='nofollow' title='Video Gaming'>Video Gaming</a>-->";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projplay.asp' rel='nofollow' title='Ten Fun Things'>Ten Fun Things</a>";
	varMenu = varMenu + "<a class='menuItem' href='/resources/projector-people.asp' rel='nofollow' title='Some Projector People'>Some 'Projector People'</a>";
	varMenu = varMenu + "</div>";
	
	return varMenu;
	};

insertdiv = function () 
	{ 
	document.getElementById("menuContainer").innerHTML = h(); 
	};

addEvent(window, "load", insertdiv, false);

//*****************************************************************************
// Do not remove this notice.
//
// Copyright 2000-2004 by Mike Hall.
// See http://www.brainjar.com for terms of use.
//*****************************************************************************

//----------------------------------------------------------------------------
// Code to determine the browser and version.
//----------------------------------------------------------------------------

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
}

var browser = new Browser();

//----------------------------------------------------------------------------
// Code for handling the menu bar and active button.
//----------------------------------------------------------------------------

var activeButton = null;

/* [MODIFIED] This code commented out, not needed for activate/deactivate
   on mouseover.

// Capture mouse clicks on the page so any active button can be
// deactivated.

if (browser.isIE)
  document.onmousedown = pageMousedown;
else
  document.addEventListener("mousedown", pageMousedown, true);

function pageMousedown(event) {

  var el;

  // If there is no active button, exit.

  if (activeButton == null)
    return;

  // Find the element that was clicked on.

  if (browser.isIE)
    el = window.event.srcElement;
  else
    el = (event.target.tagName ? event.target : event.target.parentNode);

  // If the active button was clicked on, exit.

  if (el == activeButton)
    return;

  // If the element is not part of a menu, reset and clear the active
  // button.

  if (getContainerWith(el, "DIV", "menu") == null) {
    resetButton(activeButton);
    activeButton = null;
  }
}

[END MODIFIED] */

function buttonClick(event, menuId) {

  var button;

  // Get the target button element.

  if (browser.isIE)
    button = window.event.srcElement;
  else
    button = event.currentTarget;

  // Blur focus from the link to remove that annoying outline.

  button.blur();

  // Associate the named menu to this button if not already done.
  // Additionally, initialize menu display.

  if (button.menu == null) {
    button.menu = document.getElementById(menuId);
    if (button.menu.isInitialized == null)
      menuInit(button.menu);
  }

  // [MODIFIED] Added for activate/deactivate on mouseover.

  // Set mouseout event handler for the button, if not already done.

  if (button.onmouseout == null)
    button.onmouseout = buttonOrMenuMouseout;

  // Exit if this button is the currently active one.

  if (button == activeButton)
    return false;

  // [END MODIFIED]

  // Reset the currently active button, if any.

  if (activeButton != null)
    resetButton(activeButton);

  // Activate this button, unless it was the currently active one.

  if (button != activeButton) {
    depressButton(button);
    activeButton = button;
  }
  else
    activeButton = null;

  return false;
}

function buttonMouseover(event, menuId) {

  var button;

  // [MODIFIED] Added for activate/deactivate on mouseover.

  // Activates this button's menu if no other is currently active.

  if (activeButton == null) {
    buttonClick(event, menuId);
    return;
  }

  // [END MODIFIED]

  // Find the target button element.

  if (browser.isIE)
    button = window.event.srcElement;
  else
    button = event.currentTarget;

  // If any other button menu is active, make this one active instead.

  if (activeButton != null && activeButton != button)
    buttonClick(event, menuId);
}

function depressButton(button) {

  var x, y;

  // Update the button's style class to make it look like it's
  // depressed.

  button.className += " menuButtonActive";

  // [MODIFIED] Added for activate/deactivate on mouseover.

  // Set mouseout event handler for the button, if not already done.

  if (button.onmouseout == null)
    button.onmouseout = buttonOrMenuMouseout;
  if (button.menu.onmouseout == null)
    button.menu.onmouseout = buttonOrMenuMouseout;

  // [END MODIFIED]

  // Position the associated drop down menu under the button and
  // show it.

  x = getPageOffsetLeft(button);
  y = getPageOffsetTop(button) + button.offsetHeight;

  // For IE, adjust position.

  if (browser.isIE) {
    x += button.offsetParent.clientLeft;
    y += button.offsetParent.clientTop;
  }

  button.menu.style.left = x + "px";
  button.menu.style.top  = y + "px";
  button.menu.style.visibility = "visible";

  // For IE; size, position and show the menu's IFRAME as well.

  if (button.menu.iframeEl != null)
  {
    button.menu.iframeEl.style.left = button.menu.style.left;
    button.menu.iframeEl.style.top  = button.menu.style.top;
    button.menu.iframeEl.style.width  = button.menu.offsetWidth + "px";
    button.menu.iframeEl.style.height = button.menu.offsetHeight + "px";
    button.menu.iframeEl.style.display = "";
  }
}

function resetButton(button) {

  // Restore the button's style class.

  removeClassName(button, "menuButtonActive");

  // Hide the button's menu, first closing any sub menus.

  if (button.menu != null) {
    closeSubMenu(button.menu);
    button.menu.style.visibility = "hidden";

    // For IE, hide menu's IFRAME as well.

    if (button.menu.iframeEl != null)
      button.menu.iframeEl.style.display = "none";
  }
}

//----------------------------------------------------------------------------
// Code to handle the menus and sub menus.
//----------------------------------------------------------------------------

function menuMouseover(event) {

  var menu;

  // Find the target menu element.

  if (browser.isIE)
    menu = getContainerWith(window.event.srcElement, "DIV", "menu");
  else
    menu = event.currentTarget;

  // Close any active sub menu.

  if (menu.activeItem != null)
    closeSubMenu(menu);
}

function menuItemMouseover(event, menuId) {

  var item, menu, x, y;

  // Find the target item element and its parent menu element.

  if (browser.isIE)
    item = getContainerWith(window.event.srcElement, "A", "menuItem");
  else
    item = event.currentTarget;
  menu = getContainerWith(item, "DIV", "menu");

  // Close any active sub menu and mark this one as active.

  if (menu.activeItem != null)
    closeSubMenu(menu);
  menu.activeItem = item;

  // Highlight the item element.

  item.className += " menuItemHighlight";

  // Initialize the sub menu, if not already done.

  if (item.subMenu == null) {
    item.subMenu = document.getElementById(menuId);
    if (item.subMenu.isInitialized == null)
      menuInit(item.subMenu);
  }

  // [MODIFIED] Added for activate/deactivate on mouseover.

  // Set mouseout event handler for the sub menu, if not already done.

  if (item.subMenu.onmouseout == null)
    item.subMenu.onmouseout = buttonOrMenuMouseout;

  // [END MODIFIED]

  // Get position for submenu based on the menu item.

  x = getPageOffsetLeft(item) + item.offsetWidth;
  y = getPageOffsetTop(item);

  // Adjust position to fit in view.

  var maxX, maxY;

  if (browser.isIE) {
    maxX = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) +
      (document.documentElement.clientWidth != 0 ? document.documentElement.clientWidth : document.body.clientWidth);
    maxY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) +
      (document.documentElement.clientHeight != 0 ? document.documentElement.clientHeight : document.body.clientHeight);
  }
  if (browser.isOP) {
    maxX = document.documentElement.scrollLeft + window.innerWidth;
    maxY = document.documentElement.scrollTop  + window.innerHeight;
  }
  if (browser.isNS) {
    maxX = window.scrollX + window.innerWidth;
    maxY = window.scrollY + window.innerHeight;
  }
  maxX -= item.subMenu.offsetWidth;
  maxY -= item.subMenu.offsetHeight;

  if (x > maxX)
    x = Math.max(0, x - item.offsetWidth - item.subMenu.offsetWidth
      + (menu.offsetWidth - item.offsetWidth));
  y = Math.max(0, Math.min(y, maxY));

  // Position and show the sub menu.

  item.subMenu.style.left       = x + "px";
  item.subMenu.style.top        = y + "px";
  item.subMenu.style.visibility = "visible";

  // For IE; size, position and display the menu's IFRAME as well.

  if (item.subMenu.iframeEl != null)
  {
    item.subMenu.iframeEl.style.left    = item.subMenu.style.left;
    item.subMenu.iframeEl.style.top     = item.subMenu.style.top;
    item.subMenu.iframeEl.style.width   = item.subMenu.offsetWidth + "px";
    item.subMenu.iframeEl.style.height  = item.subMenu.offsetHeight + "px";
    item.subMenu.iframeEl.style.display = "";
  }

  // Stop the event from bubbling.

  if (browser.isIE)
    window.event.cancelBubble = true;
  else
    event.stopPropagation();
}

function closeSubMenu(menu) {

  if (menu == null || menu.activeItem == null)
    return;

  // Recursively close any sub menus.

  if (menu.activeItem.subMenu != null) {
    closeSubMenu(menu.activeItem.subMenu);
    menu.activeItem.subMenu.style.visibility = "hidden";

    // For IE, hide the sub menu's IFRAME as well.

    if (menu.activeItem.subMenu.iframeEl != null)
      menu.activeItem.subMenu.iframeEl.style.display = "none";

    menu.activeItem.subMenu = null;
  }

  // Deactivate the active menu item.

  removeClassName(menu.activeItem, "menuItemHighlight");
  menu.activeItem = null;
}

// [MODIFIED] Added for activate/deactivate on mouseover. Handler for mouseout
// event on buttons and menus.

function buttonOrMenuMouseout(event) {

  var el;

  // If there is no active button, exit.

  if (activeButton == null)
    return;

  // Find the element the mouse is moving to.

  if (browser.isIE)
    el = window.event.toElement;
  else if (event.relatedTarget != null)
      el = (event.relatedTarget.tagName ? event.relatedTarget : event.relatedTarget.parentNode);

  // If the element is not part of a menu, reset the active button.

  if (getContainerWith(el, "DIV", "menu") == null) {
    resetButton(activeButton);
    activeButton = null;
  }
}

// [END MODIFIED]

//----------------------------------------------------------------------------
// Code to initialize menus.
//----------------------------------------------------------------------------

function menuInit(menu) {

  var itemList, spanList;
  var textEl, arrowEl;
  var itemWidth;
  var w, dw;
  var i, j;

  // For IE, replace arrow characters.

  if (browser.isIE) {
    menu.style.lineHeight = "2.5ex";
    spanList = menu.getElementsByTagName("SPAN");
    for (i = 0; i < spanList.length; i++)
      if (hasClassName(spanList[i], "menuItemArrow")) {
        spanList[i].style.fontFamily = "Webdings";
        spanList[i].firstChild.nodeValue = "4";
      }
  }

  // Find the width of a menu item.

  itemList = menu.getElementsByTagName("A");
  if (itemList.length > 0)
    itemWidth = itemList[0].offsetWidth;
  else
    return;

  // For items with arrows, add padding to item text to make the
  // arrows flush right.

  for (i = 0; i < itemList.length; i++) {
    spanList = itemList[i].getElementsByTagName("SPAN");
    textEl  = null;
    arrowEl = null;
    for (j = 0; j < spanList.length; j++) {
      if (hasClassName(spanList[j], "menuItemText"))
        textEl = spanList[j];
      if (hasClassName(spanList[j], "menuItemArrow"))
        arrowEl = spanList[j];
    }
    if (textEl != null && arrowEl != null) {
      textEl.style.paddingRight = (itemWidth 
        - (textEl.offsetWidth + arrowEl.offsetWidth)) + "px";
      // For Opera, remove the negative right margin to fix a display bug.
      if (browser.isOP)
        arrowEl.style.marginRight = "0px";
    }
  }

  // Fix IE hover problem by setting an explicit width on first item of
  // the menu.

  if (browser.isIE) {
    w = itemList[0].offsetWidth;
    itemList[0].style.width = w + "px";
    dw = itemList[0].offsetWidth - w;
    w -= dw;
    itemList[0].style.width = w + "px";
  }

  // Fix the IE display problem (SELECT elements and other windowed controls
  // overlaying the menu) by adding an IFRAME under the menu.

  if (browser.isIE) {
    var iframeEl = document.createElement("IFRAME");
    iframeEl.frameBorder = 0;
    iframeEl.src = "javascript:;";
    iframeEl.style.display = "none";
    iframeEl.style.position = "absolute";
    iframeEl.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
    menu.iframeEl = menu.parentNode.insertBefore(iframeEl, menu);
  }

  // Mark menu as initialized.

  menu.isInitialized = true;
}

//----------------------------------------------------------------------------
// General utility functions.
//----------------------------------------------------------------------------

function getContainerWith(node, tagName, className) {

  // Starting with the given node, find the nearest containing element
  // with the specified tag name and style class.

  while (node != null) {
    if (node.tagName != null && node.tagName == tagName &&
        hasClassName(node, className))
      return node;
    node = node.parentNode;
  }

  return node;
}

function hasClassName(el, name) {

  var i, list;

  // Return true if the given element currently has the given class
  // name.

  list = el.className.split(" ");
  for (i = 0; i < list.length; i++)
    if (list[i] == name)
      return true;

  return false;
}

function removeClassName(el, name) {

  var i, curList, newList;

  if (el.className == null)
    return;

  // Remove the given class name from the element's className property.

  newList = new Array();
  curList = el.className.split(" ");
  for (i = 0; i < curList.length; i++)
    if (curList[i] != name)
      newList.push(curList[i]);
  el.className = newList.join(" ");
}

function getPageOffsetLeft(el) {

  var x;

  // Return the x coordinate of an element relative to the page.

  x = el.offsetLeft;
  if (el.offsetParent != null)
    x += getPageOffsetLeft(el.offsetParent);

  return x;
}

function getPageOffsetTop(el) {

  var y;

  // Return the x coordinate of an element relative to the page.

  y = el.offsetTop;
  if (el.offsetParent != null)
    y += getPageOffsetTop(el.offsetParent);

  return y;
}


//----------------------------------------------------------------------------
// APPENDED Code - August 10, 07
//----------------------------------------------------------------------------


function menuItemMouseover(event, menuId) {
 var item, menu, x, y;

 // Find the target item element and its parent menu element.

 if (browser.isIE)
 item = getContainerWith(window.event.srcElement, "A", "menuItem");
 else
 item = event.currentTarget;
 menu = getContainerWith(item, "DIV", "menu");

 // Close any active sub menu and mark this one as active.

 if (menu.activeItem != null)
 closeSubMenu(menu);
 menu.activeItem = item;

 // Highlight the item element.

 item.className += " menuItemHighlight";

 // Initialize the sub menu, if not already done.

 if (item.subMenu == null) {
 item.subMenu = document.getElementById(menuId);
 if (item.subMenu.isInitialized == null)
 menuInit(item.subMenu);
 }

 // [MODIFIED] Added for activate/deactivate on mouseover.

 // Set mouseout event handler for the sub menu, if not already done.

 if (item.subMenu.onmouseout == null)
 item.subMenu.onmouseout = buttonOrMenuMouseout;

 // [END MODIFIED]

 // Get position for submenu based on the menu item.

 x = getPageOffsetLeft(item) + item.offsetWidth;
 y = getPageOffsetTop(item);

 // Adjust position to fit in view.

 var maxX, maxY;

 if (browser.isIE) {
 maxX = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) +
 (document.documentElement.clientWidth != 0 ? document.documentElement.clientWidth : document.body.clientWidth);
 maxY = Math.max(document.documentElement.scrollTop, document.body.scrollTop) +
 (document.documentElement.clientHeight != 0 ? document.documentElement.clientHeight : document.body.clientHeight);
 }
 if (browser.isOP) {
 maxX = document.documentElement.scrollLeft + window.innerWidth;
 maxY = document.documentElement.scrollTop + window.innerHeight;
 }
 if (browser.isNS) {
 maxX = window.scrollX + window.innerWidth;
 maxY = window.scrollY + window.innerHeight;
 }
 maxX -= item.subMenu.offsetWidth;
 maxY -= item.subMenu.offsetHeight;

 if (x > maxX)
 x = Math.max(0, x - item.offsetWidth - item.subMenu.offsetWidth
 + (menu.offsetWidth - item.offsetWidth));
 y = Math.max(0, Math.min(y, maxY));

 // Position and show the sub menu.

 item.subMenu.style.left = x + "px";
 item.subMenu.style.top = y + "px";
 item.subMenu.style.visibility = "visible";

 // For IE; size, position and display the menu's IFRAME as well.

 if (item.subMenu.iframeEl != null)
 {
 item.subMenu.iframeEl.style.left = item.subMenu.style.left;
 item.subMenu.iframeEl.style.top = item.subMenu.style.top;
 item.subMenu.iframeEl.style.width = item.subMenu.offsetWidth + "px";
 item.subMenu.iframeEl.style.height = item.subMenu.offsetHeight + "px";
 item.subMenu.iframeEl.style.display = "";
 }

 // Stop the event from bubbling.

 if (browser.isIE)
 window.event.cancelBubble = true;
 else
 event.stopPropagation();
}
