$('html').addClass('js-fouc');

$(document).ready(function(){
	$('#extras .general-container').css({'display':'none'});
	$('#extras .expandable-header a').wrap('<div class="arrow"></div>');
	$('#extras .expandable-header a').toggle(function() {
	$(this).parents('.expandable-header').next('.general-container').slideDown(1000).animate({opacity:1},300);
	$(this).children("span").addClass("opened");
	$(this).parent('div').removeClass('arrow').addClass('arrow-down');
	 }, function() {
	$(this).parents('.expandable-header').next('.general-container').slideUp(1000);
	$(this).children("span").removeClass("opened");
	$(this).parent('div').removeClass('arrow-down').addClass('arrow');
	});
}); 


$(document).ready(function(){
	$('.multiple-extras .general-container').css({'display':'none'});
	$('.multiple-extras .expandable-header a').wrap('<div class="arrow"></div>');
	$('.multiple-extras .expandable-header a').toggle(function() {
	$(this).parents('.expandable-header').next('.general-container').slideDown(1000).animate({opacity:1},300);
	$(this).children("span").addClass("opened");
	$(this).parent('div').removeClass('arrow').addClass('arrow-down');
	 }, function() {
	$(this).parents('.expandable-header').next('.general-container').slideUp(1000);
	$(this).children("span").removeClass("opened");
	$(this).parent('div').removeClass('arrow-down').addClass('arrow');
	});
}); 

/*
Moved to tariffSharedAllowances.jsp

$(document).ready(function() {
$("a").tooltip({
	bodyHandler: function() {
		return $($(this).attr("href")).html();
	},
	showURL: false,
	extraClass: "panel corner"
});
});*/	