$( function() {
	$( '.l .m li' ).hover(
		function() { $( this ).addClass( 'hover' ); },
		function() { $( this ).removeClass( 'hover' ); }
	);
	$( '.l .m li:has(ul)' ).addClass( 'container' ).find( 'ul' ).hide( 'fast' );
	$( '.l .m li:has(ul)' ).mouseover( function() {
		window.clearTimeout( $( this ).data( 'delay' ) );
		$( this ).find( 'ul' ).show( 'fast' );
	} ).mouseout( function() {
		var $me = $( this );
		var delayId = window.setTimeout( function() {
			$me.find( 'ul' ).hide( 'fast' );
		}, 200 );
		$( this ).data( 'delay', delayId );
	} );

	if ( ( window.XMLHttpRequest == undefined ) && ( ActiveXObject != undefined ) ) {
		$( '.photo, .brand-logo' ).pngFix(); 
	}
} );
$( window ).load( function() {
	$( '#h .pm' ).lavaLamp( { fx: 'easeOutBack', speed: 700 } );
} );

