$(document).ready(function(){
		$("#telefone").mask("(99) 9999-9999");
		$('.banner').cycle({fx: 'fade',timeout: 6000});
		$(".botoes1").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) 0px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) 0px 0px no-repeat"});
		});
		$(".botoes2").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -34px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -34px 0px no-repeat"});
		});
		$(".botoes3").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -68px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -68px 0px no-repeat"});
		});
		$(".botoes4").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -102px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -102px 0px no-repeat"});
		});
		$(".botoes5").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -136px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -136px 0px no-repeat"});
		});
		$(".botoes6").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -170px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -170px 0px no-repeat"});
		});			
		$(".botoes7").hover(
		function(){
			$(this).css({background: "url(imagens/back_botoes.jpg) -204px -50px no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/back_botoes.jpg) -204px 0px no-repeat"});
		});	
		
		$(".btn_pacotes").hover(
		function(){
			$(this).css({background: "url(imagens/btn_pacotes.gif) right no-repeat"});
		},
		function(){
		 $(this).css({background: "url(imagens/btn_pacotes.gif) left no-repeat"});
		});
		
		$(".menu_links table tr td").not('.nenhum').hover(
		function(){
			$(this).addClass('menuhover');
			$(this).removeClass('menuout');
			$(this + " a").css({textDecoration:'none', color:'#000'});
		},
		function(){
		 $(this).removeClass('menuhover');
		 $(this).addClass('menuout');
		 $(this + " a").css({textDecoration:'none', color:'#fff'});
		});		
	})


function MostrarAlerta(strMensagem, strForm, strConfigAlerta)
{
  $(strForm).append('<table id="alerta" class="' + strConfigAlerta + '" style="border:1px solid #C90;  background-color:#FCF4E2; color:#C60; padding:3px; font-family:Tahoma; font-size:10px; font-weight:bold;" width="187" border="0" cellpadding="0" cellspacing="0">' +
											'<tr>' +
												'<td width="22" valign="middle"> <img src="../imagens/loading.gif" width="15" height="15" /></td>' +
												'<td width="163" valign="middle">' +  strMensagem + '</td>' +
											'</tr>' +
										'</table>').show('normal');
};

function EsconderAlerta()
{
	$('#alerta').remove().show('normal');	
};

$(document).ready(function()
{
	// Começo da submissão do formulário de enquete.
	$forms = $('#frm_suporte_ajax');
	$forms.bind('submit', function()
	{
		//Começando a validação do formulário
		if ($('#usuario').val() == '')
		{
			alert('Você deve informar seu usuario.');
			$('#usuario').focus();
			return false  
		}

   if ($('#senha').val() == '')
		{
			alert('Você deve informar sua senha.');
			$('#senha').focus();
			return false  
		}
		
		var parametros = $('#frm_suporte_ajax').serialize(true)  + '&opcao=suporte';
		alert('Área reservada para clientes CuboDigital');
		/*$.ajax
		({
			type: 'POST',
			url: $forms.attr('action'),
			data: parametros,
			beforeSend: function()
			{
				MostrarAlerta('Enviando formulário de contato...','.alerta','alerta');
				$("#informacao_pesquisa").text("Enviando informações...");
			},
				success: function(resposta){
				EsconderAlerta();
				$('body').append(resposta);
				document.forms[0].reset();
			}
		})*/
		
		return false;
	})  
	// Fim do envio do formulário de contato do site
})	