$(document).ready(function(e) { $('div#menu_top').hide(); // hide button first $(window).scroll(function () { if ($(this).scrollTop() > 180) { $('#menu_top').fadeIn(); } else { $('#menu_top').fadeOut(); } }); }); $(document).ready(function() { $('#coin-slider').coinslider({ width: 950, height:270, navigation: true, delay: 4000 }); }); function abrir_janela( url,largura,altura ) { window.open( url, "","width="+largura+",height="+altura+",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=NO" ); } //////// CARROUSSEL ///// $(function(){ $(".carrousel_fotos").jCarouselLite({ auto: 3500, speed: 500, visible: 1 }) $(".carrousel_mural").jCarouselLite({ auto: 3000, speed: 500, visible: 2, vertical: true }) $(".carrousel_publicidade").jCarouselLite({ auto: 4000, speed: 500, visible: 3, vertical: true }) $(".carrousel_publicidade1").jCarouselLite({ auto: 4500, speed: 500, visible: 1, vertical: true }) $(".carrousel_pubmeio").jCarouselLite({ auto: 4500, speed: 500, visible: 2 }) $(".carrousel_pubcabecalho").jCarouselLite({ auto: 3500, speed: 500, visible: 1, vertical: true }) $(".carrousel_noticias").jCarouselLite({ auto: 5000, speed: 500, visible: 1 }) $(".carrousel_noticias2").jCarouselLite({ auto: 2500, speed: 500, visible: 1 }) $(".carrousel_vitrine").jCarouselLite({ auto: 3500, speed: 500, visible: 1 }) $(".carrousel_videos").jCarouselLite({ auto: 4000, speed: 500, visible: 1 }) $(".carrousel_videos2").jCarouselLite({ auto: 4000, speed: 500, visible: 1 }) $(".carrousel_pacote").jCarouselLite({ auto: 4500, speed: 500, visible: 1 }) $(".carrousel_download").jCarouselLite({ auto: 3000, speed: 500, visible: 1 }) $(".carrousel_fotos_cidade").jCarouselLite({ auto: 2500, speed: 500, visible: 1 }) $(".carrousel_equipe").jCarouselLite({ auto: 2000, speed: 500, visible: 1 }) $(".carrousel_perfil").jCarouselLite({ auto: 4500, speed: 500, visible: 1 }) $(".carrousel_pedidomusica").jCarouselLite({ auto: 4500, speed: 500, visible: 2, vertical: true }) $(".carrousel_ouvintes").jCarouselLite({ auto: 2000, speed: 500, visible: 1 }) $(".carrousel_promocao").jCarouselLite({ auto: 3000, speed: 500, visible: 1 }) }) ///////// DD ROUND //////// DD_roundies.addRule('span.titulos2', '5px 5px 0 0', true); DD_roundies.addRule('img.equipe', '5px 5px 5px 5px', true); DD_roundies.addRule('img.fotos', '5px 5px 0px 0px', true); DD_roundies.addRule('div.equipe2', '8px 8px 8px 8px', true); DD_roundies.addRule('div.menusite', '5px 5px 5px 5px', true); DD_roundies.addRule('div.home_redondo', '5px 5px 5px 5px', true); DD_roundies.addRule('div.redondo-baixo', '0px 0px 5px 5px', true); DD_roundies.addRule('iframe.noar', '8px 8px 8px 8px', true); DD_roundies.addRule('a.menus', '5px 5px 5px 5px', true); DD_roundies.addRule('a.linkbotao', '5px 5px 5px 5px', true); DD_roundies.addRule('a.linkbotao_pedir', '5px 5px 5px 5px', true); DD_roundies.addRule('a.linkbotao2', '5px 5px 5px 5px', true); DD_roundies.addRule('input.linkbotao2', '5px 5px 5px 5px', true); DD_roundies.addRule('a.galeria_titulo1', '0px 0px 5px 5px', true); DD_roundies.addRule('a.galeria_titulo', '0px 0px 5px 5px', true); DD_roundies.addRule('a.mural_titulo', '5px 5px 5px 5px', true); ////////// FANCYBOX //////// $(document).ready(function() { $("#add_recado").fancybox({ 'width' : '45%', 'height' : '55%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); }); $(document).ready(function() { $("#resultado").fancybox({ 'width' : '40%', 'height' : '50%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); }); $(document).ready(function() { $("#add_depoimento").fancybox({ 'width' : '45%', 'height' : '55%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); }); $(document).ready(function() { $("#add_musica").fancybox({ 'width' : '45%', 'height' : '55%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); }); /////// ABAS function JTabControl(divMaster,tabWidth,tabHeight) { this.tabs = 0; this.addTab = addTab; this.id = divMaster; Construtor(tabWidth,tabHeight); this.Container = getObj(divMaster+".ContainerDiv"); this.Header = getObj(divMaster+".HeaderDiv"); this.Body = getObj(divMaster+".BodyDiv"); function Construtor(tabWidth,tabHeight) { var idContainer = divMaster+".ContainerDiv"; var idHeader = divMaster+".HeaderDiv"; var idBody = divMaster+".BodyDiv"; this.Container = getObj(divMaster); this.Container.innerHTML = "
" + this.Container.innerHTML; this.Container = document.getElementById(idContainer); this.Container.innerHTML = "
" + "
" this.Header = getObj(idHeader); this.Body = getObj(idBody); this.Container.style.width = tabWidth; this.Container.style.height = tabHeight; } function addTab(divTab,TitleTab) { var htmlHeader = ""; var htmlBody = ""; var objDivOld = getObj(divTab); var bodyClass = "jTabBodyHidden"; var headerClass = "jTabHeaderHidden"; if(!TitleTab) TitleTab = divTab; if(this.tabs == 0) bodyClass = "jTabBodyInline"; if(this.tabs == 0) headerClass = "jTabHeaderInline"; htmlHeader = ""+TitleTab+" "; htmlBody = " "+objDivOld.innerHTML+""; objDivOld.innerHTML = ""; Header.innerHTML = Header.innerHTML + htmlHeader; Body.innerHTML = Body.innerHTML + htmlBody; this.tabs++; } } function changeJTabControl(Tab) { var id = Tab.split("."); var i = 0; var j = 0; while(getObj(id[0]+".Header.Tab."+i)) { getObj(id[0]+".Header.Tab."+i).className = "jTabHeaderHidden" i++; } getObj(Tab).className = "jTabHeaderInline"; i=0; while(getObj(id[0]+".Body.Tab."+j)) { getObj(id[0]+".Body.Tab."+j).className = "jTabBodyHidden" j++; } getObj(id[0]+".Body.Tab."+id[3]).className = "jTabBodyInline"; } function getObj(idObj) { return document.getElementById(idObj); } $(function(){ $("ul.menu2 li").hover(function(){ $(this).addClass("hover"); $('ul:first',this).css('visibility', 'visible'); }, function(){ $(this).removeClass("hover"); $('ul:first',this).css('visibility', 'hidden'); }); });