<!-- # Pronto Casei
//	if( BrowserDetect.browser == 'Explorer' && BrowserDetect.version < 7 )
//	//if( BrowserDetect.browser == 'Firefox' )
//	{
//		new Boxy('<div class="blockeador-popup"><strong>Desculpe, mas seu navegador de internet &eacute; muito antigo!</strong><br />'+
//				 '<p>'+
//				 '<a href="http://www.mozilla.com/en-US/products/download.html"><img src="/_imagens/_icons/firefox.png" width="128" height="128" alt="Firefox" /><br />Baixar o FireFox</a>'+
//				 '<a href="http://www.google.com/chrome"><img src="/_imagens/_icons/chrome.png" width="128" height="128" alt="Chrome" /><br />Baixar o Chrome</a>'+
//				 '<a href="http://www.apple.com/br/safari/download/"><img src="/_imagens/_icons/safari.png" width="128" height="128" alt="Safari" /><br />Baixar o Safari</a>'+
//				 '<a href="http://www.opera.com/download/"><img src="/_imagens/_icons/opera.png" width="128" height="128" alt="Opera" /><br />Baixar o Opera</a>'+
//				 '</p>'+
//				 '<p>'+
//				 '<strong>Escolha uma das op&ccedil;&otilde;es acima</strong>'+
//				 '</p>'+
//				 '<p>'+
//				 '<strong>E o melhor, estes navegadores s&atilde;o de gra&ccedil;a e muito mais seguros!!!</strong>'+
//				 '</p>'+
//				 '</div>',{modal:true});
//	}

Cufon.replace('h1'); // Requires a selector engine for IE 6-7
Cufon.replace('.fonte'); // Requires a selector engine for IE 6-7
$(document).ready(function()
{
	$('form#login').validationEngine({ ajaxSubmit: false, success :  function(){ $("form#login").submit(); }, failure : function(){}});
	$('form#login a.botao').click(function(){ $('form#login').submit(); });
	$('form#login input#login').keypress(function(event){	if (event.keyCode == '13'){	$('form#login').submit(); } });
	$('form#login input#senha').keypress(function(event){ if (event.keyCode == '13'){ $('form#login').submit(); } });
	$('form#login a.botao').click(function(){ $('form#login').submit(); });
	$('form#login input#login').focus(function(){ if( $(this).val() == 'Login' ){ $(this).val(''); } });
	$('form#login input#login').blur(function(){ if( $(this).val() == 'Login' || $(this).val() == '' ){	$(this).val('Login');	}else{ $(this).val(); }	});
	$('form#login input#senha').focus(function(){ if( $(this).val() == 'Senha' ){ $(this).val(''); } });
	$('form#login input#senha').blur(function(){ if( $(this).val() == 'Senha' || $(this).val() == '' ){ $(this).val('Senha'); }else{ $(this).val(); } });
   	$('div.banner').each(function()
    {
      var id = $(this).attr('id').replace(/_hidden/, '');
      var pos = $("#" + id).position();

      if (pos)
      {
        $(this).css(
        {
          "left": pos.left +"px",
          "top":  pos.top  +"px"
        });
        $("#" + id).height($(this).height() + 5);
        $("#" + id).width($(this).width());
      }
    });

    $(window).scroll(function()
    {
      $('div.banner').each(function()
      {
        var id = $(this).attr('id').replace(/_hidden/, '');
        var pos = $("#" + id).position();

        if (pos)
        {
          $(this).css(
          {
            "left": pos.left +"px",
            "top":  pos.top  +"px"
          });
        }
      });
    });

    $(window).resize(function()
    {
      $('div.banner').each(function()
      {
        var id = $(this).attr('id').replace(/_hidden/, '');
        var pos = $("#" + id).position();

        if (pos)
        {
          $(this).css(
          {
            "left": pos.left +"px",
            "top":  pos.top  +"px"
          });
        }
      });
    });

	//$('td.header-principal ul li a').click(function(){ var boxy = new Boxy("<div class='loading_box'><img src='/_imagens/prontocasei_loading.gif' /> Carregando, aguarde...</div>", { modal: true }); });
	//$(window).load( function () { alert("Carregado"); } );
	coners_submnu_over();
});
function ajax_get( uri, data, div )
{
	var boxy = new Boxy("<div class='loading_box'><img src='/_imagens/prontocasei_loading.gif' /> Carregando, aguarde...</div>", { modal: true });
	
	var form_string = data;//alert( form_string );
	$.ajax({
		type: "GET",
		url: uri,
		data: form_string,
		beforeSend: function(){ $(div).html( '<p>Carregando, aguarde...</p>' ); },success: function(resposta){$(div).html( resposta );boxy.toggle();},error: function( resposta ){$(div).html ( resposta );}
	});
}

function limpar_uri( campo )
{
	campo = campo.replace(' ','');
	campo = campo.replace(/[&]+/g,'e');
	return campo.replace(/[^a-zA-Z0-9]+/g,'').toLowerCase();

	/*
	campo = campo.toLowerCase();
	var estranha 	= "áéíóúàèìòùâêîôûäëïöüãõ@#$%^*()_+=-~` ç&{}^";
	var correta 	= "aeiouaeiouaeiouaeiouao_______________ce___";
	var retorno 	= "";
	
	for ( i = 0; i < estranha.length; i++ )
	{
		for ( j = 0; j < campo.length; j++ )
		{
			retorno = campo.replace( estranha.substr( i, 1 ), correta.substr( i, 1 ) );
			retorno = retorno.replace( "_", "" );
			retorno = retorno.replace( ".", "" );
			retorno = retorno.replace( "\"", "" );
			retorno = retorno.replace( "'", "" );
			retorno = retorno.replace( "!", "" );
			campo = retorno;
		}
	}
	
	return campo;*/
}
function coners_submnu_over()
{
    var settings = {
      tl: { radius: 4 },
      tr: { radius: 4 },
      bl: { radius: 0 },
      br: { radius: 0 },
      antiAlias: true
    }
    curvyCorners(settings, 'table.estrutura td.header-principal ul li div.submenu div.over');
}
// -->



