var thisTimer;
var newTimer;
var testTimer;

var delayTimer = 5000;

function simpleSlideInit(){

	if($('switchholder')){
		var allofthem = $$('.switch');
		var mycounter = 1;
		allofthem.each(function(e){
			e.setProperty('id','info_homey'+mycounter);
			mycounter++;
		});
		$('switchholder').addEvent('load',thisTimer = function(s){
		for(var i =0;i < allofthem.length;i++){
		var e = allofthem[i];
		if(e.getStyle('display') == 'block'){
		var nexty = i + 2;
		if(nexty > allofthem.length){
		nexty = Number(1);
		}
		var showthis = 'info_homey' + String(nexty);
		e.fade('out');

		(function(){ e.setStyle('display','none'); }).delay(400);
		(function(){
			$(showthis).setStyles({ opacity:0,display:'block'});
			$(showthis).fade('in');
		}).delay(400);

		break;
		}
		}
		}.periodical(delayTimer));

	}
}

