﻿$(function(){

	$('form input').click(function(){
		if($(this).val() == $(this).attr('rel')){
			$(this).val("");
		}
	});
	$('form input').blur(function(){	
		if($(this).val()==""){
			$(this).val($(this).attr('rel'));
		}
		
	});
});
/**************************************************************************ANIMA BOTÕES*/

$(document).ready(function(){
  $('.btns').append('<span class="hover"></span>').each(function (){
    var $span = $('> span.hover', this).css('opacity', 0);
      $(this).hover(function (){
        $span.stop().fadeTo(600, 1);
      }, function (){
      $span.stop().fadeTo(600, 0);
    });
  });
});
/***************************************************************************************/


/**********************************************************************************ABAS*/
$(document).ready(function(){
  $("a.tab").click(function () {
	  $(".active").removeClass("active");
	  $(this).addClass("active");
	  $(".content").slideUp();
	  var content_show = $(this).attr("title");
	  $("#"+content_show).slideDown();
  });
});
/***************************************************************************************/


/*****************************************************************************ACCORDION*/
$(document).ready(function(){
  $('.acc_container').hide();
  $('.acc_trigger:first').addClass('active').next().show();
  $('.acc_trigger').click(function(){
	if( $(this).next().is(':hidden')){
		$('.acc_trigger').removeClass('active').next().slideUp();
		$(this).toggleClass('active').next().slideDown();
	}
	return false;
  });
});
/***************************************************************************************/


/**********************************************************************RAIO E CHECK BOX*/
$(document).ready(function() { 
	$(".radio, .checkbox").hide();		
	$("#form-consulta input").each(function(i){
		if($(this).is(':checked')) {
				$(this).siblings('label').addClass("ativo");
		}
	});
	// Radios estilizados
	$(".list_radio label").click(function() {
			$(this).parent().siblings().children("label").removeClass("ativo");
			$(this).addClass("ativo");
			$(this).siblings('input[type=radio]').attr("checked", "checked"); 
	});
	// Checkboxs estilizados
	$(".list_check label").toggle(
		function() {
			$(this).siblings('input[type=checkbox]').attr("checked", "checked"); 
			$(this).addClass("ativo");
		},		function() {
			$(this).siblings('input[type=checkbox]').attr("checked", ""); 
			$(this).removeClass("ativo");
	});
});
/***************************************************************************************/


/********************************************************************************SELECT*/
$(function(){ 
  if ($('.select-wrapper').size () > 0){
	$('.select-wrapper:not(.wide) select').selectmenu({
		transferClasses: true,
		menuWidth: 60
	});
	$('.select-wrapper.wide select').selectmenu({
		transferClasses: true,
		menuWidth: 60
	});
  }
});
/***************************************************************************************/


/*********************************************************************************FOTOS*/
asljQuery(function(){asljQuery(document).ready(function(){if (!window.sexylightboxEnabled) {SexyLightbox.initialize({"path":"","name":"SLB","zIndex":65555,"color":"new_black","find":"sexylightbox","imagesdir":"imagens","background":"bgSexy.png","backgroundIE":"bgSexy.gif","closeButton":"SexyClose.png","showDuration":200,"showEffect":"linear","closeDuration":400,"closeEffect":"linear","moveDuration":932,"resizeDuration":932,"moveEffect":"easeOutBack","resizeEffect":"easeOutBack","previewWidth":100,"previewHeight":100,"carousel":true,"carousel_visible":6,"reflHeight":56,"reflGap":2,"yRadius":40,"xPos":285,"yPos":120,"titleBox":".cloud_carousel_title"});} if (!window.sexylightboxEnabled) {window.sexylightboxEnabled = true;}})});asljQuery(function() {asljQuery("#aslcarousel_artgallery_4ea018f20b602").jCarouselLite({circular: false, visible: 8, scroll: 1, btnNext: "#aslcarouselnext_artgallery_4ea018f20b602", btnPrev: "#aslcarouselprev_artgallery_4ea018f20b602"});});
/***************************************************************************************/




