// Based on http://812studio.com/Development/initialLetter-1.0/initialLetter.html

// Select first letter

(function ($) {
	$.fn.initialLetter = function (options) {
	var $options = $.extend({}, $.fn.initialLetter.defaults, options);
	return this.each(function () {

		var $initialLetter = $options.initialLetter,
			// $content = $(this).html().toLowerCase();
			$content = $(this).html();
			//$content = $(this).html().toLowerCase().replace(/(^\s*\w|[\.\!\?]\s*\w)/g,function(c){return c.toUpperCase()});

		$(this).html($content.replace(/^([A-Za-z0-9])/g, '<span class="cap cap$1">$1</span>'));
		
	});
};

}
(jQuery));

jQuery(function($){
	$('.content p:eq(0)').initialLetter();
	$('article.c p:eq(0)').initialLetter();
});


/*
$(document).ready(function(){

	// Toggles
	
	//Hide (Collapse) the toggle containers on load
	$("#pre_header").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".io").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$(".io").click(function(){
		$(this).next("#pre_header").slideToggle("medium");
	});


});
*/


