function activeElement(){replaceClass(activeElem,"sprite-blue_"+activeElem,"sprite-yellow_"+activeElem);displayText(activeElem+"text","block");prevElem!=""&&replaceClass("solutions-box-top","sprite-line_triangle_"+prevElem,"sprite-line_triangle_"+activeElem);inactiveElements(activeElem);prevElem=activeElem}function inactiveElements(){switch(activeElem){case"profound":inactiveElement("kc");inactiveElement("custom");inactiveElement("academic");break;case"kc":inactiveElement("profound");inactiveElement("custom");inactiveElement("academic");break;case"custom":inactiveElement("profound");inactiveElement("kc");inactiveElement("academic");break;default:inactiveElement("profound");inactiveElement("kc");inactiveElement("custom")}}function inactiveElement(n){replaceClass(n,"sprite-yellow_"+n,"sprite-blue_"+n);displayText(n+"text","none")}function replaceClass(n,t,i){$("#"+n).removeClass(""+t+"").addClass(""+i+"")}function displayText(n,t){$("#"+n).css("display",""+t+"")}var activeElem="",prevElem="";$(document).ready(function(){$(".sprite-logo_small_white").click(function(){$("html,body").animate({scrollTop:0},"slow")});$(".dropdownnav ul li button").click(function(){$(".dropdownmenu").css({display:"block"})});$(".dropdownmenu").mouseleave(function(){$(".dropdownmenu").css({display:"none"})});$(".solution").on("mouseenter",function(){$this=$(this);$this.addClass("selected");$this.siblings().removeClass("selected")});$(".sol-mrdc").on("mouseenter",function(){$desc_mrdc=$("#desc-mrdc");$desc_mrdc.removeClass("hidden");$desc_mrdc.siblings().addClass("hidden")});$(".sol-knowledge").on("mouseenter",function(){$desc_knowledge=$("#desc-knowledge");$desc_knowledge.removeClass("hidden");$desc_knowledge.siblings().addClass("hidden")});$(".sol-custom").on("mouseenter",function(){$desc_custom=$("#desc-custom");$desc_custom.removeClass("hidden");$desc_custom.siblings().addClass("hidden")});$(".sol-academic").on("mouseenter",function(){$desc_academic=$("#desc-academic");$desc_academic.removeClass("hidden");$desc_academic.siblings().addClass("hidden")});$(".search button").click(function(){$(this).val()!=""&&$("#searchform").submit()});activeElem==""&&(activeElem="profound");prevElem==""&&(prevElem=activeElem);displayText("kctext","none");displayText("customtext","none");displayText("academictext","none");$("#profound").hover(function(){activeElem="profound";activeElement()});$("#kc").hover(function(){activeElem="kc";activeElement()});$("#custom").hover(function(){activeElem="custom";activeElement()});$("#academic").hover(function(){activeElem="academic";activeElement()});$("#tabReports").click(function(){$("#sectionReports").is(":visible")||($("#sectionReports").toggle(),$("#sectionBlogs").toggle())});$("#tabBlogs").click(function(){$("#sectionBlogs").is(":visible")||($("#sectionReports").toggle(),$("#sectionBlogs").toggle())});$("#tabPublisher").click(function(){$("#sectionPublisher").is(":visible")||($("#sectionPublisher").toggle(),$("#sectionCategory").toggle())});$("#tabCategory").click(function(){$("#sectionCategory").is(":visible")||($("#sectionPublisher").toggle(),$("#sectionCategory").toggle())});$("#livechat").click(function(){$("#aLHNBTN").click()})});$(window).load(function(){var n={init:function(){var t=2e3,i=$(".hp-rotating-item").length,n=0,r;$(".hp-rotating-item").eq(n).fadeIn(1e3);r=setInterval(function(){$(".hp-rotating-item").eq(n).fadeOut(t);n==i-1?n=0:n++;$(".hp-rotating-item").eq(n).fadeIn(t)},1e4)}};n.init()})