jQuery(document).ready(function(){});  //needed because FF is stupid

function newQuote(categories, linkphrase, id, strayurl, multi, offset, sequence, timer, disableaspect, loading, contributor){
	
	jQuery(document).ready
	(
		function($){
			
				var divheight = $("div.stray_quote-" + id).height();
				$("div.stray_quote-" + id).height( divheight );
				$("div.stray_quote-" + id).css('height', divheight);
				$("div.stray_quote-" + id).fadeOut('slow', function () {
																												 
					$.ajax({
							type: "POST",
							url: strayurl + "inc/stray_ajax.php",
							data: "action=newquote&categories=" + categories + "&sequence=" + sequence + "&linkphrase=" + linkphrase + "&widgetid=" + id + "&multi=" + multi + "&offset=" + offset + "&disableaspect=" + disableaspect + "&timer=" + timer + "&contributor=" + contributor,
							success: function(html){
								$("div.stray_quote-" + id).css('height', null);
								$("div.stray_quote-" + id).css('padding-top', null);
								$("div.stray_quote-" + id).replaceWith(html);
								$("div.stray_quote-" + id).hide().fadeIn('slow');
							}
					});
			  });
				
		}
	)
}
