/*Liferay.Portlet.ready(

		function(portletId, jQueryObj) {
			if (jQuery("div[id*="+portletId+"] .feed-entry-title") != null
                && jQuery("div[id*="+portletId+"] .feed-entry-title").length > 0) {
                var spanList = jQuery("div[id*="+portletId+"] .feed-entry-title");
				for(var i = 0; i < spanList.length; i++) {
                    var span = spanList[i];
                    if(span != null && span.children[0] != null) {
                        var hrefVal = span.children[0].href;
                        span.children[0].href = "javascript:send_event_to_show_document('"+hrefVal+"');";
                        span.children[0].target = "";
                    }
                }
			}
		}
	);*/

function send_event_to_show_document(docId) {
    if (gwt_portlet_support) {
        gwt_portlet_support.publish({topic:'showDocument',documentId:{docIdentifier:"" + docId + "",docSelfLink:""},portletInstanceId:""});
//        gwt_portlet_support.publish({topic:'showDocument',url:('"' + url + '"')});
    }
}

		

