$(function() {
   $('a[rel^=lightbox]').each(function(){
		$(this).lightBox();
	});
});

Cufon.replace('#contentMain h2', { fontFamily: 'headline' });
Cufon.replace('#contentMain h3', { fontFamily: 'navi' });
Cufon.replace('#contentSidebar h3', { fontFamily: 'navi' });
Cufon.replace('#footer h3', { fontFamily: 'navi' });
Cufon.replace('#contentMain .claim', { fontFamily: 'claim' });
Cufon.replace('ul#navi li a.cufonReplace', {hover: true, fontFamily: 'navi'});
Cufon.replace('#footer li a.cReplace', {hover: true, fontFamily: 'navi'});

$(document).ready(function() {
	$('#slideshow').innerfade({
		animationtype: 'fade',
		speed: 2000,
		timeout: 8000,
		type: 'sequence',
		containerheight: '356px'
	});				
});



/*--- smooth scroll ------------------------------------*/
	 
$(function(){	    $('a[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) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 800);
                return false;
            }
	        }
});
});
