The syntax error that mikerobi mentioned is at line 732 of default.aspx
:
$(document).ready(function(){
if($('#ctl00_lblNoResults').text() == ' Sorry there is no availability.'){
$('.otherprop').text('Accommodation at this location')
$('.topbook').hide();
$('.sidelink').hide();
}) // <---- remove this
}
else {
$('.otherprop').text('Accommodation at this location')
$('.accomavail').text('Accommodation at this location');
$('.otherprop').hide();
$('.topbook').show();
$('.sidelink').show();
}
})
This error is easier to see with better indentation:
$(document).ready(function() {
if ($('#ctl00_lblNoResults').text() == ' Sorry there is no availability.') {
$('.otherprop').text('Accommodation at this location')
$('.topbook').hide();
$('.sidelink').hide();
}) // <---- see, it makes no sense!
}
else {
$('.otherprop').text('Accommodation at this location')
$('.accomavail').text('Accommodation at this location');
$('.otherprop').hide();
$('.topbook').show();
$('.sidelink').show();
}
})
You're also missing a semicolon at the end.