// Init
var imageArray = new Array();
var urlArray = new Array();
var delayArray = new Array();
var titleArray = new Array();
var imageID = 1;

// Load Image Arrays
imageArray[1]='ir_elite_desks.jpg';
urlArray[1]='http://dev.tradeweb.uk.net/todds/desking.html';
delayArray[1]='5';
titleArray[1]='Desking solutions from TODDS-AC Office Products';

imageArray[2]='ir_elite_desks2.jpg';
urlArray[2]='http://dev.tradeweb.uk.net/todds/desking.html';
delayArray[2]='5';
titleArray[2]='Desking solutions from TODDS-AC Office Products';
        
imageArray[3]='ir_seating1.jpg';
urlArray[3]='http://dev.tradeweb.uk.net/todds/seating.html';
delayArray[3]='5';
titleArray[3]='Seating solutions from TODDS-AC Office Products';

imageArray[4]='ir_seating2.jpg';
urlArray[4]='http://dev.tradeweb.uk.net/todds/seating.html';
delayArray[4]='5';
titleArray[4]='Seating solutions from TODDS-AC Office Products';

imageArray[5]='ir_stor3.jpg';
urlArray[5]='http://dev.tradeweb.uk.net/todds/storage.html';
delayArray[5]='5';
titleArray[5]='Storage solutions from TODDS-AC Office Products';

imageArray[6]='ir_partstor.jpg';
urlArray[6]='http://dev.tradeweb.uk.net/todds/partitioning.html';
delayArray[6]='5';
titleArray[6]='Partitioning and screening solutions from TODDS-AC Office Products';

imageArray[7]='ir_partstor.jpg';
urlArray[7]='http://dev.tradeweb.uk.net/todds/partitioning.html';
delayArray[7]='5';
titleArray[7]='Partitioning and screening solutions from TODDS-AC Office Products';

imageArray[8]='ir_reception_black_leather.jpg';
urlArray[8]='http://dev.tradeweb.uk.net/todds/reception.html';
delayArray[8]='5';
titleArray[8]='Reception and breakout solutions from TODDS-AC Office Products';

imageArray[9]='ir_reception.jpg';
urlArray[8]='http://dev.tradeweb.uk.net/todds/reception.html';
delayArray[9]='5';
titleArray[9]='Reception and breakout solutions from TODDS-AC Office Products';

imageArray[10]='ir_elite_desks3.jpg';
urlArray[10]='http://dev.tradeweb.uk.net/todds/conference.html';
delayArray[10]='5';
titleArray[10]='Conference suite solutions from TODDS-AC Office Products';

imageArray[11]='ir_conference.jpg';
urlArray[11]='http://dev.tradeweb.uk.net/todds/conference.html';
delayArray[11]='5';
titleArray[11]='Conference suite solutions from TODDS-AC Office Products';
        
// Change Image Function
function changeImage() {
// Cycle imageID back to start
if (imageID >= 11) { imageID = 1; }
// Or incremenet imageID
else { imageID = imageID + 1; }
// Find code
thisImage = document.getElementById("image_rollover");
// Update with link
if (urlArray[imageID] != '') {
thisImage.innerHTML = '<a href="' + urlArray[imageID] + '"><img src="user_images/image_rollover/' + imageArray[imageID] + '" title="' + titleArray[imageID] + '" border="0" class="image_rollover_border"></a>';
}
// Update without link
else {
thisImage.innerHTML = '<img src="user_images/image_rollover/' + imageArray[imageID] + '" title="" border="0">';
}
// Attach next event
 window.setTimeout("changeImage()", (delayArray[imageID] * 1000));
return imageID;
}

// ATTACH INITIAL EVENT TO WINDOW
window.setTimeout("changeImage()", (delayArray[imageID] * 1000));
