 if (/msie/i.test (navigator.userAgent)) //only override IE 
 { 
         document.nativeGetElementById = document.getElementById; 
         document.getElementById = function(id) 
         { 
          var elem = document.nativeGetElementById(id); 
          if(elem) 
          { 
           //make sure that it is a valid match on id 
           if(elem.attributes['id'].value == id) 
           { 
            return elem; 
           } 
           else 
           { 
            //otherwise find the correct element 
            for(var i=1;i<document.all[id].length;i++) 
            { 
             if(document.all[id][i].attributes['id'].value == id) 
             { 
              return document.all[id][i]; 
             } 
            } 
           } 
          } 
          return null; 
         }; 
 }
 
 function buildCache() 
 { 
        cache = new Array(); 
        for (var c = 0; c != 1000; c++) 
         cache[c] = document.getElementById ('ID' + c); 
 } 

 function nodeById(id) 
 { 
         return cache[id] ? cache[id] : cache[id] = document.getElementById(id); 
 }
 
//when the dom is ready...
window.addEvent('domready', function() {
	
	$('dropmenu').addEvents({
			'click': function(){
				$('dropmenu').addClass('drophover');
				$('droplinks').fade('in'); 
			},
			'mouseleave': function() {
				$('dropmenu').removeClass('drophover');
				$('droplinks').fade('out');
			}
		});
	
});
