// JavaScript Document

	$.fn.replace = function(o) { return this.after(o).remove(); }; 

	$(document).ready(function() {
		var count = 0;
		var length = $(".mini_testimonial").length;
		var mta = $(".mini_testimonial");
		var clones = mta.clone().addClass("fade_testimonial");
		mta.eq(length-1).after(clones);
		//clones.show();
		//mta.eq(count).after($(this).clone().addClass("fade_testimonial")).remove(); //.insertAfter(this);
		
		$(".fade_testimonial").eq(count).fadeIn("def", function() {
			mta.eq(count).show();
			$(this).hide(); 
		});	
		

		var intID = setInterval(function() {
			
			mta.eq(count % length).hide();
			clones.eq(count % length).show();
			
			$(".fade_testimonial").eq(count++ % length).fadeOut(800, function() {
				$(this).hide(); 
			});	
			
			$(".fade_testimonial").eq(count % length).fadeIn(800, function() {
				mta.eq(count % length).show();
				$(this).hide(); 
			});				
			//$(".mini_testimonial").eq(count++ % length).fadeOut(800);
			//$(".mini_testimonial").eq(count % length).fadeIn(800);
		}, 4500);				
	});
	
	$(document).ready( function() {
		if ($("#audio_variables").length != 0) {
			$("#audio_variables").hide();
			$("#toggle").click( function(e) {
				$("#audio_variables").toggle("slow");
				e.preventDefault();
			});
		}
	});	
	
var lpMTagConfig = {'lpServer' : "server.iad.liveperson.net",'lpNumber' : "69484056",'lpProtocol' : "http"}; function lpAddMonitorTag(src){if(typeof(src)=='undefined'||typeof(src)=='object'){src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';}if(src.indexOf('http')!=0){src=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;}else{if(src.indexOf('site=')<0){if(src.indexOf('?')<0)src=src+'?';else src=src+'&';src=src+'site='+lpMTagConfig.lpNumber;}};var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('charset','iso-8859-1');s.setAttribute('src',src);document.getElementsByTagName('head').item(0).appendChild(s);} if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); else window.addEventListener("load",lpAddMonitorTag,false);