$(document).ready(function(){
	/* Featured Post controls */
	/*
	$('div#featured-post div.post-full').hide();
	$('div#featured-post div.post-excerpt a.continue-reading').click(function(){
		$('div#featured-post div.post-full').slideDown('');
		$('div#featured-post div.post-excerpt').hide();
		return false;
	});
	$('div#featured-post div.post-full a.collapse-post').click(function(){
		$('div#featured-post div.post-full').slideUp();
		$('div#featured-post div.post-excerpt').show();
		return false;
	});
	*/
	/* Carousel */
	$("div#feature-carousel div.carousel").jCarouselLite({
	        btnNext: "#carousel-next",
	        btnPrev: "#carousel-prev",
			start: 0,
			visible: 4,
			scroll: 4
	    });
	$("div#feature-carousel li:first-child").addClass('fc-first');
	/* Popup windows */
	$("a.popupwindow").popupwindow();
	/* Make Gigpress more style-able */
	$("div#gigpress ul.gigpress-listing li.vevent").each(function(i){
		var htmlStr = $(this).html();
		$(this).html(htmlStr.replace(/ at <span class="location">(.*?)<\/span>/ig, ""));
	});
});