	$(function() {
		$.nyroModalSettings({
			debug: false,
			title: null,
			titleFromIframe: false
		});
		$('#parapsiquiatras').click(function() {
			$.fn.nyroModalManual({
			width: '618',
			height: '500',
			minWidth: '618',
			minHeight: '500',
			url: 'parapsiquiatras.html',
			title: null
			});
			return false;
		});
		$('#paramaes').click(function() {
			$.fn.nyroModalManual({
			width: '618',
			height: '500',
			minWidth: '618',
			minHeight: '500',
			url: 'paramaes.html',
			title: null
			});
			return false;
		});
		$('#drfrancisco').click(function() {
			$.fn.nyroModalManual({
			type: 'iframe',
			width: '502',
			height: '362',
			minWidth: '502',
			minHeight: '362',
			url: 'drfrancisco.html',
			title: null,
			titleFromIframe: false
			});
			return false;
		});
			$('#cadastro').click(function() {
			$.fn.nyroModalManual({
			type: 'iframe',
			width: '560',
			height: '600',
			minWidth: '560',
			minHeight: '600',
			url: 'cadastro/',
			title: null,
			titleFromIframe: false
			});
			return false;
		});
		$('#stitch').click(function() {
			$.fn.nyroModalManual({
			type: 'iframe',
			width: '700',
			height: '500',
			minWidth: '700',
			minHeight: '500',
			url: 'stitch.html',
			title: null,
			titleFromIframe: false
			});
			return false;
		});
		$('#informacoes').click(function() {
			$.fn.nyroModalManual({
			width: '754',
			height: '318',
			minWidth: '754',
			minHeight: '318',
			url: 'info.html',
			title: null
			});
			return false;
		});
		function preloadImg(image) {
			var img = new Image();
			img.src = image;
		}
		
		preloadImg('imgs/ajaxLoader.gif');
		preloadImg('imgs/close.png');
		preloadImg('imgs/back-bot-menu-on.png');
		preloadImg('imgs/titulo-psiq-on.png');
		preloadImg('imgs/titulo-maes-on.png');
		
	});
	$(function() {
                $("#toTop").scrollToTop({speed:1200,ease:"easeOutQuint",start:800});
            });
			
$().ready(function() {
	$("#buscaBody").validate({
	errorContainer: $("#warning"),
		rules: {
			busca: {
				required: true,
				minlength: 3
			}
		},
		messages: {
			busca: {
				required: "",
				minlength: ""
			}
		}
	});
});
function mudaAction()
{
acao=document.buscaTop.buscaselect.value;
document.buscaTop.action = acao;
};