var timeout	= 10000;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 

function listThem(companynumber) {

switch (companynumber) 
{
case 0:break;
case 1:openABSLighting();break;
case 2:openAirey();break;
case 3:openAladdin();break;
case 4:openAFCWeb();break;
case 5:openAmericanGlass();break;
case 6:openAmericanLouver();break;
case 7:openALS();break;
case 8:openArdee();break;
case 9:openBaseLite();break;
case 10:openBeacon();break;
case 11:openBetaCalco();break;
case 12:openBodine();break;
case 13:openBruck();break;
case 14:openCanlet();break;
case 15:openCelestial();break;
case 16:openCFGDesign();break;
case 17:openCole();break;
case 18:openDaltor();break;
case 19:openDavis();break;
case 20:openDouglas();break;
case 21:openEPL();break;
case 22:openEdion();break;
case 23:openFineLite();break;
case 24:openGeneral();break;
case 25:openHanover();break;
case 26:openHapco();break;
case 27:openIndust();break;
case 28:openInsight();break;
case 29:openKenall();break;
case 30:openLamar();break;
case 31:openLiteLab();break;
case 32:openLightAlarms();break;
case 33:openLightOneInc();break;
case 34:openLumid();break;
case 35:openLumux();break;
case 36:openMcFadden();break;
case 37:openParamount();break;
case 38:openRae();break;
case 39:openSistemalux();break;
case 40:openSpectrum();break;
case 41:openSQ1PL();break;
case 42:openTrend();break;
case 43:openUSAIllumination();break;
case 44:openVantage();break;
case 45:openVenture();break;
case 46:openVisio();break;
case 47:openVision();break;
case 48:openVolume();break;
case 49:openWila();break;
case 100:openCamman();break;
case 101:openCavawood();break;
case 103:openNorthstar();break;
case 104:openPhillips();break;
case 105:openSheridan();break;
case 106:openTFI();break;
case 107:openWJM();break;
default:break;
}
}

function listTheme(companynumber) {

switch (companynumber) 
{
case 0:break;
case 1:openHubbell();break;
case 2:openAAL();break;
case 3:openAlera();break;
case 4:openColumbia();break;
case 5:openDualLite();break;
case 6:openKim();break;
case 7:openPrescolite();break;
case 8:openSpaulding();break;
case 9:openSports();break;
case 10:openSecurity();break;
case 11:openSterner();break;
case 100:openHubbellOutdoor();break;
case 101:openHubbellIndustrial();break;
default:break;
}

}



function load1(form) {
     var url = form.Llist_1.options[form.Llist_1.selectedIndex].value;
     if (url != '') location.href = url;
     return false;
}

function changeDescription(descriptionText,chooser) {

if (chooser == 1) document.getElementById('description1').innerHTML = (descriptionText);
else if (chooser == 2) document.getElementById('description2').innerHTML = (descriptionText);

}

