Here's my array and i need to do a foreach to display the image and such for each one. Basically the array contains slides and slide information, i need to output a div for each one with the information in (which i can do if i knew how to access it).
var slides = new Array();
slides[1] = {slidetitle: 'title 1',
slidetext: 'text 1',
image1: '',
magnifyposit: '',
buttontext: 'button text 1',
buttonurl: 'http://www.google.com'};
slides[2] = {slidetitle: 'title 2',
slidetext: 'text 2',
image1: '',
magnifyposit: '',
buttontext: 'button text 2',
buttonurl: 'http://www.google.com'};
slides[3] = {slidetitle: 'title 3',
slidetext: 'text 3',
image1: '',
magnifyposit: '',
buttontext: 'button text 3',
buttonurl: ''};
slides[4] = {slidetitle: 'title 4',
slidetext: 'text 4',
image1: '',
magnifyposit: '',
buttontext: 'button text 4',
buttonurl: 'http://www.google.com'};
slides[5] = {slidetitle: 'title 5',
slidetext: 'text 5',
image1: '',
magnifyposit: '',
buttontext: 'button text 5',
buttonurl: 'http://www.google.com'};