﻿jQuery(document).ready(function(){var cpMediaBox=jQuery("#cpMediaBox");$indice1=cpMediaBox.find(".mbIndice");$indice2=cpMediaBox.find(".mbIndice2");$indice3=cpMediaBox.find(".mbIndice3");$indice4=cpMediaBox.find(".mbIndice4");$indicesMB=jQuery("#indicesMB");ConfiguraNavegacaoMB();iMB=1;stopMB=false;setTimeout(AlternaMB,5000);setHeight("CtNavegacaoEsq","CtNavegacaoDir","CtMateriaEspecial")});function ConfiguraNavegacaoMB(){$indicesMB.children().click(function(){AtivaInativaElementosMB(this);stopMB=true})}function AlternaMB(){if(stopMB===false){AtivaInativaElementosMB($indicesMB.children()[iMB]);if(iMB===3){iMB=0}else{iMB+=1}setTimeout(AlternaMB,5000)}}function AtivaInativaElementosMB(elemento){var indices=$indicesMB.children();indices.removeClass("IndiceAtivo");indices.addClass("IndiceInativo");var indice=jQuery(elemento);indice.removeClass("IndiceInativo");indice.addClass("IndiceAtivo");switch(indice.attr("id")){case"mbIndice":$indice1.fadeIn(500);$indice2.hide();$indice3.hide();$indice4.hide();break;case"mbIndice2":$indice1.hide();$indice2.fadeIn(500);$indice3.hide();$indice4.hide();break;case"mbIndice3":$indice1.hide();$indice2.hide();$indice3.fadeIn(500);$indice4.hide();break;case"mbIndice4":$indice1.hide();$indice2.hide();$indice3.hide();$indice4.fadeIn(500);break}};
