$j = jQuery; /* Loading */ $j(document).ready(function() { $j("#loading_site").hide(); $j("#content").show(); }); /* ======= */ /*$j(window).load(function() { $j("input.gsc-search-button").click( function() { $j.ajax( { type: "POST", url: "busca.php", data: $j("#cse").html(), dataType: "html", beforeSend: function (HTML) { alert(HTML); }, success: function (HTML) { alert(1); $j("#home").html(HTML); } } ); }); });*/ /* Nivo Slider */ $j(window).load(function() { $('#slider').nivoSlider({ effect: 'boxRain', // Specify sets like: 'fold,fade,sliceDown' animSpeed: 800, // Slide transition speed pauseTime: 5000, // How long each slide will show startSlide: 0, // Set starting Slide (0 index) directionNav: true, // Next & Prev navigation directionNavHide: true, // Only show on hover controlNavThumbs: false, // Use thumbnails for Control Nav controlNavThumbsFromRel: false, // Use image rel for thumbs controlNavThumbsSearch: '.jpg', // Replace this with... controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src keyboardNav: true, // Use left & right arrows manualAdvance: false, // Force manual transitions prevText: ' ', // Prev directionNav text nextText: ' ' // Next directionNav text }); }); /* =========== */ /* jQuery Cycle */ /*jQuery(function() { jQuery('#slideshow').cycle({ fx: 'scrollVert', timeout: 4000, speed: 1500, easing: 'easeInOutExpo', height: 'auto', next: '#next', prev: '#prev' }); }); /* ============ */ /* Function form mensagem */ envia_form_mensagem_mensagem = "Enviando mensagem..."; envia_form_mensagem = function () { if ($j("#answer_mensagem").html() != envia_form_mensagem_mensagem) { $j.ajax( { type: "POST", url: "mensagem_post.php", data: $j("#form_mensagem").serialize() + "&send=enviar", dataType: "html", beforeSend: function (HTML) { $j("#answer_mensagem").html(envia_form_mensagem_mensagem); }, success: function (HTML) { $j("#answer_mensagem").html(HTML); } } ); } else { alert("Aguarde enquanto a mensagem está sendo enviada."); } } /* ============================== */ /* Function form associe-se */ envia_form_associe_mensagem = "Enviando mensagem..."; envia_form_associe = function () { if ($j("#answer_associe").html() != envia_form_associe_mensagem) { $j.ajax( { type: "POST", url: "associe_post.php", data: $j("#form_associe").serialize() + "&send=enviar", dataType: "html", beforeSend: function (HTML) { $j("#answer_associe").html(envia_form_associe_mensagem); }, success: function (HTML) { $j("#answer_associe").html(HTML); } } ); } else { alert("Aguarde enquanto a mensagem está sendo enviada."); } } /* ============================== */ /* Function form contato */ envia_form_contato_mensagem = "Enviando mensagem..."; envia_form_contato = function () { if ($j("#answer_contato").html() != envia_form_contato_mensagem) { $j.ajax( { type: "POST", url: "contato_post.php", data: $j("#form_contato").serialize() + "&send=enviar", dataType: "html", beforeSend: function (HTML) { $j("#answer_contato").html(envia_form_contato_mensagem); }, success: function (HTML) { $j("#answer_contato").html(HTML); } } ); } else { alert("Aguarde enquanto a mensagem está sendo enviada."); } } /* ============================== */