var bottom_left = [
{url : "http://www.suytkade.info/contact.php?info=banner_klein" ,img : "hier_uw_banner_small.gif"},
{url : "http://www.tropical-terrace.nl" ,img : "tropical-terrace_small.gif"},
{url : "http://www.threvon.nl" ,img : "threvon_small.gif"},
{url : "http://www.suytkade.info/uweigensuytkade.php" ,img : "eigen_e-mail_suytkade_small.gif"},
{url : "http://www.wtw-filters.nl" ,img : "wtw_small.gif"}
];

var bottom_right = [
{url : "http://www.wtw-filters.nl" ,img : "wtw_small.gif"},
{url : "http://www.suytkade.info/uweigensuytkade.php" ,img : "eigen_e-mail_suytkade_small.gif"},
{url : "http://www.threvon.nl" ,img : "threvon_small.gif"},
{url : "http://www.tropical-terrace.nl" ,img : "tropical-terrace_small.gif"},
{url : "http://www.suytkade.info/contact.php?info=banner_klein" ,img : "hier_uw_banner_small.gif"}
];

var bottom_middle = [
{url : "http://www.recreatieineigentuin.nl" ,img : "di-jo_big.gif"},
{url : "http://www.stapfinancieelthuisadviseur.nl" ,img : "stap_big.gif"},
{url : "http://www.suytkade.info/contact.php?info=banner_groot" ,img : "hier_uw_banner_big.gif"},
{url : "http://www.versplaza.com" ,img : "versplaza_big.gif"},
{url : "http://www.fotosenzo.com/" ,img : "fotoenzo_big.gif"}
];


var timeout = 15000;
var current_index = new Array(0,0,0);
var bottom_length = new Array();
var bottom_dir = 'banners/';

var a_left;
var a_middle;
var a_right;

function init_bottom()
{
	setInterval('bottom_update()',window.timeout);
	
	window.bottom_length[0] = window.bottom_left.length;
	window.bottom_length[1] = window.bottom_middle.length;
	window.bottom_length[2] = window.bottom_right.length;
	
	a_left = document.getElementById('bottom_1');
	a_middle = document.getElementById('bottom_2');
	a_right = document.getElementById('bottom_3');
	
	bottom_update();
}

function bottom_update()
{
	a_left.href = window.bottom_left[current_index[0]]["url"];
	a_left.firstChild.src = window.bottom_dir + window.bottom_left[current_index[0]]["img"];
	if(window.current_index[0] == (window.bottom_length[0] - 1))
		window.current_index[0] = 0;
	else
		window.current_index[0]++;

	a_middle.href = window.bottom_middle[current_index[1]]["url"];
	a_middle.firstChild.src = window.bottom_dir + window.bottom_middle[current_index[1]]["img"];
	if(window.current_index[1] == (window.bottom_length[1] - 1))
		window.current_index[1] = 0;
	else
		window.current_index[1]++;

	a_right.href = window.bottom_right[current_index[2]]["url"];
	a_right.firstChild.src = window.bottom_dir + window.bottom_right[current_index[2]]["img"];
	if(window.current_index[2] == (window.bottom_length[2] - 1))
		window.current_index[2] = 0;
	else
		window.current_index[2]++;

}
