$(document).ready(
	function(){
		$('.portfolio').innerfade({
			speed: 1000,
			timeout: 15000,
			type: 'sequence',
			containerheight: '227px'
		});
	});
	
	function runfeeds(jsonPath, divID, loading, showPosted)
	{
	    $(document).ready(function() {
	        loadJson = function() {
	            $.getJSON(jsonPath, function(json) {
	                $("#" + loading).fadeOut(10).remove();

	                $.each(json, function(i, item) {
	                    link = $("<a></a>").attr("href", item.Link).html(item.Text).css("display", "none");
	                    link.addClass("jsonBlogPost");
	                    listItem = $("<li></li>").html(link);
	                    if (item.ImageAlt != null && item.ImageAlt != "" && showPosted)
	                    {
	                        span = $(" <span></span>").addClass("posted").html("&nbsp;" + item.ImageAlt);
	                        listItem.append(span);
	                    }
	                    listItem.appendTo("#" + divID);
	                });
	                //fade all posts in
	                $(".jsonBlogPost").fadeIn(10);
	            });
	        };
	        setTimeout(loadJson, 10);
	    });                           
	}