var bottom_left = [
{url : "http://www.wtw-filters.nl" ,img : "wtw_small.gif"},
{url : "?id=35" ,img : "hier_uw_klein.gif"},
{url : "http://www.buro7.nl" ,img : "buro7_small.gif"},
{url : "http://www.threvon.nl" ,img : "threvon_small.gif"}
];

var bottom_right = [
{url : "http://www.threvon.nl" ,img : "threvon_small.gif"},
{url : "http://www.buro7.nl" ,img : "buro7_small.gif"},
{url : "?id=35" ,img : "hier_uw_klein.gif"},
{url : "http://www.wtw-filters.nl" ,img : "wtw_small.gif"}
];

var bottom_middle = [
{url : "http://www.recreatieineigentuin.nl" ,img : "di-jo_big.gif"},
{url : "http://www.brandevoort.nu" ,img : "startpagina_brandevoort.gif"},
{url : "?id=35" ,img : "hier_uw_groot.gif"}
];




var timeout = 10000;

var current_index = new Array(0,0,0);

var bottom_length = new Array();

var bottom_dir = './bottom/';



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;

	

	bottom_update();

}



function bottom_update()

{

	a_left = document.getElementById('bottom_1');

	a_middle = document.getElementById('bottom_2');

	a_right = document.getElementById('bottom_3');

	

	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]++;



}

