/**
 * Scripts personalizados
 */

$(function() {
	// Menu lateral
	$('li.m-l-2').mouseover(function() {
		$(this).addClass('over');
	});
	$('li.m-l-2').mouseout(function() {
		$(this).removeClass('over');
	});
	
	$("#slideshow-inpage").easySlider({
		auto: true,
		continuous: true,
		numeric: true,
		width: 700,
		height: 316,
		speed: 800,
		pause: 4000
	});
	$("#slideshow-inpage-petit").easySlider({
		auto: true,
		continuous: true,
		numeric: true,
		width: 700,
		height: 256,
		speed: 800,
		pause: 4000
	});
	$("#slideshow-inpage-planos").easySlider({
		auto: false,
		continuous: true,
		numeric: true,
		width: 700,
		height: 256,
		speed: 800,
		pause: 4000,
		controlsShow: false
	});
	
	$("#slideshow-mini").easySlider({
		auto: true,
		continuous: true,
		numeric: false,
		width: 324,
		height: 240,
		speed: 800,
		pause: 4000,
		controlsShow: false
	});
});

$(window).load(function () {
	var maxHeight = 0;

	$('.columns').each(function (item, value) {
		if ($(this).height() > maxHeight) maxHeight = $(this).height();
	});
	$('.columns').height(maxHeight);
	
	$('#outer1').height($(document).height()+20);
});


