// JavaScript Document
jQuery(document).ready(function() {

	jQuery.each([249, 278, 279, 280, 281, 282, 283, 206], function(index, item_id) { 
		
		jQuery('#menu-item-' + item_id + ' > a').not('.sub-menu li a').attr('href', 'javascript:alert(\'The section is under development.\');');
		
	});
	var menuID = jQuery(".procedures").attr("curSectionID");
	//alert(menuID);
	jQuery(".procedures .page-item-" + menuID).addClass("current-menu-section");
	
	jQuery(".procedures li.current-menu-section ul li a").each(function(index, domEle) {
		jQuery(this).html("<span>" + jQuery(this).html() + "</span>");
	})

	//jQuery('#menu-item-321 .sub-menu').text('');
		
	if (jQuery("#post_name").val() == 'contact' || jQuery("#post_name").val() == 'testimonials') 
	{
		jQuery('.menu-internal-placeholder').hide(); //css('display', 'none');									
		jQuery('#content .content-container').css({width : '933px', padding : '0 30px'});			
		jQuery('#content .w621').css({'width' : '933px'});		
	}
		
	if (jQuery('#category_name').val() == 'speaking-engagements') 
	{
		jQuery('#menu-item-206').addClass("current_page_item");
		jQuery('.menu-internal').hide();
	}


	jQuery('#access .menu-header .menu li:last').addClass("last-item");
	//jQuery('#access .menu-header .menu li:first').addClass("first-item");
	var menuWidth = 0;
	jQuery('#access .menu-header .menu > li').each(function(index) {
		menuWidth = menuWidth + jQuery(this).outerWidth();
	});
	menuWidth = menuWidth;
	menuWidthCorrection = Math.floor((996-menuWidth)/(jQuery('#access .menu-header .menu > li').length-1));
	//alert(menuWidthCorrection);
	jQuery('#access .menu-header .menu > li').each(function(index) {
		jQuery(this).css({'margin-right': menuWidthCorrection - 1 + 'px'});
	});
	jQuery('#access .menu-header .menu > li:last').css({'margin-right': '0px'});
	//jQuery('#access .menu-header .menu').css({'width':menuWidth + 'px'});



	if(jQuery.browser.msie && jQuery.browser.version == '7.0') {
		jQuery('#content .w621 p').css({'margin-top':'0'});
		jQuery('#post-256 .QuoteForpage').css({'width':'530px'});
		
	}
	
	/*if (jQuery('.menu-internal').length == 0) {
		jQuery('.menu-internal').css({
			'display':'block', 
			'position':'absolute',
			'top':jQuery('.content-border').offset().top + 'px',
			'left':jQuery('.content-border').offset().left - 11 + 'px',
			'z-index':'10',
			'float':'left'
		})
		
	}
	//alert(jQuery('.menu-internal').css('z-index'));
	jQuery('#access .menu-header .menu li a').hover(function() {
		//alert (jQuery('#access .menu-header .menu ul').css('z-index'));
		//jQuery('#access .menu-header .menu ul').css('z-index', '2');
		//jQuery('.menu-internal').css('z-index', '1')
	});
	
	
	

*/

//.removeClass("myClass noClass").addClass("yourClass");
	
//	jQuery('#menu-item-309').addClass("current_page_item");
//	jQuery('#menu-item-309').addClass("current_top_item");

});



