$(function() {

	// hide all info-boxes
	$('.box-1, .box-2, .box-3, .box-4').hide();

	// feature links
	$('#features a.feature-1').click( function() {
		$('.box-2, .box-3, .box-4').hide();
    $('.box-1').show('slow');
    return false;
	});
	$('#features a.feature-2').click( function() {
		$('.box-1, .box-3, .box-4').hide();
    $('.box-2').show('slow');
    return false;
	});
	$('#features a.feature-3').click( function() {
		$('.box-1, .box-2, .box-4').hide();
    $('.box-3').show('slow');
    return false;
	});
	$('#features a.feature-4').click( function() {
		$('.box-1, .box-2, .box-3').hide();
    $('.box-4').show('slow');
    return false;
	});
	
	// cycle animation
	$('#info-wrap').cycle({ 
	    fx:      'fade', 
	    speed:  	1500,
	    easing: 'easeinout',
	    timeout:  7000,
			pager:	"#features",
    	pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#features li:eq(' + idx + ') a'; 
	    }
	});
	$('#slide-wrap').cycle({ 
	    fx:      'fade', 
	    speed:  	1500,
	    easing: 'easeinout',
	    timeout:  7000,
			pager:	"#features",
    	pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#features li:eq(' + idx + ') a'; 
	    }
	});
});
