$(document).ready(function () {
	// Accordian
	function initMenu() {
	//set variable for links
	var $headingLinks = $('h2.accordian-title');
	$('div.accordion-panel').hide();//.filter(':first').show();
	//$($headingLinks).eq(0).addClass('open');
	$($headingLinks).click( function() {
		$($headingLinks).removeClass('open').filter($(this).addClass('open')); 	   
		var checkElement = $(this).next();
		if((checkElement.is('div')) && (checkElement.is(':visible'))) {
			return false;
   }
		if((checkElement.is('div')) && (!checkElement.is(':visible'))) {
			$('div.accordion-panel:visible').slideUp('normal');
			checkElement.slideDown('normal');
			$(this).addClass('open');
			return false;
			}
		}
	);
}
initMenu();
//remove the border from the last case study
	$('#sub #content-right .case-study-list:last').css({'borderBottom':'none', 'margin-bottom':'0px', 'padding-bottom':'0px'});
});
