
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] ="press.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[0] ="archives_2006_8.html+India Calling: VCs ready $4 billion kitty for ’06 + TNN | January 03, 2006";
newsitems[1] ="archives_2006_7.html+Subex buys UK's Azure + Business Line | April 25, 2006";
newsitems[2] = "archives_2006_6.html+UTI Venture Fund, M East investor put Rs 120 cr in CCCL + Economic Times | April 28, 2006";
newsitems[3] = "archives_2006_5.html+UTI Ventures invests Rs 27 cr in Koutons Retail + Business Line | July 17, 2006";
newsitems[4] = "archives_2006_4.html+A Fab grows in Hyderabad + Fortune | September 09, 2006";
newsitems[5] = "archives_2006_3.html+UTI Ventures invests $ 10 M in ‘Laqshya Media’ + UTI Ventures Press release | November 01, 2006";
newsitems[6] = "archives_2006_2.html+UTI Ventures invests USD 6 MN in Vallabhdas Kanji + UTI Ventures Press release | November 01, 2006";
newsitems[7] ="archives_2006_1.html+Koutons raises Rs 112 cr from UTI Ventures, Argonaut, others + Hindu Business Line | November 29, 2006";
newsitems[8] = "archives_2006.html+UTI invests $10 mn in Shriram EPC + UTI Ventures Press release | December 23, 2006";



// 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);
}

}





