/*!
 * Grappino - Custom Style Sheet for Website Animations
 * Copyright 2010 IT|Business. All Rights Reserved.
 * http://www.itbusiness.com.au
 * Created: 201001224 | Updated: 20100105
 * Author: Gary Swanepoel.
 * -----
 * Custom Style Sheet for Javascript Enabled Browsers for Website Animations
 */

jQuery(document).ready(function(jQuery){
/* Set Current Navigation State*/
    jQuery(".navigation li a").each(function() { 
        if(this.href == window.location.href.split("#")[0]) { jQuery(this).parent().addClass("current"); }
     });

    
/* Scrollable Div */
    jQuery(".scrollable > div").scrollable({
            circular: true, mousewheel: false
        }).autoscroll({ autopause: true });	

    
    /* Gallery Slideshow - Fade*/
    jQuery(".slidetabs").tabs(".images > img", {
                effect: 'fade', fadeInSpeed: "2000", fadeOutSpeed:2000, rotate: true
            }).slideshow({
                autoplay: true, autopause: true, clickable: true, interval: 7000
            });    
  

/* Cufon Replace */

   Cufon.set('fontFamily', 'Scotty');
   Cufon.replace('.content h1, #primary a, .booking h2, .blackboard h2');   
   Cufon.replace('#primary li.current a', {
        fontWeight: 'bold'
    });   
});
