function chgInfo(id)
{
	document.getElementById("servicesMidCol").innerHTML = document.getElementById("info"+id).innerHTML
	//trans()
	switch(id)
	{
		case 20: housePainting(); break;
		case 1: houseCleaning(); break;
		case 8: apartmentPainting(); break;
		case 5: pressureWash(); break;
		case 2: applianceCleaning(); break;
	}
	
}

function housePainting()
{
	var animation1 = $('photo1').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation1.start();
	
	var animation2 = $('photo3').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation2.start();
	
	var animation3 = $('photo5').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation3.start();
	
	var animation4 = $('photo7').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation4.start();
}

function houseCleaning()
{
	var animation1 = $('photo9').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation1.start();
	
	var houseCleaningShow = new SlideShow('slides1',{delay:2000, autoplay:true});
	houseCleaningShow.play();
	
	var houseCleaningAfterShow = new SlideShow('slides2',{delay:2000, autoplay:true});
	houseCleaningAfterShow.play();
}

function apartmentPainting()
{
	var animation1 = $('photo10').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation1.start();
	
	var animation1 = $('photo11').animate()
    .morph({'opacity':1})
	.delay(1000)
	.morph({'opacity':0})
	.delay(2000)
    .repeat();
	animation1.start();
}

function pressureWash()
{
	var pressureWash = new SlideShow('slides3',{delay:2000, autoplay:true});
	pressureWash.play();
}

function applianceCleaning()
{
	var show = new SlideShow('slides4',{delay:2000, autoplay:true});
	show.play();
} 

function trans()
{
	$('photo1')
	.morph({'opacity':1}).pauseFx(2000, 'morph')
	.morph({'opacity':0}).pauseFx(4000, 'morph')
	.morph({'opacity':1}).pauseFx(1500, 'morph')
	.morph({'opacity':0}).pauseFx(4000, 'morph')
	.morph({'opacity':1}).pauseFx(2000, 'morph')
	.morph({'opacity':0}).pauseFx(4000, 'morph')
	.morph({'opacity':1}).pauseFx(2000, 'morph')
	.morph({'opacity':0}).pauseFx(4000, 'morph')
}





