// JavaScript Document
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
function rememberSelection(choice){
	$.cookie("MTSelection", choice, { expires: 365 });	
}
$(document).ready(function() {
	equalHeight($(".equalheight"));
	//equalHeight($(".going-box"));
});


$(document).ready(function (){
	
	$('#slideshowCycle').cycle({
		fx:     'fade',
		speed:  400,
		pause: 0,
		timeout: 10000,
		pager:  '#slidenav',
		pagerAnchorBuilder: function(idx, slide) {
			// return sel string for existing anchor
			return '#slidenav li:eq(' + (idx) + ') a';
		}
	});
	$('.box-feature').cycle({
		fx:     'fade',
		speed:  0,
		pause: 0,
		timeout: 10000
	});
});

$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true, 
		continuous: true,
		controlsShow: true,
		numeric: true,
		pause:7000
	});
});	

$(document).ready(function(){	
	$("#hpNewsSlider").easySlider({
		auto: true, 
		vertical: true,
		continuous: true,
		controlsShow: true,
		numeric: false,
		nextId: 'nextVert',
		prevId: 'prevVert',
		pause:7000
	});
});	

$(function() {
	$(".anyClass").jCarouselLite({
		btnNext: ".next",
		btnPrev: ".prev"
	});
});