function openABSLighting() {
  popupWin = window.open('http://www.abslighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAAL() {
  popupWin = window.open('http://www.aal.net',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAirey() {
  popupWin = window.open('http://www.airey-thompson.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAladdin() {
  popupWin = window.open('http://www.aladdinlightlift.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAFCWeb() {
  popupWin = window.open('http://www.afcweb.com/acs',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAmericanGlass() {
  popupWin = window.open('http://www.americanglasslight.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAmericanLouver() {
  popupWin = window.open('http://www.americanlouver.com/ALC/index.asp',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openALS() {
  popupWin = window.open('http://www.alslights.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openArdee() {
  popupWin = window.open('http://www.ardeelighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openBaseLite() {
  popupWin = window.open('http://www.baselite.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openBeacon() {
  popupWin = window.open('http://www.beaconproducts.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openBetaCalco() {
  popupWin = window.open('http://www.betacalco.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openBodine() {
  popupWin = window.open('http://www.bodine.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openBruck() {
  popupWin = window.open('http://www.brucklighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openCanlet() {
  popupWin = window.open('http://www.canlet.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openCelestial() {
  popupWin = window.open('http://www.celestiallighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openCFGDesign() {
  popupWin = window.open('http://www.cgfdesigninc.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openCole() {
  popupWin = window.open('http://www.colelighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openDaltor() {
  popupWin = window.open('http://www.daltor.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openDavis() {
  popupWin = window.open('http://www.davismuller.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openDouglas() {
  popupWin = window.open('http://www.douglaslightingcontrol.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openEPL() {
  popupWin = window.open('http://www.epl.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openEdion() {
  popupWin = window.open('http://www.edionline.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openFineLite() {
  popupWin = window.open('http://www.finelite.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openGeneral() {
  popupWin = window.open('http://www.generalstructuresinc.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openHanover() {
  popupWin = window.open('http://www.hanoverlantern.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openHapco() {
  popupWin = window.open('http://www.hapco.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openInsight() {
  popupWin = window.open('http://www.insightlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openKenall() {
  popupWin = window.open('http://www.kenall.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLiteLab() {
  popupWin = window.open('http://www.litelab.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLightAlarms() {
  popupWin = window.open('http://www.lightalarms.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLightOneInc() {
  popupWin = window.open('http://www.lightoneinc.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLumid() {
  popupWin = window.open('http://www.lumid.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLumux() {
  popupWin = window.open('http://lumux.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openMcFadden() {
  popupWin = window.open('http://www.mcfaddenlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openParamount() {
  popupWin = window.open('http://www.paramountlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSpaulding() {
  popupWin = window.open('http://www.spauldinglighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openRae() {
  popupWin = window.open('http://www.raelighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openTMS() {
  popupWin = window.open('http://www.tmslighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSistemalux() {
  popupWin = window.open('http://www.sistemalux.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSQ1PL() {
  popupWin = window.open('http://www.sq1pl.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openTrend() {
  popupWin = window.open('http://www.trendlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openTsao() {
  popupWin = window.open('http://www.tsaolighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openUSAIllumination() {
  popupWin = window.open('http://www.usaillumination.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openVantage() {
  popupWin = window.open('http://www.vantageltg.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openVenture() {
  popupWin = window.open('http://www.venturelighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openVisio() {
  popupWin = window.open('http://www.visiolighting.com/default.php',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openVision() {
  popupWin = window.open('http://www.vision3lighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openVolume() {
  popupWin = window.open('http://www.volumelighting.com/index.htm',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openWila() {
  popupWin = window.open('http://www.wila.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openHubbell() {
  popupWin = window.open('http://www.hubbell-automation.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openAlera() {
  popupWin = window.open('http://www.aleralighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openColumbia() {
  popupWin = window.open('http://www.columbialighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openDualLite() {
  popupWin = window.open('http://www.dual-lite.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openKim() {
  popupWin = window.open('http://www.kimlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openPrescolite() {
  popupWin = window.open('http://www.prescolite.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSports() {
  popupWin = window.open('http://www.sportslighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSecurity() {
  popupWin = window.open('http://www.securitylightingsystems.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSterner() {
  popupWin = window.open('http://www.sternerlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openIndust() {
  popupWin = window.open('http://www.industriallightingproducts.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openLamar() {
  popupWin = window.open('http://www.lamarlighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

function openSpectrum() {
  popupWin = window.open('http://www.speclight.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}

/* new ones */

function openPhillips() {
  popupWin = window.open('http://www.bodine.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openCamman() {
  popupWin = window.open('http://www.cammanindustries.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openCavawood() {
  popupWin = window.open('http://www.cavawood.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openNorthstar() {
  popupWin = window.open('http://www.northstarlightingsite.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openSheridan() {
  popupWin = window.open('http://sheridansys.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openTFI() {
  popupWin = window.open('http://www.tfilighting.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openWJM() {
  popupWin = window.open('http://www.wjmpoles.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openHubbellOutdoor() {
  popupWin = window.open('http://www.hubbelloutdoor.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
function openHubbellIndustrial() {
  popupWin = window.open('http://www.hubbellindustrial.com',
  'open_window',
  'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, left=0, top=0')
}
