function startBanners() {
	$("dt.opt1").hover(function() {stopSlide();startSlide();$(this).addClass("selected");setBanner(1);},function(){});
	$("dt.opt2").hover(function() {stopSlide();startSlide();$(this).addClass("selected");setBanner(2);},function(){});	
	$("dt.opt3").hover(function() {stopSlide();startSlide();$(this).addClass("selected");setBanner(3);},function(){});
}

function setBanner(n) {
	if (n == 1) {
		bannerIndex = 1;
		$("dd.opt1").animate({top: "0px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt2").animate({top: "266px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt3").animate({top: "532px", opacity: 1}, { duration: 250, queue: false });
	} else if (n == 2) {
		bannerIndex = 2;
		$("dd.opt1").animate({top: "-266px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt2").animate({top: "0px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt3").animate({top: "266px", opacity: 1}, { duration: 250, queue: false });
	} else if (n == 3) {
		bannerIndex = 3;
		$("dd.opt1").animate({top: "-532px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt2").animate({top: "-266px", opacity: 1}, { duration: 250, queue: false });
		$("dd.opt3").animate({top: "0px", opacity: 1}, { duration: 250, queue: false });
	}
}

function startSlide() {
	slideShow = window.setInterval('nextBanner()', timer * 1000);
}

function stopSlide() {
	$("dt.opt"+bannerIndex).removeClass("selected");
	clearInterval(slideShow);
}

function nextBanner() {
	$("dt.opt"+bannerIndex).removeClass("selected");
	if (bannerIndex == 3) {
		bannerIndex = 1;
	} else {
		bannerIndex++;
	}
	$("dt.opt"+bannerIndex).addClass("selected");
	setBanner(bannerIndex);
}