/*!
 * Copyright 2011 Pebble Design. All Rights Reserved.
 * Author: Reiss Watts, Gary Swanepoel.
 */
jQuery(document).ready(function(){jQuery("li a").each(function(){if(this.href==window.location.href.split("#")[0]){jQuery(this).parent().addClass("current");}});Cufon.replace('#nav',{fontFamily:'Helvetica',hover:true});Cufon.replace('#subnav, #subnav2, #book, #book-home',{fontFamily:'Helvetica',hover:true});function populatedropdown(jour_arrivee,mois_arrivee,annee_arrivee){var today=new Date()
var jour_arrivee=document.getElementById(jour_arrivee)
var mois_arrivee=document.getElementById(mois_arrivee)
var annee_arrivee=document.getElementById(annee_arrivee)
jour_arrivee.selectedIndex=today.getDate()-1;mois_arrivee.selectedIndex=today.getMonth();var thisyear=today.getFullYear()
for(var y=0;y<2;y++){annee_arrivee.options[y]=new Option(thisyear,thisyear)
thisyear+=1}
annee_arrivee.options[0]=new Option(today.getFullYear(),today.getFullYear(),true,true)}
window.onload=function(){populatedropdown("jour_arrivee","mois_arrivee","annee_arrivee")}
jQuery("#banners").scrollable({circular:true,mousewheel:false}).autoscroll({autopause:true});jQuery("#sidespecial").scrollable({circular:true,mousewheel:false}).autoscroll({autopause:true});jQuery(".slidetabs").tabs("#ssp .images > div",{effect:'fade',fadeInSpeed:600,fadeOutSpeed:600,rotate:true}).slideshow({autoplay:true,clickable:false,interval:5000});jQuery('a.backward, a.forward').hide();jQuery("#column2").hover(function(){jQuery(this).find('a.backward, a.forward').show();},function(){jQuery(this).find('a.backward, a.forward').hide();});jQuery("#nav ul li a").hover(function(){jQuery(this).next("em").stop().animate({opacity:'1',top:'3'},150);},function(){jQuery(this).next("em").stop().animate({opacity:'0',top:'9'},500);});jQuery("#subnav ul li a, #subnav2 ul li a").hover(function(){jQuery(this).next("em").stop().animate({opacity:'1',top:'1'},150);},function(){jQuery(this).next("em").stop().animate({opacity:'0',top:'7'},500);});var div=jQuery("#column6");var divTop=div.offset().top;var view=jQuery(window);view.bind("scroll resize",function(){var viewTop=view.scrollTop();if((viewTop>divTop)&&!div.is(".side-fixed")){div.removeClass("side-absolute").addClass("side-fixed");}else if((viewTop<=divTop)&&div.is(".side-fixed")){div.removeClass("side-fixed").addClass("side-absolute");}});jQuery("a.showme").click(function(){jQuery(this).parent().parent().children().toggleClass("expand");});jQuery("a.showme2").click(function(){jQuery(this).parent().parent().parent().children().toggleClass("expand");});jQuery('.backtotop').click(function(){jQuery('html, body').animate({scrollTop:0},1000);});});
