google.load("feeds","1");function initialize(){var feed=new google.feeds.Feed("http://blog.invexdesign.com/feed");feed.load(function(result){if(!result.error){var container=document.getElementById("feed");for(var i=0;i<3;i++){var entry=result.feed.entries[i];var attributes=["title","link","publishedDate","contentSnippet"];var entryDiv=document.createElement("div");var entryClass=document.createAttribute("class");entryClass.value="entry";entryDiv.setAttributeNode(entryClass);var title=document.createElement("h4");var titleLink=document.createElement("a");var href=document.createAttribute("href");href.value=entry[attributes[1]];titleLink.setAttributeNode(href);title.appendChild(titleLink);titleLink.appendChild(document.createTextNode(entry[attributes[0]]));entryDiv.appendChild(title);var temp=entry[attributes[2]];var temp2=temp.slice(8,11);var month="";if(temp2=="Jan"){month="January";}
else if(temp2=="Feb"){month="February";}
else if(temp2=="Mar"){month="March";}
else if(temp2=="Apr"){month="April";}
else if(temp2=="May"){month="May";}
else if(temp2=="Jun"){month="June";}
else if(temp2=="Jul"){month="July";}
else if(temp2=="Aug"){month="August";}
else if(temp2=="Sep"){month="September";}
else if(temp2=="Oct"){month="October";}
else if(temp2=="Nov"){month="November";}
else if(temp2=="Dec"){month="December";}
var day=temp.slice(5,7);if(day.slice(0,1)=="0"){day=day.slice(1,2);}
var dateFinal=month+" "+day+", "+temp.slice(12,16);var date=document.createElement("p");date.appendChild(document.createTextNode(dateFinal));var dateClass=document.createAttribute("class");dateClass.value="date";date.setAttributeNode(dateClass);entryDiv.appendChild(date);var snippet=document.createElement("p");var tempString=entry[attributes[3]];tempString.replace(/&#8217;/i,"\'");snippet.appendChild(document.createTextNode(tempString));var contentClass=document.createAttribute("class");contentClass.value="content";snippet.setAttributeNode(contentClass);entryDiv.appendChild(snippet);container.appendChild(entryDiv);}}});}
google.setOnLoadCallback(initialize);