for (i=0; i<100; i++){	
	
	trydiv = "Portfolioitem31_dtlDataList_ctl0"+i+"_divPortfolioListItem";
	if (document.getElementById(trydiv) != null){			
		
		document.getElementById("slider2").innerHTML += "<div class=\"contentdiv\">" + document.getElementById(trydiv).innerHTML + "</div>";
		
				
		
	}	
	else
		break;											
}


featuredcontentslider2.init({
	id: "slider2",  //id of main slider DIV
	contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
	toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
	nextprev: ["Previous", "Next Testimonial"],  //labels for "prev" and "next" links. Set to "" to hide.
	revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
	enablefade: [false, 1],  //[true/false, fadedegree]
	autorotate: [true, 20000],  //[true/false, pausetime]
	onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
		//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
		//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
	}
})