var contentarray=new Array()  //Array storing the corresponding description for each Carousel panel
 contentarray[0]="<h4>iWill</h4><p>Identiteit en huisstijl voor strategie en innovatie coach.</p>"
 contentarray[1]="<h4>Meeting Partners</h4><p>Logo ontwerp voor de social media event organisatie Meeting Partners.</p>"
 contentarray[2]="<h4>Hogeschool Rotterdam</h4><p>Banner illustraties voor de klaslokalen.</p>"
 contentarray[3]="<h4>NOS.nl concept</h4><p>Webdesign concept en redesign van de NOS.nl portal homepage voor een schoolopdracht.</p>"
 contentarray[4]="<h4>Pressure Cooker</h4><p>Identiteit voor een creatieve workshop georganiseerd voor de Hogeschool Rotterdam.</p>"

stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:5000},
	panelbehavior: {speed:800, wraparound:false, persist:true},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
	statusvars: ['imageA', 'imageB', 'imageC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype:  ['ajax', 'panels.htm'],  //['inline'] _____  content setting ['inline'] or ['external', 'path_to_external_file']
	oninit:function(){contentcontainer = document.getElementById('textContainer')},
	onslide:function()
	{
	contentcontainer.innerHTML = contentarray[imageA-1]; //adds the propper text per image
	for(i=0; i<contentarray.length; i++)
		{
			if(i==0)
			{
				document.getElementById('dots').innerHTML = ""; 
			}
			if(i == [imageA-1])
			{
				document.getElementById('dots').innerHTML += '<img src="images/icon_blue.gif" alt="icon_white" width="10" height="10"/>';
			}
			else
			{
				document.getElementById('dots').innerHTML += '<img src="images/icon_white.gif" alt="icon_white" width="10" height="10"/>';
			}
		}
	}
	
})
