	
	$(".paginacao").click(function(){
		var index = $(".paginacao").index(this);
		$(this).hide();
		if (index == 0)
			$(".paginacao:eq(1)").show();
		else
			$(".paginacao:eq(0)").show();
			
		index = (index * 4);
		
		$(".list_cases_websites > li").each(function(){
			i = $(".list_cases_websites > li").index(this);
			if (i >= index && i < index + 4)
				$(this).fadeIn(500);
			else
				$(this).hide();
												   
		});
	} );
	
	$(".list_cases_websites > li").each(function(){
			i = $(".list_cases_websites > li").index(this);
			if (i >= 0 && i < 4)
				$(this).show();
			else
				$(this).hide();
				});
	
	
	$(".list_cases_websites > li > input").each(function(){
												
			if ($(this).val() != "")
			{
				texto = $(this).val();
				if (texto.indexOf("http://") == -1)
					texto = "http://" + texto;
					
				$(this).prev("a").attr({ 
					href: texto, 
					rel: "",
					target: "_blank"
        		});
			}
												});
