// JavaScript Document
$(document).ready(function() //Altere a propriedade do "showArrows" para true, para habilitar as setas "inicio" e "fim" na barra
{
	$('.scroll-pane').jScrollPane({showArrows: false}); 
	$('div[rel="scroll"]').jScrollPane({
		showArrows: false,
		autoReinitialise: true
	}); 
});

$(document).ready(function(){
	$('li[id="teste"]').hover(function() {
		$('div[id="a"]').css('display', 'inline');	
	});
});
$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true,
		pause: 8000,
		prevId: 'prevBtn',
		prevText: '',
		nextId: 'nextBtn',	
		nextText: '',
		continuous: true
	});
});

$(document).ready(function(){	
	$("#eslider").easySlider({
		auto: false,
		continuous: true,
		numeric: true
	});
});
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animation_speed:'normal',
	  	slideshow:8000
  	});
});
function validar () {
	
	var nome = document.formulario.nome.value;
	var email = document.formulario.email.value;
	var mens = document.formulario.mensagem.value;
	
	if (nome == "")
	{
		alert ("Por favor, preencha seu nome!")
		document.formulario.nome.focus();
		return false;
	} 
	
	else if (email == "")
	{
		alert ("O e-mail deve ser preenchido!")
		document.formulario.email.focus();
		return false;		
	}
	
	else if ((email.indexOf("@") < 1) || (email.indexOf(".") < 1))
	{
		alert ("Verifique se o e-mail foi digitado corretamente!")
		return false;
	} 
	
	else if (mens < 1)
	{
		alert ("Favor preencher a mensagem")
		return false;
	}
}

function validarComent()
{
	var nomeComent = document.formComent.nomecoment.value;
	alert (nomeComent);
}

startList = function() 
{
	if (document.all&&document.getElementById) 
	{
	navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				node.onmouseover=function() 
				{
					this.className+=" over";
				}
				node.onmouseout=function() 
				{
					this.className=this.className.replace
				(" over", "");
				}
			}
		}
	}
}
window.onload=startList;


