$(document).ready(function() { $('.content').cycle({ fx: 'scrollDown', speed: 'slow', timeout: 0, cleartype: true, // true if clearType corrections should be applied (for IE) cleartypeNoBg: true, pager: '#menu', pagerAnchorBuilder: function(idx, slide) { // return selector string for existing anchor return '#menu li:eq(' + idx + ') a'; } }); $('#menu .tips').tipsy({gravity: 's'}); $('.form-tips').tipsy({gravity: 'w'}); $('#detailsrooms').cycle({ fx: 'fade', // You can choose effect do you like, for reference : http://www.malsup.com/jquery/cycle/browser.html speed: 'slow', timeout: 0, cleartype: true, // true if clearType corrections should be applied (for IE) cleartypeNoBg: true, pager: '#chambresliste', pagerAnchorBuilder: function(idx, slide) { // return sel string for existing anchor return '#chambresliste li:eq(' + (idx) + ') a'; } }); $('#chambresliste .tips').tipsy({gravity: 's'}); /* initialize prettyphoto */ $("a[rel^='prettyPhoto']").prettyPhoto({ allowresize: true, theme : 'light_square' }); //Full Caption Sliding (Hidden to Visible) $('.boxgrid.captionfull').hover(function(){ $(".cover", this).stop().animate({top:'2px'},{queue:false,duration:160}).fadeTo("fast", 0.66); }, function() { $(".cover", this).stop().animate({top:'74px'},{queue:false,duration:160}).fadeTo("fast", 1); }); /* Contact Form */ $('#buttonsend').click( function() { var name = $('#name').val(); var subject = $('#subject').val(); var email = $('#email').val(); var message = $('#message').val(); $('.loading').fadeIn('fast'); if ((name != "" && name != "Name") && (subject != "" && subject != "Subject") && (email != "" && email != "E-mail" ) && message != "") { $.ajax( { url: './sendemail.php', type: 'POST', data: "name=" + name + "&subject=" + subject + "&email=" + email + "&message=" + message, success: function(result) { $('.loading').fadeOut('fast'); if(result == "email_error") { $('#email').css({"border":"1px solid #FF8C8C"}).next('.require').text(' !'); } else { $('#name, #subject, #email, #message').val(""); $('