var gJournalVars = {
        jnlID: 'fetalneonatal',
        copy: 'British Medical Journal',
	isn: '1359-2998'
};

// label free sections on toc page
$(document).ready(function() {

	var matchParams = /#(fantoms)/g;

    $('div.jumplinks li a').filter(function() {return $(this).attr('href').toLowerCase().match(matchParams);}).each(
         function() {
	        /* display FREE in section link */
		$(this).after('<span class="free-section-indicator">FREE</span>');
		/* display FREE in sections' citation view list */
		/* need to put in this check so 'FREE' won't be added twice */
		if (!($('div.pub-section-' + $(this).attr('href').replace('#','') + ' .cit-views li:last-child').hasClass('free-section-indicator')))
		{
			$('div.pub-section-' + $(this).attr('href').replace('#','') + ' .cit-views li:last-child').after('<li class="free-section-indicator">FREE</li>');
		}
	});
});
				

