jQuery(document).ready(function() {
/*
Background slideshow
*/
$('.banner-area').backstretch([
"images/backgrounds/wmed.jpg"
], {duration: 4000, fade: 1000});
});
// cowntdown function. Set the date by modifying the date in next line (June 1, 2012 00:00:00):
var austDay = new Date("December 25, 2018 00:00:00");
$('#countdown').countdown({until: austDay, layout: '
'});
$('#year').text(austDay.getFullYear());
// smooth scrolling
$(function() {
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});