function submenu(menuname) { 

menuslide = setTimeout(function(){ slidemenu(menuname) }, 100);

}

function slidemenu(menuname) { 

$(".submenu#" + menuname).slideToggle('fast')

}

function menustay() { 

clearTimeout(menuslide);

}

$(document).ready(function() { 

	if (post_id) { if (post_id == 5) { 

	$('ul#tabs li').each(function() {

	$(this).mouseover(function() { $('ul#tabs div.overlay.' + $(this).attr('id')).toggle(); });
	$(this).mouseout(function() { $('ul#tabs div.overlay.' + $(this).attr('id')).toggle(); });

 	});
	
	}

	$('.page-item-22 a:not(ul.children a)').attr('href','/about/who/');

	if (post_parent != 22) { $('.page-item-22 ul.children').hide(); } else { $('.page-item-22 a:not(ul.children a)').addClass('current_page_item'); } 
	
	$('.page-item-22 a:not(ul.children a)').click(function() { $('.page-item-22 ul.children').toggle(); } );
	
	
	
	
	$('.page-item-129 a:not(ul.children a)').attr('href','/newsroom/headlines/');

	if ((post_parent != 129) && (is_single != true) && (post_parent != 227)) {
	
	$('.page-item-129 ul.children').hide(); } else { $('.page-item-129 a:not(ul.children a)').addClass('current_page_item'); } 
	
	if (is_single == true) {
	
	if (archive == true) { 
	
	$('li.page-item-225').addClass('current_page_item');
	
	} else { 
	
	$('li.page-item-213').addClass('current_page_item');
	
	}
	
	}
	
	if (post_parent == 227) { 
	
	$('li.page-item-227').addClass('current_page_item');
	
	}
	
	$('.page-item-129 a:not(ul.children a)').click(function() { $('.page-item-129 ul.children').toggle(); } );

	
	
	
	
	$('.page-item-125 a:not(ul.children a)').attr('href','/corporate-programs/247-estores/');

	if (post_parent != 125) { $('.page-item-125 ul.children').hide(); } else { $('.page-item-125 a:not(ul.children a)').addClass('current_page_item'); } 
	
	$('.page-item-125 a:not(ul.children a)').click(function() { $('.page-item-125 ul.children').toggle(); } );
	
	
	
	
	$('.page-item-123 a:not(ul.children a)').attr('href','/corporate-programs/technology/technology-and-systems/');

	if ( (post_parent != 123) && (post_id != 123) ) { $('.page-item-123 ul.children').hide(); } else { $('.page-item-123 a:not(ul.children a)').addClass('current_page_item'); } 
	
	$('.page-item-123 a:not(ul.children a)').click(function() { $('.page-item-123 ul.children').toggle(); } );


	
	// Highlight New Ideas for products
	
	if (is_product == true) {
	
	$('li.page-item-12').addClass('current_page_item');
	
	} }

	});
