function homeSlb(type, newSel) {
	var section1 = document.getElementById('home_slb_opentimes');
	var section2 = document.getElementById('home_slb_prices');
	var section3 = document.getElementById('home_slb_directions');
	var section4 = document.getElementById('home_slb_curshw');
	var link1 = document.getElementById('home_slb_tl_times');
	var link2 = document.getElementById('home_slb_tl_prices');
	var link3 = document.getElementById('home_slb_tl_directions');
	var link4 = document.getElementById('home_slb_tl_curshw');
	var curSelH = document.getElementById('home_clb_cursel');
	var cTextY = 'home_slb_sel_y';
	var cTextN = 'home_slb_sel_n';
	curSel = curSelH.value;
	var height1 = 26;
	var height2 = 52;
	var height3 = 78;
	var height4 = 252;
	var height5 = 278;
	var height6 = 304;
	var tdur = 0.3;
	if(curSel != newSel) {
		switch(type) {
			case 'toggle':
				switch(newSel) {
					case 'opentimes':
						switch(curSel) {
							case 'prices':
								new Effect.Move(section2, {x: 0, y: height4, mode: 'absolute', duration: tdur});
								link2.setAttribute(classText, cTextN);
							break
							case 'directions':
								new Effect.Parallel([
									new Effect.Move(section2, {sync: true, x: 0, y: height4, mode: 'absolute'}), 
									new Effect.Move(section3, {sync: true, x: 0, y: height5, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link3.setAttribute(classText, cTextN);
							break
							case 'curshw':
								new Effect.Parallel([
									new Effect.Move(section2, {sync: true, x: 0, y: height4, mode: 'absolute'}), 
									new Effect.Move(section3, {sync: true, x: 0, y: height5, mode: 'absolute'}), 
									new Effect.Move(section4, {sync: true, x: 0, y: height6, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link4.setAttribute(classText, cTextN);
							break
						}
						link1.setAttribute(classText, cTextY);
					break
					case 'prices':
						switch(curSel) {
							case 'opentimes':
								new Effect.Move(section2, {x: 0, y: height1, mode: 'absolute', duration: tdur});
								link1.setAttribute(classText, cTextN);
							break
							case 'directions':
								new Effect.Move(section3, {x: 0, y: height5, mode: 'absolute', duration: tdur});
								link3.setAttribute(classText, cTextN);
							break
							case 'curshw':
								new Effect.Parallel([
									new Effect.Move(section3, {sync: true, x: 0, y: height5, mode: 'absolute'}), 
									new Effect.Move(section4, {sync: true, x: 0, y: height6, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link4.setAttribute(classText, cTextN);
							break
						}
						link2.setAttribute(classText, cTextY);
					break
					case 'directions':
						switch(curSel) {
							case 'opentimes':
								new Effect.Parallel([
									new Effect.Move(section2, {sync: true, x: 0, y: height1, mode: 'absolute'}), 
									new Effect.Move(section3, {sync: true, x: 0, y: height2, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link1.setAttribute(classText, cTextN);
							break
							case 'prices':
								new Effect.Move(section3, {x: 0, y: height2, mode: 'absolute', duration: tdur});
								link2.setAttribute(classText, cTextN);
							break
							case 'curshw':
								new Effect.Move(section4, {x: 0, y: height6, mode: 'absolute', duration: tdur});
								link4.setAttribute(classText, cTextN);
							break
						}
						link3.setAttribute(classText, cTextY);
					break
					case 'curshw':
						switch(curSel) {
							case 'opentimes':
								new Effect.Parallel([
									new Effect.Move(section2, {sync: true, x: 0, y: height1, mode: 'absolute'}), 
									new Effect.Move(section3, {sync: true, x: 0, y: height2, mode: 'absolute'}), 
									new Effect.Move(section4, {sync: true, x: 0, y: height3, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link1.setAttribute(classText, cTextN);
							break
							case 'prices':
								new Effect.Parallel([
									new Effect.Move(section3, {sync: true, x: 0, y: height2, mode: 'absolute'}), 
									new Effect.Move(section4, {sync: true, x: 0, y: height3, mode: 'absolute'})
								], { 
									duration: tdur
								});
								link2.setAttribute(classText, cTextN);
							break
							case 'directions':
								new Effect.Move(section4, {x: 0, y: height3, mode: 'absolute', duration: tdur});
								link3.setAttribute(classText, cTextN);
							break
						}
						link4.setAttribute(classText, cTextY);
					break
				}
			break
		}
		curSelH.value = newSel;
	}
}

function homeMsgBar(type) {
	msgBarTitle = document.getElementById('home_notice_bar_title');
	msgBarMsg = document.getElementById('home_notice_bar_msg');
	popSpeed = 0.3;
	switch(type) {
		case 'setup':
			msgBarMsg.style.display = 'none';
		break
		case 'toggle':
			if(msgBarMsg.style.display == 'none') {
				new Effect.BlindDown(msgBarMsg, {queue: {position: 'end', scope: 'homeMsgBar', limit: 1}, duration: popSpeed});
			} else {
				new Effect.BlindUp(msgBarMsg, {queue: {position: 'end', scope: 'homeMsgBar', limit: 1}, duration: popSpeed});
			}
			msgBarTitle.style.outline = 'none';
		break
	}
}