// rollOver script var roAgent = navigator.userAgent; var roSupport = (roAgent.indexOf("a/3", 6) + roAgent.indexOf("a/4", 6) + roAgent.indexOf("a/5", 6) < 0) ? (0) : (1); if (1 == roSupport) { // rollOver images var roImage = new Array(); roImage['ie'] = new Image(); roImage['ie'].src = 'styles/t/ie.gif'; roImage['te'] = new Image(); roImage['te'].src = 'styles/t/trailer.gif'; roImage['id'] = new Image(); roImage['id'].src = 'styles/t/id.gif'; roImage['ig'] = new Image(); roImage['ig'].src = 'styles/t/ig.gif'; roImage['im'] = new Image(); roImage['im'].src = 'styles/t/im.gif'; roImage['ip'] = new Image(); roImage['ip'].src = 'styles/t/ip.gif'; roImage['is'] = new Image(); roImage['is'].src = 'styles/t/is.gif'; roImage['iw'] = new Image(); roImage['iw'].src = 'styles/t/iw.gif'; roImage['td'] = new Image(); roImage['td'].src = 'styles/trailer/d.gif'; roImage['tg'] = new Image(); roImage['tg'].src = 'styles/trailer/g.gif'; roImage['tm'] = new Image(); roImage['tm'].src = 'styles/trailer/m.gif'; roImage['tp'] = new Image(); roImage['tp'].src = 'styles/trailer/p.gif'; roImage['ts'] = new Image(); roImage['ts'].src = 'styles/trailer/s.gif'; roImage['tw'] = new Image(); roImage['tw'].src = 'styles/trailer/w.gif'; } // if function roSwap(htmlName, imgId) { if (1 == roSupport) { document.images[htmlName].src = roImage[imgId].src; } // if } // roSwap()