﻿
$('#slideshow').cycle({
	speed: 4000,
	easing: 'easeOutBounce',
	timeout: 10,
        fx: 'scrollDown,scrollUp,fade'
});
$('#trabalhos-content').cycle({
	speed: 4500,
	delay:  -8000,
	easing: 'easeOutBack',
	pager:'#trabalhos-text',
        fx: 'scrollHorz',
	timeout: 0,
	pagerEvent: 'mouseover',
    pagerAnchorBuilder: function(idx, slide) { 
        return '#trabalhos-text a:eq(' + idx + ')'; 
    }
});
var bgrueber = function() {
		$(this).css('backgroundColor','#ff0000');
		$(this).children().css('borderColor','#fff');
	}
var bgrunter = function() {
		$(this).css('backgroundColor','#EFFDFF');
		$(this).children().css('borderColor','#00ccff');
	}




function validateForm()
		{
			$("#c").empty().hide();
			$("#c").empty().hide();
			$("#c").empty().hide();
			var c = $("#c").val();
			var c = $("#c").val();
			var c = $("#c").val();

			var errors = 0;
			
			if (c == null || c == '')
			{
				$("#c").css("backgroundColor","#00ccff");
				$("#c").show().append("Preencha o seu nome.");
				errors++;
			}
			else if (c !== null || c !== '')
			{
				$("#c").css("backgroundColor","#fff");
			}
			if(c(c)) {
				$("#c").css("backgroundColor","#fff");
			} else {
				$("#c").css("backgroundColor","#00ccff");
				$("#c").show().append("Preencha o campo com um e-mail válido.");
				errors++;
			}			
			if (c == null || c == '')
			{
				$("#c").css("backgroundColor","#00ccff");
				$("#c").show().append("Escreva uma mensagem.");
				errors++;
			}
			else if (c !== null || c !== '')
			{
				$("#c").css("backgroundColor","#fff");
			}
			if (c !== "" & c !== "" &c !== "") {
			var dataString = 'c=' + c+ 'c=' + c + 'c=' + c;

}
			function isValidEmailAddress(c) {
			
			}
return false;
};

function navirueber() {
	$(this).animate({width:'260px'},100);
	}
function navirunter() {
	$(this).animate({width:'0px'},200);
	}
$(document).ready(function() {
		$( '#scrollnavi' ).scrollFollow( {
		speed: 1000,
		offset: 60
		}).hover(navirueber, navirunter).click(function() {
			$(this).animate({width:'0px'},200);
		});
		$('#navigation, .content-footer, #scrollnavi, #slideshow').localScroll();
		$('#container').fadeIn(0);
		$('#navigation li a').each(function () {
		});
		$.preloadCssImages();
});

    $(function(){ 
      $("#myScroll").mbScrollable({ 
        width:940, 
        elementsInPage:1, 
        elementMargin:4, 
        shadow:"#999 2px 2px 2px", 
        height:"auto", 
        controls:"#controls", 
        slideTimer:600, 
        autoscroll:false, 
        scrollTimer:2000  
      }); 
    }); 

