$(document).ready(function(){

	//CYCLE-EVENTOS
	$('#box_home_01 div.wrap_cycle').cycle({ 
		fx: 'scrollHorz', 
		speed: 'slow', 
		timeout: 15000, 
		prev:'#evento_left', 
    	next:'#evento_right'
	});
	
	//ASPAS-RECADO
	$('#box_home_03 div.wrap_cycle dl dt').prepend('<span class=\"first_aspa\"></>');
	$('#box_home_03 div.wrap_cycle dl dt').append('<span class=\"last_aspa\"></>');
		
	//CYCLE-RECADOS
	$('#box_home_03 div.wrap_cycle').cycle({ 
		fx: 'scrollHorz', 
		speed: 'slow', 
		timeout: 10000, 
		prev:'#recado_left', 
    	next:'#recado_right'
	});
	
	//CYCLE-CINEMA
	$('#wrap_cinema_cycle div.cinema_cycle').cycle({ 
		fx: 'scrollHorz', 
		speed: 'slow', 
		timeout: 5000, 
		prev:'#filme_left', 
    	next:'#filme_right'
	});	
				
	//VALOR-INPUT
	$('.text_busca').focus(function() {
		if($(this).val() == 'palavra\-chave') {
			$(this).val('');
		}
	});

	$('.text_busca').blur(function() {		
		if($(this).val() == '') {
			$(this).val('palavra\-chave')
		}
	});
		
	//BUSCA
	$('.form_transform').jqTransform();
	
	//MENU-LEFT
	$('#home_col_left nav ul li:first-child').addClass('first');
	$('#home_col_left nav ul li:last-child').addClass('last');
	$('#home_col_left nav ul li').hover(function(){
		$(this).addClass('hover');
	}, function(){
		$(this).removeClass('hover');
	});
	
	//WEATHER
	$('#wrap_weather p:last-child').css({'font-size':'14px','line-height':'14px'});
	
	//BUSCA-TOP
	$('.bt_buscar').hover(function(){
		$(this).attr('src','../imagens/bt_buscar_hover.png');
	}, function(){
		$(this).attr('src','../imagens/bt_buscar.png');
	});
	
	$('.bt_buscar').focus(function() {
		$(this).attr('src','../imagens/bt_buscar_hover.png');
	});

	$('.bt_buscar').blur(function() {		
		$(this).attr('src','../imagens/bt_buscar.png');
	});
	
	//VIDEO-MASCARA
	$('#box_home_02 dl dd a, #box_home_02 dl dt a').click(function(){
		$(this).parent().parent().fadeOut();
	});
	
	$('#slide_fotos').cycle({  
		fx: 'fade',  
		pager: '#pager'  
	});  
});
