$(document).ready(function(){
	// testimonials toggle
	$('.result-full').hide().before('<div class="read-full-answer">Read the Answer &gt;</div>');
	$('.read-full-answer').click(function(){
		$(this).next().slideToggle();
		if ($(this).text() == 'Read the Answer >') {
			$(this).text('< Hide Answer');
		} else {
			$(this).text('Read the Answer >');
		}
	});
	
	// png fix for old IE browsers
	$(document).pngFix();
	
	// round corners
	$('.RoundCorner').corner("10px");

	// drop down nav
	$('ul#nav li').hover(
		function(){ $(this).children('ul').show(); },
		function(){ $(this).children('ul').hide(); }
	);

	// anti spam form validation
	$('input,textarea').keypress(function(){
		this.form.elements.pv.value='verified';
	});

	// banner slideshow
	$('.testimonials-sidebar').cycle({
		height:  '170px',	// container height 
	    fade:     1,		// true for fade, false for slide 
	    speed:    2000,		// any valid fx speed value 
	    timeout:  8000,	// ms duration for each slide 
	    random:   1,       // true for random, false for sequence 
	    fit:      0,       // force slides to fit container 
	    pause:    0,       // true to enable "pause on hover" 
	    autostop: 0        // true to end slideshow after X slides have been shown (where X == slide count) (note that if random == true not all slides are guaranteed to have been shown) 
	});
});
	

