$(document).ready(function(){	$("#main ul li:first-child").addClass('first');$("#main ul li:last-child").addClass('last');$(".offer-rent li:first-child").addClass('first');$(".offer-rent li:last-child").addClass('last');$(".section .col:last-child").addClass('last');$(".content-sub .box:last-child").addClass('last');$(".content-sub .sub li:last-child").addClass('last');$(".search-results li:last-child").addClass('last');$(".content-sub .box ul li:last-child").addClass('last');$(".content-sub .box ol li:last-child").addClass('last');// Call those functionsscrolltop();scrollcontact();}); // Hide browse bar$(document).ready(function() {$('#accomodation').hide();});// Show browse bar (index page)$(document).ready(function() {$('.index #accomodation, .results #accomodation').show();});// Shows the map on clicking show-map $('#show-map a').click(function() {$('#accomodation').slideDown('slow');return false;});// Hides the map on clicking show-map $('#show-map a').click(function() {$('#accomodation').slideUp('fast');return false;});$(document).ready(function() {$('#show-map a').click(function(){$('#accomodation').slideToggle(400);return false;});});// Hide detail contact form$(document).ready(function() {$('.detail #contact-form').hide();});// Shows the detail contact form$('.detail #contact-trigger a').click(function() {$('.detail #contact-form').slideDown('slow');return false;});// Hides the detail contact form$('.detail #contact-trigger a').click(function() {$('.detail #contact-form').slideUp('fast');return false;});// Toggles the detail contact form$(document).ready(function() {$('.detail #contact-trigger a').click(function(){$('.detail #contact-form').slideToggle(400);return false;});});// Hide offers box$(document).ready(function() {$('#offers-box').hide();});// Shows offers box$('.offers-trigger a').click(function() {$('#offers-box').slideDown('slow');return false;});// Hides offers box$('.offers-trigger a').click(function() {$('#offers-box').slideUp('fast');return false;});// Toggles offers box$(document).ready(function() {$('.offers-trigger a').click(function(){$('#offers-box').slideToggle(400);return false;});}); // Scroll to detail contactfunction scrollcontact() {$('.vcard a.scroll').click(function(){$.scrollTo( '#contact-trigger', 500 );return false;});}// Scroll to topfunction scrolltop() {$('a[rel="self"]').click(function(){$.scrollTo( '#top-of-page', 500 );return false;});}