$(document).ready(function(){
$("ul.drop").superfish({
		hoverClass    : "sfHover",
		delay        : 400,
		animation    : {height:"show"}
});//	

// Increase Font Size
$(".maior").click(function(){
	var currentFontSize = $('html').css('font-size');
	var currentFontSizeNum = parseFloat(currentFontSize, 10);
	var newFontSize = currentFontSizeNum*1.2;
	$('html').css('font-size', newFontSize);
	return false;
});
// Decrease Font Size
$(".menor").click(function(){
	var currentFontSize = $('html').css('font-size');
	var currentFontSizeNum = parseFloat(currentFontSize, 10);
	var newFontSize = currentFontSizeNum*0.8;
	$('html').css('font-size', newFontSize);
	return false;
});

// validate form on keyup and submit
$(".sales").validate({
rules: {
	email: {
		required: true,
		email: true
	}
},
messages: {
	email: {
		required: "Informe o seu e-mail",
		email: "E-mail não é válido. Por favor, verifique o e-mail informado"
	}
}
	
});

});

//Wenetus - altura variavel do submenu
var viewportheight;
if (typeof window.innerWidth != 'undefined'){
	viewportheight = parseFloat(window.innerHeight);
}
else if (typeof document.documentElement != 'undefined'&& document.documentElement.clientWidth != 0){
	viewportheight = parseFloat(document.documentElement.clientHeight);
}
else{
	viewportheight = parseFloat(document.getElementsByTagName('body')[0].clientHeight);
}
$(document).ready(function(){
if (viewportheight <= 562) {//if resolution 800x600 or less
	var altura = viewportheight - 105 + "px";//height of site's top
	document.getElementById("metodos-list").style.height=altura;//id of ul
}
});//

//mascara de input
jQuery(function($){
	$("#00N80000002e85S").mask("99/99/9999 99:99");
	$(".cf_date, #00N80000002dprm").mask("99/99/9999");
	$("#cf2_field_8").mask("99/99/9999");
	$("#cf3_field_11").mask("99/99/9999");
	$("#cf3_field_4, #phone, #mobile").mask("(99) 9999-9999");
	$("#cf3_field_5").mask("(99) 9999-9999");
	$("#cf4_field_5").mask("(99) 9999-9999");
	$("#cf2_field_13").mask("(99) 9999-9999");
	$("#cf_field_8").mask("(99) 9999-9999");
	$("#cf_field_9").mask("(99) 9999-9999");
	$("#cf3_field_10").mask("99999-999");
	$("#cf2_field_9").mask("99:99");
	$("#zip").mask("99999-999");
});


