
$(function(){
				   
				    $.each(['nav10000','nav10007','nav10012','nav10016','nav10077','nav10021','nav10079','nav10029','nav10074','nav10092'], function (i, val) {
				                   setNavFade(".mainNav", val);
						   });
				   
				   function hoverOver(){
				           thisClass = $(this).attr('id');
						   thisClass = thisClass.replace("nav","");
						   $("#subNav"+thisClass).fadeIn('fast',function(){
						      if (jQuery.browser.msie){
							      $("#subNav"+thisClass).css('filter', 'alpha(opacity=80)'); 
							  }
							  
						   });
		              }		   
				   
				   function hoverOut(){
				          thisClass = $(this).attr('id');
						  thisClass = thisClass.replace("nav","");
  						  $("#subNav" + thisClass).fadeOut('fast');
				      }
					  
					  
				    function setNavFade(parent,thisClass){
						 var config = {    
					             sensitivity: 10, // number = sensitivity threshold (must be 1 or higher)    
								 interval: 100, // number = milliseconds for onMouseOver polling interval    
								 over: hoverOver, // function = onMouseOver callback (REQUIRED)    
								 timeout:0, // number = milliseconds delay before onMouseOut    
								 out: hoverOut // function = onMouseOut callback (REQUIRED)    
				                    };
				                 $(parent + " #" + thisClass).hoverIntent(config); 
				        	  }
							  
         });


