var onImgs = new Array(); onImgs['mainnav1'] = new Image(); onImgs['mainnav2'] = new Image(); onImgs['mainnav3'] = new Image(); onImgs['mainnav4'] = new Image(); onImgs['mainnav5'] = new Image(); onImgs['mainnav6'] = new Image(); onImgs['mainnav7'] = new Image(); onImgs['mainnav1'].src = 'http://www.automobileendirect.com/img/fr/menu_top_01_on.gif'; onImgs['mainnav2'].src = 'http://www.automobileendirect.com/img/fr/menu_top_02_on.gif'; onImgs['mainnav3'].src = 'http://www.automobileendirect.com/img/fr/menu_top_03_on.gif'; onImgs['mainnav4'].src = 'http://www.automobileendirect.com/img/fr/menu_top_04_on.gif'; onImgs['mainnav5'].src = 'http://www.automobileendirect.com/img/fr/menu_top_05_on.gif'; onImgs['mainnav6'].src = 'http://www.automobileendirect.com/img/fr/menu_top_06_on.gif'; onImgs['mainnav7'].src = 'http://www.automobileendirect.com/img/fr/menu_top_07_on.gif'; function imgOn(imgName){ if (document.images){ document.images[imgName].style.cursor = 'pointer'; document.images[imgName].src = onImgs[imgName].src; } } var offImgs = new Array(); offImgs['mainnav1'] = new Image(); offImgs['mainnav2'] = new Image(); offImgs['mainnav3'] = new Image(); offImgs['mainnav4'] = new Image(); offImgs['mainnav5'] = new Image(); offImgs['mainnav6'] = new Image(); offImgs['mainnav7'] = new Image(); offImgs['mainnav1'].src = 'http://www.automobileendirect.com/img/fr/menu_top_01.gif'; offImgs['mainnav2'].src = 'http://www.automobileendirect.com/img/fr/menu_top_02.gif'; offImgs['mainnav3'].src = 'http://www.automobileendirect.com/img/fr/menu_top_03.gif'; offImgs['mainnav4'].src = 'http://www.automobileendirect.com/img/fr/menu_top_04.gif'; offImgs['mainnav5'].src = 'http://www.automobileendirect.com/img/fr/menu_top_05.gif'; offImgs['mainnav6'].src = 'http://www.automobileendirect.com/img/fr/menu_top_06.gif'; offImgs['mainnav7'].src = 'http://www.automobileendirect.com/img/fr/menu_top_07.gif'; function imgOff(imgName){ if (document.images){ document.images[imgName].style.cursor = 'pointer'; document.images[imgName].src = offImgs[imgName].src; } } startList = function(){ navRoot = document.getElementById('mainnav'); for (i = 0; i < navRoot.childNodes.length; i++){ var node = navRoot.childNodes[i]; if (node.nodeName == "LI"){ node.onmouseover=function(){ this.className += " over"; } node.onmouseout=function(){ this.className = this.className.replace(" over", ""); } } } } if(document.all){ startList(); }