//IMAGES HOVER
$(document).ready(function(){
$("img.a").hover(function() {
  $(this).stop().animate({opacity: ".7"}, 'slow');
},
function() {
  $(this).stop().animate({opacity: "1"}, 'slow'); 
});
});


$(document).ready(function(){
$("img.b").hover(function() {
  $(this).stop().animate({opacity: "1"}, 'slow');
},
function() {
  $(this).stop().animate({opacity: "0"}, 'slow'); 
});
});

//SLIDESHOW
function slideSwitch() {
	var $active = $('#slideshow IMG.active');

	if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

	// use this to pull the images in the order they appear in the markup
	var $next =  $active.next().length ? $active.next()
		: $('#slideshow IMG:first');


	$active.addClass('last-active');

	$next.css({opacity: 0.0})
		.addClass('active')
		.animate({opacity: 1.0}, 1000, function() {
			$active.removeClass('active last-active');
		});
}

$(function() {
	setInterval( "slideSwitch()", 5000 );
});

//PROCURAR
$(document).ready(function()
{
	$(".defaultText").focus(function(srcc)
	{
		if ($(this).val() == $(this)[0].title)
		{
			$(this).removeClass("defaultTextActive");
			$(this).val("");
		}
	});
	
	$(".defaultText").blur(function()
	{
		if ($(this).val() == "")
		{
			$(this).addClass("defaultTextActive");
			$(this).val($(this)[0].title);
		}
	});
	
	$(".defaultText").blur();        
});


