
function limpar (objeto, msg) {
    if (objeto.value == msg)objeto.value = '';
}

function mostrar (objeto, msg) {
    if (objeto.value == '')objeto.value = msg;

}
$(function(){
    // ######### AUX DO SITE ###########
    $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) {
        $(pager).find('a').removeClass('activeSlide')
        .filter('a:eq('+currSlideIndex+')').addClass('activeSlide');
    };
    $('#DESTAQUES').after('<div id="nav_pics" class="BannerNav" style="">').cycle({
        fx:     'scrollVert',
        sync: true,
        speed:  1000,
        timeout: 5000,
        speedIn:  400,
        speedOut: 400,
        easeIn:  'backout',
        easeOut: 'backout',
        pager:  '#nav_pics'
    });
    $('.Slide').after('<div id="nav_pics" class="BannerNavFotos" style="">').cycle({
        fx:     'fade',
        sync: true,
        speed:  1000,
        timeout: 5000,
        pager:  '#nav_pics'
    });


    //SELECT ESTILIZADO NO TOPO
    $(".Select li ul").fadeOut(50);
    $(".Select li").toggle(
        function() {
            $("ul", this).fadeIn(50);
        },
        function() {
            $("ul", this).fadeOut(50);
        });
    $(".Select li ul li a").click(function() {
        $(".Select li ul").fadeOut(50);
        $(this).parents(".Select").find("li a:first").html($(this).html());
        $(this).parents(".Select").find("li input").val($(this).attr("name"));
    });
    $("body").click(function() {
        $(".Select li ul").fadeOut(50);
    });
    $('#MENU li').hover(
        function() {
            $('ul', this).fadeIn(100)//.animate({height:'toggle'},{queue:true,duration:200});
            $(this).addClass("Ativo");
        },
        function() {
            $('ul', this).fadeOut(100)//.animate({height:'toggle'},{queue:true,duration:200});
            $(this).removeClass("Ativo");
        });
    $('.ListaAtracoesNovo li').hover(
        function() {
            $(this).addClass("Ativo");
        },
        function() {
            $(this).removeClass("Ativo");
        });
   /* $('#DOMINGO').toggle(
        function() {
            $('#tabelaDOMINGO').fadeIn(100)//.animate({height:'toggle'},{queue:true,duration:200});
            $(this).addClass("Ativo");
        },
        function() {
            $('#tabelaDOMINGO').fadeOut(100)//.animate({height:'toggle'},{queue:true,duration:200});
            $(this).removeClass("Ativo");
        });*/

	$(".abreMap").colorbox({ width:'310px', height:'330px', iframe:true});
	$(".abreIngressos").colorbox({ width:'310px', height:'230px', iframe:true});
	
	$(".verFoto").colorbox();
	
	
    $("a[rel^='prettyPhoto']").prettyPhoto();
	
	$('.video').click(function(){				
			
			$('#youtube').val("Aguarde... carregando...");
			$.post("/ajax/video.php/",{video: $(this).attr("value")},
				function(data){					 					 
				 $("#youtube").html(data);
				}
			);							
		});
});
function Flash(src) {
    document.write(src);
}

