

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1 Crystal
var crystal=new Array()
crystal[0]='<a href="lightfixtures/aim-glow.htm">Glow</a>'
crystal[1]='<a href="lightfixtures/aim-wilshire.htm">Wilshire</a>'

//Contents for menu 3 Sconces and Bath
var bath=new Array()
bath[0]='<a href="lightfixtures/aim-capital.htm">Capital</a>'
bath[1]='<a href="lightfixtures/aim-dolandesigns.htm">Dolan Designs</a>'
bath[2]='<a href="lightfixtures/aim-forte.htm">Forte</a>'
bath[3]='<a href="lightfixtures/aim-golden.htm">Golden</a>'
bath[4]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
bath[5]='<a href="lightfixtures/aim-maxim.htm">Maxim</a>'
bath[6]='<a href="lightfixtures/aim-ram.htm">R.A.M.</a>'
bath[7]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
bath[8]='<a href="lightfixtures/aim-troy.htm">Troy</a>'
bath[9]='<a href="lightfixtures/aim-livex.htm">Livex</a>'
bath[10]='<a href="lightfixtures/aim-jeremiah.htm">Jeremiah</a>'	

//Contents for menu 3 Chandeliers
var chandelier=new Array()
chandelier[0]='<a href="lightfixtures/aim-capital.htm">Capital</a>'
chandelier[1]='<a href="lightfixtures/aim-dolandesigns.htm">Dolan Designs</a>'
chandelier[2]='<a href="lightfixtures/aim-forte.htm">Forte</a>'
chandelier[3]='<a href="lightfixtures/aim-golden.htm">Golden</a>'
chandelier[4]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
chandelier[5]='<a href="lightfixtures/aim-maxim.htm">Maxim</a>'
chandelier[6]='<a href="lightfixtures/aim-ram.htm">R.A.M.</a>'
chandelier[7]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
chandelier[8]='<a href="lightfixtures/aim-troy.htm">Troy</a>'
chandelier[9]='<a href="lightfixtures/aim-jeremiah.htm">Jeremiah</a>'

//Contents for menu 5 Pendant and Hall/foyer and close to ceiling
var pendant=new Array()
pendant[0]='<a href="lightfixtures/aim-capital.htm">Capital</a>'
pendant[1]='<a href="lightfixtures/aim-dolandesigns.htm">Dolan Designs</a>'
pendant[2]='<a href="lightfixtures/aim-forte.htm">Forte</a>'
pendant[3]='<a href="lightfixtures/aim-golden.htm">Golden</a>'
pendant[4]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
pendant[5]='<a href="lightfixtures/aim-maxim.htm">Maxim</a>'
pendant[6]='<a href="lightfixtures/aim-ram.htm">R.A.M.</a>'
pendant[7]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
pendant[8]='<a href="lightfixtures/aim-troy.htm">Troy</a>'
pendant[9]='<a href="lightfixtures/aim-livex.htm">Livex</a>'
pendant[10]='<a href="lightfixtures/aim-jeremiah.htm">Jeremiah</a>'

//Contents for outdoor menu
var outdoor=new Array()
outdoor[0]='<a href="lightfixtures/aim-capital.htm">Capital</a>'
outdoor[1]='<a href="lightfixtures/aim-dolandesigns.htm">Dolan Designs</a>'
outdoor[2]='<a href="lightfixtures/aim-forte.htm">Forte</a>'
outdoor[3]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
outdoor[4]='<a href="lightfixtures/aim-maxim.htm">Maxim</a>'
outdoor[5]='<a href="lightfixtures/aim-ram.htm">R.A.M.</a>'
outdoor[6]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
outdoor[7]='<a href="lightfixtures/aim-troy.htm">Troy</a>'
outdoor[8]='<a href="lightfixtures/aim-jeremiah.htm">Jeremiah</a>'
outdoor[9]='<a href="lightfixtures/aim-hanover.htm">Hanover</a>'
outdoor[10]='<a href="lightfixtures/aim-lithonia.htm">Lithonia</a>'

//Contents for menu Landscape
var landscape=new Array()
landscape[0]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
landscape[1]='<a href="lightfixtures/aim-hanover.htm">Hanover</a>'
landscape[2]='<a href="lightfixtures/aim-lithonia.htm">Lithonia</a>'
landscape[3]='<a href="lightfixtures/aim-craftmade.htm">Craftmade</a>'

//Contents for menu 5 ceiling fans
var fan=new Array()

fan[0]='<a href="lightfixtures/aim-golden.htm">Golden</a>'
fan[1]='<a href="lightfixtures/aim-emerson.htm">Emerson</a>'
fan[2]='<a href="lightfixtures/aim-tommy.htm">Tommy Bahama</a>'
fan[3]='<a href="lightfixtures/aim-craftmade.htm">Craftmade</a>'
fan[4]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
fan[5]='<a href="lightfixtures/aim-fanimation.htm">Fanimation</a>'

//Contents for menu 5 ceiling fankit
var fankit=new Array()
fankit[0]='<a href="lightfixtures/aim-emerson.htm">Emerson</a>'
fankit[1]='<a href="lightfixtures/aim-craftmade.htm">Craftmade</a>'
fankit[2]='<a href="lightfixtures/aim-fanimation.htm">Fanimation</a>'

//Contents for Track Lighting and Under Cabinet
var track=new Array()
track[0]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
track[1]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
track[2]='<a href="lightfixtures/aim-lithonia.htm">Lithonia</a>'

//Contents for Recessed Lighting
var recessed=new Array()
recessed[0]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
recessed[1]='<a href="lightfixtures/aim-lithonia.htm">Lithonia</a>'

//Contents for Track Lighting and Under Cabinet
var fluorescent=new Array()
fluorescent[0]='<a href="lightfixtures/aim-kalco.htm">Kalco</a>'
fluorescent[1]='<a href="lightfixtures/aim-seagull.htm">Sea Gull</a>'
fluorescent[2]='<a href="lightfixtures/aim-lithonia.htm">Lithonia</a>'
fluorescent[3]='<a href="lightfixtures/aim-et2.htm">ET2</a>'

//Contents for menu 5 ceiling medallian
var medallian=new Array()
medallian[0]='<a href="lightfixtures/aim-arctel.htm">Arctel</a>'
medallian[1]='<a href="lightfixtures/aim-century.htm">Century</a>'

//Contents for light lift
var lift=new Array()
lift[0]='<a href="lightfixtures/aim-aladdin.htm">Aladdin Light Lift</a>'






var menuwidth='165px' //default menu width
var menubgcolor='#eaf2f7'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
-->