	$(document).ready(function(){
		for (var d=0; d < dropdownmenus.length; d++) {
			
			$("#ddm"+d+" .supersection_img").css('background-image', "url("+dropdownmenus[d]['img']+")");
          
          $("#ddm"+d).hoverIntent({				sensitivity: 7, // number = sensitivity threshold (must be 1 or higher)
				interval: 50,   // number = milliseconds of polling interval				
				over: function() {
					$('#flash_fade').show();
					$('#flash_show').css('left', '-2000px');
					$("a.menu_item", this).addClass("active");	
					$(".section_l2_container", this).slideDown("slow");
					$(".supersection_img", this).slideDown("slow");				},
				timeout: 200,   // number = milliseconds delay before onMouseOut function call	
					out: function() {
					$('#flash_fade').hide();
					$('#flash_show').css('left', '0px');
					$("a.menu_item", this).removeClass("active");
					$(".section_l2_container", this).slideUp("fast");						
					$(".supersection_img", this).slideUp("fast");				
					}
			});
            
/*			$("#ddm"+d).hover(
				function(){ 
					$('#flash_fade').show();
					$('#flash_show').css('left', '-2000px');
					$("a.menu_item", this).addClass("active");
					$(".section_l2_container", this).slideDown("slow");
					$(".supersection_img", this).slideDown("slow");
				}, 
				function() {
					$('#flash_fade').hide();
					$('#flash_show').css('left', '0px');
					$("a.menu_item", this).removeClass("active");						
					$(".section_l2_container", this).slideUp("fast");						
					$(".supersection_img", this).slideUp("fast");
				}); 
				
*/
			for (l2 in dropdownmenus[d]['links']) {
				if (dropdownmenus[d]['links'][l2]['links']) {
					$('.section_l2_item_container').hover(
						function(){ 
							$("a.section_l2_item", this).addClass("subactive");
							$(".section_l3_container,.section_l3_container_last", this).show();
						}, 
						function() {
							$("a.section_l2_item", this).removeClass("subactive");						
							$(".section_l3_container,.section_l3_container_last", this).hide();	
						}); 
				}
			}

		} // end for dropdownmenus
	});
