$(document).ready(function() {
	// Navigation DropDown
	$('#navigation ul li').hover(
		function(){
			$(this).find('a:eq(0)').addClass('hover');
			$(this).find('.dd').show();
			$(this).find('.dd').css('width', $(this).find('.dd').width());
		}, 
		function(){
			$(this).find('a:eq(0)').removeClass('hover');
			$(this).find('.dd').hide();
		}
	);
	
	$('.box .title a.show').click(
		function () { 
				$(this).hide();
				$(this).parent().find('.hide').show();
				$(this).parents('.box').find('.text').stop(true , true).slideDown();
				return false;
	 });
		 
	$('.box .title a.hide').click(
		function () { 
				$(this).hide();
				$(this).parent().find('.show').show();
				$(this).parents('.box').find('.text').stop(true , true).slideUp();
				return false;
	 });
	 
	$('.buttons a.show').click(
		function () { 
			$(this).parents('.row').find('.title a').hide();
			$(this).parents('.row').find('.title a.hide').show();
			$(this).parents('.row').find('.text').stop(true , true).slideDown();
			return false;
	 });
	 
	$('.row .buttons a.hide').click(
		function () { 
			$(this).parents('.row').find('.title a').hide();
			$(this).parents('.row').find('.title a.show').show();
			$(this).parents('.row').find('.text').stop(true , true).slideUp();
			return false;
	 });
	 
	 // Testimonials Rotator
	 
	 $("#testimonials .text").rand(3).css('display', 'block').end();
	 
	
});
