/**
 * Slide Banner.
 * Picked from the web a few weeks ago so lost credits
 * Tweaked to actually work correctly.
 */
	var flag=1; // start at 1 to spend only 5 sec on first, start = 0 => 10 sec on first.
	var time;
	
	function banner_selection(centerdiv_id, m1)	{
		if(m1){
			clearTimeout(time1);
		}
		if(document.getElementById(centerdiv_id).style.display=="none"){
			for(i=0;i<banners.length;i++) {
				document.getElementById(banners[i]).style.display="none";				
				document.getElementById(buttons[i]).className="";
			}
			fadeeffect(centerdiv_id,m1);
		}
	}
	
	function fadeeffect(it,m1) {
		Effect.Fade(it, { duration: .9, from: 0.2, to: 1 });
		document.getElementById(it).style.display="block";
		// Marks selected the correct button : rebuild the id using the same numerical id.
		var btnId = 'feat_b' + it.charAt(it.length -1);
		document.getElementById(btnId).className="selected";
		if(m1==1)
			flag=it.charAt(it.length - 1);
	}
	function divout() {
		time1=setTimeout(crc,5000);
	}
	function crc() {
		if(flag==banners.length) {
			flag=0;	
		}
		var nextOneIs = banners[flag];
		banner_selection(nextOneIs,0);
		flag++;
		divout();
	}
	function divin(){
		clearTimeout(time1);
	}
