     	$(document).ready(function(){
			$.ajax({
				type: "GET",
				url: "quotes.xml",
				dataType: "xml",
				success: function(xml) {
					$(xml).find('site').each(function(){		
						var id = $(this).attr('id');
						var quote = $(this).find('quote').text();
						var who = $(this).find('who').text();					
						$('<div id="title" class="link_'+id+'"></div>').html(quote).appendTo('#quotes');
						$('<div id="author" class="link_'+id+'"></div>').html(who).appendTo('#quotes');	
						$('.link_'+id).wrapAll('<div class="quote" />');				
					});			
				}
			});

		});
		//<![CDATA[ 
		$(window).load(function(){
			function fadeContent() {
  				$("#quotes .quote:hidden:first").fadeIn(500).delay(6000).fadeOut(500, function() {
    			$(this).appendTo($(this).parent());
    			fadeContent();
  				});
			}
		fadeContent();
		});
		//]]> 
