	

  $(function(){ 
	  
	  
  
	  $('.round').corner("tl tr br bl 10px");
	
	  $('#navegacao a').corner("tl tr 5px");
	  
	  
	  //$('#revistas a').lightBox({fixedNavigation:true});
	  
	  $('#detalhes a').lightBox({fixedNavigation:true});
	  $('#galeria a').lightBox({fixedNavigation:true});
	  
	  
	  
  });
  
	
function isArray(o){
	return(typeof(o.length)=="undefined")?false:true;
}


	function replaceAll(str, de, para){
	    var pos = str.indexOf(de);
	    while (pos > -1){
			str = str.replace(de, para);
			pos = str.indexOf(de);
		}
	    return (str);
	}
	
	
	
	
String.prototype.trim = function() {
		return this.replace(/^\s+|\s+$/g, '');
}

function submeterNews(){
    $("#formNews").ajaxSubmit({
 	   		
        target: '',
        url: './gestor/modulos/newsletter_emails/?acao=set2', 
        type: 'post', 
        success: function(resposta) {
			res = (resposta.trim()).split('|');
			resformated = '';
			if(isArray(res)) {
				if(res.length<=1){ document.formNews.reset(); }
				for(i=0;i<res.length;i++){
					resformated += res[i].trim()+'\n';
				}
			}else{
				resformated = resposta;
				document.formNews.reset();
			}
    		alert(resformated);
        }
    		
    });
}
function submeterContato(){
	

    $("#formContato").ajaxSubmit({
 	   		
        target: '',
        url: './gestor/modulos/contato/?acao=set2', 
        type: 'post', 
        success: function(resposta) {
    	
			res = (resposta.trim()).split('|');
			resformated = '';
			
			if(isArray(res)) {
				if(res.length<=1){ document.formContato.reset(); }
				for(i=0;i<res.length;i++){
					resformated += res[i].trim()+'\n';
				}
			}else{

				resformated = resposta;
				document.formContato.reset();
			}
    		alert(resformated);
        }
    		
    });
	
}


$(function() {
	
	
	$('#btReserva').flash({
	    src: './flash/botao_online.swf',
	    width: 210,
	    height: 104,
	    wmode:'transparent'
	});


});


