$(document).ready(function(){
	$("#inputBuscar").focus(function(){
		$("#formBuscar").css("background", "#ff6b09");
		$(this).css("color", "#FFF");
		if($(this).val() == "O que você procura?"){
			$(this).val("");
		}
	}).blur(function(){
		$("#formBuscar").css("background", "#E3E3E3");
		$(this).css("color", "#777");
		if($(this).val() == ""){
			$(this).val("O que você procura?");
		}
	});
	
	$("#abrirCompartilhar").click(function(){
		$("#compartilhar").fadeIn(300);
		
		return false;
	});
	
		 $('.scroll').cycle({
		fx: 'scrollHorz',
		//timeout: 0,
		next:   '.seta-right2', 
    	prev:   '.seta-left2',
		pause: true
		
	});
	
	 $('.patrocinadores').cycle({
		fx: 'scrollHorz',
		//timeout: 0,
		next:   '.seta-right', 
    	prev:   '.seta-left'
		
	});
	
	$('#banner').cycle({
		fx: 'fade',
		pause: true
		});
	
	/////////Video Player
	
	 $("#fundo").css({
                'height': $(document).height(),
                'width': $(window).width()
        });
        $(".abrirVideo").click(function () {
                $(".nelson").css("height", "700px");
                $(".nelson").animate({
                        top: '50%'
                });
                $("#fundo").css("height", $("body").css("height"));
                $("#fundo").fadeIn("fast");
        });
        $("#fundo, #cclose-ply").click(function () {
                $("#fundo").fadeOut("slow");
                $(".nelson").css({
                        "height": "0px",
                        "top": "30%"
                });
        });
	
	//////////Final Video player
	
	////////// Slide Menu Programas
	$("#slideProg").hover(function() {
		
		$("#nav-programas").slideDown();
	
	});
	
	$("#nav-programas").mouseleave(function() {
		
		$(this).slideUp();
	
	});
	
	 $("#nav-programas ul li").hover(function () {
                $(this).addClass("hover");
        }, function () {
                $(this).removeClass("hover");
        });
	
	////////// Final Slide Menu Programas
	
	
	////////// Twitter e facebook topo
	
	
	$(".socImg").hover(function() {
		
		$(".socTwitter").stop().animate({
            width: '230px',
			opacity: '1',
			paddingLeft: '10px',
			paddingRight: '30px'
        }, "fast");
		
		},function() {
		
		$(".socTwitter").stop().animate({
            width: '0',
			opacity: '0',
			paddingLeft: '0',
			paddingRight: '0'
        }, "fast")
	});
	
	////////// Final Twitter e facebook topo
	
	$('#banner').cycle({

    fx:     'fade'
});

$('#imgBanner').cycle({

    fx:     'fade',
	pager: '#pager',
	pagerAnchorBuilder: function(idx, slide) { 
        return '<li><a href="#">' + slide.title + '	</a></li>'; 
    } 

});
	
	/* $("#mute-btn").toggle(
      function () {
        $("#player, #window").css({	'height':$(document).height(),
					'width':$(window).width()
					});
      },
      function () {
        $("#player, #window").css({	'height':'360px',
					'width':'640px'
					});
      }
    );
	
});

$(window).resize(function () {
	
		$(".pp").css({	'height':$(document).height(),
					'width':$(window).width()
					});
	*/
	
	
	});
	
