$(document).ready(function()
{
	// The DOM (document object model) is constructed
	// We will initialize and run our plugin here
	$('#main-slide').cycle({
		timeout:	6000,
		speed:		2000,
		pause:		0     // true to enable "pause on hover"
	});
	
	$('#slide-plant').cycle({
		timeout:	5000,
		speed:		1000,
		pause:		0     // true to enable "pause on hover"
	});
	
	$('.dropdown-content').hover(
		function(){
			$(this).addClass('dropdown-content-hover');
		},
		function(){
			$(this).removeClass('dropdown-content-hover');
		}
	);

	$('li a, .ul-head a').not('.li-active').hover(
	function(){
		$(this).addClass('li-hover');
	},
	function(){
		$(this).removeClass('li-hover');
	});

	$('#more-info-1').click(function() {
		$('#more-info-1-hidden').toggle('fast', function(){
			if( $('#more-info-1').html() == 'MORE' )
			{
				$('#more-info-1').html('LESS');
			}
			else
			{
				$('#more-info-1').html('MORE');
			}
		});
	});

	$('#more-info-2').click(function() {
		$('#more-info-2-hidden').toggle('fast', function(){
			if( $('#more-info-2').html() == 'MORE' )
			{
				$('#more-info-2').html('LESS');
			}
			else
			{
				$('#more-info-2').html('MORE');
			}
		});
	});


	$('#product-button').hoverIntent({
		sensitivity: 1,
		interval: 50,
		over: function(){
			$('#dropdown').fadeIn('fast');
		},
		timeout: 500,
		out: function(){
			$('#dropdown').fadeOut('fast');
		}
	});

	$('.button-link').hover(
		function(){
			$(this).addClass('button-content-hover');
		},
		function(){
			$(this).removeClass('button-content-hover');
		}
	);

});

