// CUSTOM.JS FOR RHOOST.COM
// code: Ira F. Cummings
// web: http://www.iracummings.com
//
// Cufon
Cufon.replace('h1', { fontFamily: 'Century Gothic Std' });
Cufon.replace('h2', { fontFamily: 'Century Gothic Std' });
Cufon.replace('#nav-columns a', { fontFamily: 'Century Gothic Std', hover: true });
Cufon.replace('h3.homepage-news', { fontFamily: 'Century Gothic Std' });
Cufon.replace('a.purchase-button', { fontFamily: 'Century Gothic Std' });
Cufon.replace('a.collection-button', { fontFamily: 'Century Gothic Std' });
Cufon.replace('input.addtocart', { fontFamily: 'Century Gothic Std' });
// jQuery stuff

/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: 
    http://jonraasch.com/blog/a-simple-jquery-slideshow
***/

function slideSwitch() {
    var $active = jQuery('div#slideshow img.active');

    if ( $active.length == 0 ) $active = jQuery('div#slideshow img:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : jQuery('div#slideshow img:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

jQuery(function() {
    setInterval( "slideSwitch()", 5000 );
});
