function renderBlog() {
    google.load("feeds", "1");

    function initialize() {
        var monthname = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
        var feed = new google.feeds.Feed("http://www.piastyle.net/blog/?feed=rss2");
        feed.setNumEntries(10);
        feed.load(function (result) {
            if (!result.error) {
                var container = document.getElementById("blog");
                for (var i = 0; i < result.feed.entries.length; i++) {
                    var entry = result.feed.entries[i];
                    var div = document.createElement("div");
                    div.setAttribute("class", "blog_entry");
                    var title = document.createElement("a");
                    title.setAttribute("class", "blog_title");
                    title.setAttribute("href", entry.link);
                    var date = document.createElement("div");
                    date.setAttribute("class", "blog_date");
                    var content = document.createElement("div");
                    title.appendChild(document.createTextNode(entry.title));
                    var theDate = new Date(entry.publishedDate)
                    date.appendChild(document.createTextNode(monthname[theDate.getMonth()] + " " + theDate.getDate() + ", " + theDate.getFullYear()));
                    content.innerHTML = entry.content;
                    var comment = document.createElement("a");
                    comment.innerHTML = "Leave a comment...";
                    comment.setAttribute("class", "comment_link");
                    comment.setAttribute("href", entry.link + "#respond");

                    div.appendChild(title);
                    div.appendChild(date);
                    div.appendChild(content);
                    div.appendChild(comment);
                    container.appendChild(div);
                }
            }
        });
    }
    google.setOnLoadCallback(initialize);
}

function renderBlog1()
{
jQuery(function() {

    jQuery.getFeed({
        url: '../blog/wp-rss.php',
        success: function(feed) {
            var html = '';
            
            for(var i = 0; i < feed.items.length; i++) {
                var item = feed.items[i];
                html += '<div class="blog_title">' + item.title + '</div>';
                html += '<div class="blog_date">' + item.updated + '</div>';
                html += '<div>' + item.description + '</div>';
                alert(html);
            }
            
            jQuery('#blog').append(html);
        }    
    });
});
}

function roundCorners() {
    $("document").ready(function () {
        $("#blog").corner();
    });
}

function animate()
{
    $("#nav").animate({ top: '40px', height: '300px' }, 3000, 'linear');
}
