/* * @copyright 2010 Advanced Care Solutions * @author Christopher Rahauiser */ (function(c){swfobject.embedSWF("flash/advanced_care_solutions.swf","homepage-flash",950,382,"9.0.0",null,null,{wmode:"transparent"});var a=c("#testimonial-container p").each(function(e){var f=c(this);if(e!=0){f.hide();}f.css({position:"absolute",top:0,left:0});});var d=0;setInterval(function(){a.eq(d).fadeOut("slow");d++;if(d==a.length){d=0;}a.eq(d).fadeIn("slow");},9000);var b=300;c("#service-choices-content").hide().find("div.service-tooltip").hide().each(function(){var e=c(this);e.width(b).append(c('X Close').click(function(f){f.preventDefault();c(this).parent().hide();}));}).end().show();c("a.service-content").click(function(g){g.preventDefault();var i=c("#"+this.id+"-content");var h=g.pageX+30;var f=g.pageY-30;var e=c(window).width();if((h+b)>e){h=e-(b*2)-30;}c("div.service-tooltip").each(function(){if(this!=i[0]&&this.style.display!="none"){c(this).hide();}});i.show().css({position:"absolute",top:f,left:h});});})(jQuery);