$(function() {

	$('.bottom-logo-nav ul li').mouseover(function() {
		$(this).css({'background': '#e9d9ea'});
	}).mouseout(function() {
		$(this).css({'background': '#FFF'});
	});

	$('.bottom-logo-nav > ul > li > a').click(function(evt) {
		evt.preventDefault();
	});

	$('.bottom-logo-nav > ul > li').mouseover(function() {
		
		var dropdownID = '#' + $(this).attr('rel');

		$(dropdownID).show();

	}).mouseout(function() {

		var dropdownID = '#' + $(this).attr('rel');
		
		$(dropdownID).hide();

	});

	var testimonials = [

		{
			testimonial: '"I have four cats, two of which think my bedtime is their playtime. That\'s when I pop the Music My Pet CD on, and within five minutes, they miraculously settle down for a snooze."',
			author: 'Susan Richard',
			text: 'Anchor / 1010 WINS News Host',
			site: 'www.allforanimals.tv'
		},

		{
			testimonial: '"I have been playing it throughout the day and at night, when I leave, I turn it up.  I have found that when I come in the dogs are quieter and more relaxed, the other caregiver Kathy also noticed the difference."',
			author: 'Lupie, Dog Caregiver',
			text: 'Best Friends Animal Society',
			site: 'Bestfriends.org'
		},
		
		{
			testimonial: '"Fantastic!  I\'d love to get the word out about your product."',
			author: 'Dr. Ernie  Ward',
			text: '(guest Veterinarian on Rachael Ray TV  show)',
			site: ''
		}
		
		
		];

	$('#testimonials blockquote, #testimonial-author').hide();

	var tick = function() {
		var first = testimonials[0];
		testimonials = testimonials.slice(1);
		testimonials.push(first);
		var author = '&ndash; <strong>' + first.author + '</strong>, ' + first.text + ' <em>' + first.site + '</em>';
		$('#testimonials blockquote').html(first.testimonial);
		$('#testimonial-author').html(author);

		$('#testimonials blockquote').fadeIn().delay(9000).fadeOut();
		$('#testimonial-author').fadeIn().delay(9000).fadeOut(function() {
			setTimeout(function() {
				tick();
			}, 0);
		});
	};
	tick();

});

