$(document).ready(function(){
	if ($('#rotate-box').length>0) {
		$('#rotate-box UL').cycle({ 
			fx:     'fade', 
		    speed:  2000, 
		    timeout: 7700
		});
	}	
	
	if ($('div.wpcf7-response-output').length > 0) {
		$('div.wpcf7-response-output').attr('id', 'mess-delete');
		$('.wpcf7').prepend('<div class="wpcf7-response-output" id="mess-new">'+$('div#mess-delete').html()+'</div>');
		$('#mess-new').addClass(document.getElementById("mess-delete").className);
		$('div#mess-delete').replaceWith('');
	}
	
	
	$('A.testim-toggle').click(function(){
		//var cur_id = $($(this).attr('href');
		if ($($(this).attr('href')).hasClass('open-testim')) {
			$($(this).attr('href')).slideUp(600, function(){
				$(this).removeClass('open-testim');
			});
		} else {
			$('.open-testim').slideUp(600).removeClass('open-testim');
			$($(this).attr('href')).slideDown(600, function(){
				$(this).addClass('open-testim');
			});
			
		}
		return false;
	});

});
