$(function() { 		
	// console.dir($.tools);	
	if ($('#scroller').length >0) {
		var s = $('#scroller').scrollable({
			api: true,
			size: 1,
			vertical: true,
			loop: true
		});
		var inter = setInterval(function(){			
			s.next();
		}, 6000);
		$('#stop').toggle(function() {			
			$(this).text(" Iniciar");
		  	clearInterval(inter);
		}, function() {
			$(this).text(" Parar");
		  	inter=setInterval(function () {				
				s.next();
				}, 6000);
		}); 
	}
	if ($('.boxgrid.slidedown').length > 0) {		
		 $('.boxgrid.slidedown').hover(function(){  		
	        $(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});  
	    }, function() {  
	        $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});  
	    });  
	}
	if($('#roll').length >0){
		var scrol=$("#roll").scrollable({api: true,
			size: 2,
			vertical: false,
			nextPage:".posterior",
			prevPage:".anterior",
			loop: true}); 
	}
	if($('#buscar').length >0){
		 $('#buscar').focus(function(e) {if(this.value == this.defaultValue){this.value = '';}});
		 $('#buscar').blur( function(e) {if(this.value == ''){this.value = this.defaultValue;}});
 	}

	
 
}); 