google.load("feeds", "1");
	function initialize() {
		var attributes = ["comments","title", "link", "publishedDate", "author"]; 
		//contentSnippet = description
		var feed = new google.feeds.Feed("http://www.logosquotes.org/rss_en.xml");
			feed.setNumEntries(1);
			
			
			
		feed.load(function(result) {
			if (!result.error) {
				var container = document.getElementById("feed");
				for (var i = 0; i < result.feed.entries.length; i++) {
					var entry = result.feed.entries[i];
					var div = document.createElement("div");
					var span = document.createElement('span');
					var link = document.createElement('a');
					link.setAttribute('href', entry.link);
					link.appendChild(document.createTextNode(entry.title));					
					var em = document.createElement('em');
					var em2 = document.createElement('em');
					
					var p = document.createElement('p');
					var link2 = document.createElement('a');
					link2.setAttribute('href', 'http://www.logosquotes.org');
					link2.appendChild(document.createTextNode("Logos Quotes"));	
					

					var name = entry.author;
					var frase = entry.title;
				

						//Se volete impostare il nome di una classe per lo stile usate:
						//div.setAttribute((document.all ? 'className' : 'class'), 'rosso');
						//Questo perch FF e IE utilizzano un metodo diverso per farlo...
							//div.setAttribute((document.all ? 'className' : 'class'), 'logos-quotes');
						div.style.cssText = 'color:#003; margin: 20px 2px 5px 2px';
						span.style.cssText = 'color:#777; font-size:11px; font-weight: bold;';
						link.style.cssText = 'font-weight: normal; color: #000;';
						p.style.cssText = 'text-align: right; padding:2px; background: #f5f5f5; margin-top:5px;';
						link2.style.cssText = 'font-size: 12px; color: #C20000;';
						


						div.appendChild(link);

						x = frase.indexOf(name);
						if(x== -1){
							div.appendChild(span);
							span.appendChild(document.createTextNode(' - '+ name));
						}
					
						
						container.appendChild(div);
					div.appendChild(p);
					p.appendChild(link2);

				}
			}
		});
	}
	google.setOnLoadCallback(initialize);

