
function combine()
{
var x; 	//looping variable 
var newsitems = new Array();//array containing the Newsitems 
							// here we can add new newsitems using + operator between pagename,description & publicationdate

newsitems[0] ="high_valuation.html+High valuation makes it a double-edged sword for PEs+Economic Times | January 06, 2007";
newsitems[1] ="pe_players.html+PE players rule the deal street, big boys steal show+Economic Times | January 12, 2007";
newsitems[2] ="press1.html+Venture Intelligence APEX ‘07 Award+Venture Intelligence | January 24, 2007";
newsitems[3] ="shriram_news.html+Shriram EPC forms venture with Belgian group+The Hindu | February 18, 2007";
newsitems[4] ="utiventure_news2.html+UTI Venture, US fund to invest Rs 44 cr in Zylog+Economic Times | March 8, 2007";
newsitems[5] ="mysore_news.html+Mysore Newsmaker aids UK students hit headlines+Times of India, Bangalore Edition | April 16, 2007";
newsitems[6] = "retail_chain_news.html+Retail chain Weekender heads to Primus' cart+Economic Times | May 31, 2007";
newsitems[7] = "laqshyamedia_news.html+Laqshya Media attracts private equity of Rs 152cr+Moneycontrol.com | August 14, 2007";
newsitems[8] = "utiventure.html+UTI Venture, Evolvence triple CCCL investment+Business Standard | September 14, 2007";
newsitems[9] = "cccl_news.html+CCCL: Built to last+Business Standard Smart Investor | September 17, 2007";
newsitems[10] = "koutons_news.html+Koutons: Long-term play+Economic Times | September 17, 2007";
newsitems[11] ="pe_funds.html+PE funds set to make a killing.<br>Upcoming listings may see returns of some funds rising  three-fold+Business Standard | September 26, 2007";
newsitems[12] = "ifc_fidelity.html+IFC, Fidelity buy into South Indian Bank+Times of India | September 27, 2007";
newsitems[13] = "pesco_beam.html+UTI Ventures invests $8 mn in Pesco Beam+TNN | 16 November, 2007";
newsitems[14] = "real_estate.html+Real Estate boom is here to stay+Times of India | 25 November, 2007";
newsitems[15] = "koutons_dress.html+Koutons: Dressed for a killing+Hindustan Times | 10 December, 2007";
newsitems[16] = "press.html+Sequoia, UTI Ventures, Chrys Capital win APEX Awards+Venture Intelligence India-Deal Digest | 06 February, 2008"; 
newsitems[17] = "utiventure_news3.html+UTI Ventures exits Excelsoft, earns 50 times its investment+Economic Times, Mumbai | 24 April, 2008";
newsitems[18] = "private_equity.html+Private Equity | Positive, but preferring to wait and watch+ 21 July, 2008"; 
// add latest Newsitems above this comment separating pagename,description,published date by symbol + as above . 
var subitem; // this array contains splitted items of each newsitem as subitem[0]=pagename, subitem[1]=description, subitem[2]=symbol.
var content = new Array(); // this array contains all the description of the newsitems.
var pagename = new Array(); // this array contains all the pagenames of the newsitems

for(x=newsitems.length-1;x>=0;x--)
{
subitem =(newsitems[x].split('+'));
for(i=0;i<subitem.length;i++)
pagename[x] = subitem[0];
content[x] = subitem[2];
}


var connect ="<span class= 'news_head'>"+"<a href =\"";

<!-- to read the URL path and get the file name i have used the below block -->
var url = unescape(window.location.pathname);
var suburl = url.split('/');  //splitting the url with symbol '/' to find the pagename loaded.
var fname = suburl[suburl.length-1];

for(x=newsitems.length-1;x>=0;x--)
{
subitem =(newsitems[x].split('+'));
for(i=0;i<subitem.length;i++)
var contents = '<p>'
	if(fname==pagename[x])
	{
	
contents = contents+(connect+subitem[0]+"\""+" class='news_head_selected'>"+subitem[1]+"</a></span>");     
	}
else
 	{
contents = contents+(connect+subitem[0]+"\""+" class= 'news_head'>"+subitem[1]+"</a></span>");
	}
contents = contents+('<br>'+"<span class=\"bodytext_press11\">"+content[x]+'</span></p>');
document.write(contents);
}

}





