// JavaScript Document
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	  
	xmlhttp.open("GET","../../blog/rss.xml",false);
	xmlhttp.send();
	xmlDoc=xmlhttp.responseXML; 
	
var	blog_items = xmlDoc.getElementsByTagName("item");
var blog_title = xmlDoc.getElementsByTagName("title")[0].childNodes[0].nodeValue;
var blog_link = xmlDoc.getElementsByTagName("link")[0].childNodes[0].nodeValue;
//var blog_desc = xmlDoc.getElementsByTagName("description")[0].childNodes[0].nodeValue;

var max_items = 4;



	document.write("<h2 class='rss-feed-title'><a href='" + blog_link + "'>" + blog_title + "</a></h2>");

	for(var i=0; i<max_items; i++){
		document.write("<div class='rss-item'>"); //OPEN rss-item
		document.write("<h3 class='rss-title'><a href='" + blog_items[i].getElementsByTagName("link")[0].childNodes[0].nodeValue + "'>");
		document.write(blog_items[i].getElementsByTagName("title")[0].childNodes[0].nodeValue);
		document.write("</a></h3>");
		
		document.write("<div class='rss-date'>" + blog_items[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue + "</div>");
		document.write("<div class='rss-author'>by: " + blog_items[i].getElementsByTagName("dc:creator")[0].childNodes[0].nodeValue + "</div>");
		
		document.write("<div class='rss-description'>");
		/*if(blog_items[i].getElementsByTagName("description")[0].childNodes[0].length < 144)				//Make Exerpt less than 144 char
			document.write(blog_items[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
		else{
			exerpt = blog_items[i].getElementsByTagName("description")[0].childNodes[0].nodeValue.slice(0,144);
			document.write(exerpt);
			document.write("<div class='rss-read-more-tag'><a href='" + blog_items[i].getElementsByTagName("link")[0].childNodes[0].nodeValue + "'>Click to read more...</a></div>");	
		}*/
		document.write(blog_items[i].getElementsByTagName("description")[0].childNodes[0].nodeValue);
		document.write("<div class='rss-read-more-tag'><a href='" + blog_items[i].getElementsByTagName("link")[0].childNodes[0].nodeValue + "'>Click to read more...</a></div>");
		
		document.write("</div>");
		document.write("</div>");

	}
