var _animateTabs=true;var _animateTimer=null;jQuery.LoadFrontPageTabs=function(){$("#content-tabs dl dt span").each(function(){$(this).mouseover(function(){_animateTabs=false;jQuery.InitTab(this)}),$(this).click(function(){var b=$("#content-placeholder div.banner");b.click()})});var a=$("#content-tabs dl dt.selected span");jQuery.InitTab(a);_animateTimer=setInterval("jQuery.AnimateTabs()",8000)};jQuery.InitTab=function(c){var b=$(c).parent().next();$("#content-placeholder").html(b.html());var a=$("#content-placeholder div.banner");a.attr("title",MenigaLang.translate("ReadMore"));a.click(function(){_animateTabs=false;$(this).find("h1").setClass("alt");$(this).find("p").show();$(this).attr("title","");$(this).css("cursor","default");var d=$(this).find("h3");var e=d.html();var f=e.replace("<br />","").replace("<br/>","").replace("<br>","").replace("<BR>"," ");d.html(f);d.setClass("alt")});$("#content-tabs dl dt").each(function(){$(this).clearClass()});$(c).parent().setClass("selected")};jQuery.AnimateTabs=function(){if(_animateTabs){var c=$("#content-tabs dl dt.selected");var b=c.parent();var a=null;if(b.hasClass("last")){a=b.parent().find("dl:eq(0) dt span")}else{a=c.parent().next().find("dt span")}jQuery.InitTab(a)}else{clearInterval(_animateTimer)}};var _currentTestimonial=null;var _testimonialsTimer=null;jQuery.LoadTestimonials=function(){$("#testimonials-quotes blockquote").each(function(){$(this).hide()});_currentTestimonial=$("#testimonials-quotes blockquote:eq(0)");jQuery.CleanTestimonial(_currentTestimonial);_currentTestimonial.show();_testimonialsTimer=setInterval("jQuery.AnimateTestimonials()",12000);$("#testimonials-quotes").clearClass()};jQuery.AnimateTestimonials=function(){if(_currentTestimonial.size()>0){var a=_currentTestimonial.next();if(a.size()==0){a=$("#testimonials-quotes blockquote:eq(0)")}_currentTestimonial.hide();_currentTestimonial=a;jQuery.CleanTestimonial(a);a.show()}else{clearInterval(_testimonialsTimer)}};jQuery.CleanTestimonial=function(b){var c=b.find("p").html();if(c==null){return}var a=b.find("em").html();c=c.substring(0,c.toLowerCase().indexOf("<br"));if(c.length>280){b.html("<p>"+c.substring(0,280)+"...<br/><em>"+a+"</em></p>")}};var _credentialingTimer=null;jQuery.LoadCredentialing=function(){_credentialingTimer=setInterval("jQuery.UpdateCredentialing()",5000)};jQuery.UpdateCredentialing=function(){jQuery.fn.menigapost({url:"/Home/UpdateCredentialing",callback:function(a){$("#credentialing-amount").html(a)},showUpdate:false})};
