$(document).ready(function(){
		
	
	// Accordion - WCM Expandable Widget
	$("#accordion").accordion({ header: "h3", autoHeight: false }) ;
	/*
$("#accordion2").accordion({ header: "h3", autoHeight: false }) ;
	$("#accordion3").accordion({ header: "h3", autoHeight: false }) ;
	$("#accordion4").accordion({ header: "h3", autoHeight: false }) ;
	$("#accordion5").accordion({ header: "h3", autoHeight: false }) ;
	$("#accordion6").accordion({ header: "h3", autoHeight: false }) ;
*/
	// Tabs
	$('#tabs').tabs({ fx: { opacity: 'toggle' } });
	$('#tabs2').tabs({ fx: { opacity: 'toggle' } }); /* Most Popular Tab Widget */
	
	
	$('#wcm_tabs2').tabs({ fx: { opacity: 'toggle' } }); /* Tabs for the WCM Widget */
	
/*
	$('#tabs3').tabs({ fx: { opacity: 'toggle' } });
	$('#tabs4').tabs({ fx: { opacity: 'toggle' } });
*/

	$('#ahatabs').tabs({ fx: { opacity: 'toggle' } });/* 	AHA Home page tabs */


	// Slider - Alert Box 
	$('#slider').slider({
		range: true,
		values: [17, 67]
	});
	
	
	//Funciton to remove borders on the NavWrapper
	$("ul.infoList li:last-child").children("a").children("span").addClass("noBorder");
	$("ul.orgList li:last-child").children("a").children("span").addClass("noBorder").addClass("noPadding");
	//End Navigation	
	$("ol.tablist li:last-child").addClass("noBorder");
	
	$('#whatsnew ol.whatsnewlist li:last-child').addClass('removeBorders');
	
	//ECC Every other li
	$('body.ecc #wrapper .content_wrapper #ahaContentRight div.popular_articles .widget_rightcontainer #tabs2 .ui-tabs-panel .tabdiv ol.tablist li:nth-child(odd)').addClass('odd');

	
});



