jQuery(document).ready(function()
{	
	
	
	// INITIALIZE DROPDOWN MENU
	jQuery('.dd-menu li:has(ul) > a').addClass('dd-submenu-title').append('<span class="dd-arrow"></span>');	
	jQuery('.dd-menu li').hover(function(){	
			// HOVER IN HANDLER
	
			jQuery('ul:first', this).css({visibility: "visible",display: "none"}).slideDown(250);									
			var path_set = jQuery(this).parents('.dd-menu li').find('a:first');
			jQuery(path_set).addClass('dd-path');						
			jQuery('.dd-menu li a.dd-path').not(path_set).removeClass('dd-path');
			
		},function(){			
			// HOVER OUT HANDLER
		
			jQuery('ul:first', this).css({visibility: "hidden"});			
	});
	jQuery('.dd-menu').hover(function() {
			// HOVER IN HANDLER
			
		}, function() {			
			// HOVER OUT HANDLER
		
			jQuery('a.dd-path', this).removeClass('dd-path');			
	});
	
	
		
	// APPEND SOME EXTRA SPANS TO STYLE FANCY FRAMES CORRECTLY
	jQuery('.frame').append('<span class="helper1"></span><span class="helper2"></span>');
	
		

	// -----------------------------------------------------------------------------------------
	// Internet Explorer doesn't understand some CSS selectors, so we need some helpful classes
	// -----------------------------------------------------------------------------------------
	if(jQuery.browser.msie) {
		
		
		// IE6 doesn't understand :first-child selector
		if(parseInt(jQuery.browser.version) == 6) {			
			jQuery('.grid > div:first-child').addClass('grid-first');
			
			// PNG transparency fix for IE6

			
			
			//DD_belatedPNG.fix(png_fix);
		}
	}
	
	   
});

