var images = [


[['/images/benefactors/benefactor_nhs cfh.png'],['http://www.connectingforhealth.nhs.uk']],

[['/images/benefactors/mckesson.gif'],['http://www.mckesson.co.uk']]



			 ];
			 
/*
Example of how you extend the images definition

var images = [
				[['/images/benefactors/benefactorcic.gif'],['http://www.google.com']],
				[['/images/benefactors/benefactorcic.gif'],['http://www.google.com']],
				[['/images/benefactors/benefactorcic.gif'],['http://www.google.com']],
				[['/images/benefactors/benefactorcic.gif'],['http://www.google.com']]
			 ];
			 
The last definition will not be proceeded by a comma....			 
*/
var position = 0;

function bannerScroll()
{
		benefactor = document.getElementById('benefactors');
		output = '<a href="' + images[position][1] +'" target="_blank"><img width="120" height="43" src="' + images[position][0] + '" border="0" alt="Click here to visit these links" /></a>';
		benefactor.innerHTML = output;
/* set for 15 secs
		setTimeout("bannerScroll()", 7300);
*/
		setTimeout("bannerScroll()", 3000);
		if (position == images.length-1)
		{
			position=0;
		}
		else
		{
			position++;
		}
}

function unused()
{
if (document.images)
{
    // First create an array with links to the images you want to
    // display as banners. I chose 3 image locations.
    adImages = new Array("http://62.232.6.148/images/benefactornis.gif",
                         "http://62.232.6.148/images/benefactorcic.gif",
						 "http://62.232.6.148/images/benefactorfdb.gif",
						 "http://62.232.6.148/images/benefactorind.gif");

    // When the user clicks on a banner it should take the user to
    // the website of that company. Therefore we create another
    // array with a list of URLs. Keep the order the same as images.
    adURLs = new Array("www.isb.nhs.uk/pages/default.asp",
                       "www.clinical-info.co.uk","www.firstdatabank.co.uk", "www.indigo4.com");
    thisAd = 0;
}
}
// The following function cycles through each banner image.
// Notice the use of the variable thisAd to go from 0 to 2 and then
// back to 0. JavaScript has an object called document whose
// member adBanner can be set to the current banner to display.

function cycleAds()
{
    if (document.images)
    {
        if (document.adBanner.complete)
        {
            if (++thisAd == adImages.length)
                thisAd = 0;

            document.adBanner.src = adImages[thisAd];
        }
    }

    // change to next banner every 15 seconds
    setTimeout("cycleAds()", 7300);
}

// This function is used to direct the user to the website when
// the user clicks on a particular banner image.

function gotoAd()
{
    document.location.href = "http://" + adURLs[thisAd];
}




