// WordPress Featured Posts(function($) {    $.fn.wpFeatured = function(options) {		var opts = $.extend({}, $.fn.wpFeatured.defaults, options);		var wrapper =  opts.featuredWrapper;		var ajaxcount =  opts.ajaxCount;    		var offset = 0;				var new_prev = opts.prev.replace(/\./g, "");		var new_next = opts.next.replace(/\./g, "");				// Add Links for wpFeatured		$('#content').append('<a href="JavaScript:void(0);" class="'+new_prev+'">Previous</a> <a href="JavaScript:void(0);" class="'+new_next+'">Next</a>');		// Show The Posts		var show_next = function (offset) {		  $(wrapper).fadeOut(1);      $(wrapper).load(opts.url+'?offset='+offset);      $(wrapper).fadeIn(600);		}		    // Previous Post		$(opts.prev).click(function(){		  if (offset > 0) {         offset--;       } else {        offset = ajaxcount - 1;      }		  show_next(offset);		});				// Next Post		$(opts.next).click(function(){		  if (offset < ajaxcount - 1) {         offset++       } else {        offset = 0;      }		  show_next(offset);		});		  };    // Defualts  $.fn.wpFeatured.defaults = {		featuredWrapper : "#featured-content",		ajaxCount: 1,		prev: ".ajax-prev", 		next: ".ajax-next",		url: 'featured-loop.php'	};})(jQuery);