// 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('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
jQuery(document).ready(function(){
	//		
	jQuery(".tab:not(:first)").hide();

	//to fix u know who
	jQuery(".tab:first").show();
	
		jQuery(".htabs a").click(function(){
			stringref = jQuery(this).attr("href").split('#')[1];
	
			jQuery('.tab:not(#'+stringref+')').hide();
	
			if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
				jQuery('.tab#' + stringref).show();
			}
			else 
				jQuery('.tab#' + stringref).fadeIn();
			
			return false;
		});
		
	//
					
	});

/*** 
    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 );
});