function renderRssFeed( url, numOfRssItems, rssItemLinksPopupType) {

        var feed = new google.feeds.Feed( url);
	    
        feed.setNumEntries( numOfRssItems);
	    
        feed.load(function(result) {
            if (!result.error) {
                var container = document.getElementById("newsAndEventsRssFeed");
		    
                for (var i = 0; i < result.feed.entries.length; i++) {

                    var entry = result.feed.entries[i];
			
                    // Set up the div subsection
                    var neDivSection = document.createElement("div");
                    var nePsection = document.createElement("p");

                    // Create the link to the RSS feed element
                    var neSetLink = document.createElement("a");
                    neSetLink.setAttribute("href", entry.link);
                    if( rssItemLinksPopupType=="1")
                    	neSetLink.setAttribute("target", "_blank");
                    neSetLink.appendChild( document.createTextNode( entry.title));

                    // Create the BR node
                    var neBrNode = document.createElement("br");
                    neBrNode.setAttribute("class", "break");
                    
                    // Add the link and BR nodes to the P subsection
                    nePsection.appendChild(neSetLink);
                    nePsection.appendChild(neBrNode);

                    // Add the P section and BR nodes to the DIV subsection
                    neBrNode.setAttribute("class", "break");
		    		neDivSection.appendChild(nePsection);
                    neDivSection.appendChild(neBrNode);
                    
                    // Add the RSS feed div subsection to the container area
                    container.appendChild(neDivSection); 
               }
        }
    });
}