//a
       $('#rootslink').click(function(){
       $.scrollTo( $('#rootsid'), 800);
    });
       
       $('#croplink').click(function(){
           $.scrollTo( $('#cropid'), 800);
        });
       
       $('#producelink').click(function(){
           $.scrollTo( $('#produceid'), 800);
        });
       
       $('#seedlink').click(function(){
           $.scrollTo( $('#seedid'), 800);
        });
       
       $('#harvestlink').click(function(){
           $.scrollTo( $('#harvestid'), 800);
        });


//parallax
$(function(){

	$('#wrapPS').scrollingParallax({
		enableHorizontal: true,
		staticSpeedX: .01,
		bgHeight: '250%',
		bgRepeat: false,
		staticScrollLimitX: false
});

	$('#mainPS').scrollingParallax({
		enableHorizontal: true,
		staticSpeedX: .05,
		bgHeight: '250%',
		bgRepeat: false,
		staticScrollLimitX: false
	});

	
	$.scrollingParallax('images/seed1.png', {
 		enableHorizontal: true,
        staticSpeedX: .05,
		bgHeight: '250%',
		bgRepeat: true,
		staticScrollLimitX: false
    });
	

//seeds
$('.s1').scrollingParallax({
		enableHorizontal: true,
		staticSpeedX: .25,
		bgHeight: '250%',
		bgRepeat: true,
		reverseDirectionX: true,
		staticScrollLimitX: false
});

$('.s2').scrollingParallax({
	enableHorizontal: true,
	staticSpeedX: .05,
	bgHeight: '250%',
	bgRepeat: true,
	reverseDirectionX: true,
	staticScrollLimitX: false
});

//colorbox	
$("a[rel='root']").colorbox({transition:"fade"});	
$("a[rel='crop']").colorbox({transition:"fade"});	
$("a[rel='produce']").colorbox({transition:"fade"});	
$("a[rel='seed']").colorbox({transition:"fade"});	
$("a[rel='harvest']").colorbox({transition:"fade"});	

});


