function para(){
	document.getElementById("agenda").stop();
}

function anda(){
	document.getElementById("agenda").start();
}

function initStatLyr() {
	var statLyr = new Glider("glideDiv",0,2,null,null,1000,-1);
  	statLyr.show();
}

function carrega_imagem() {
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=carrega_imagem.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() {
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('Preencha todos os campos de preenchimento obrigatório!');
  document.MM_returnValue = (errors == '');
}

function popitup(url, width, height){

	var url, width, height

	window.open(url,'name','scrollbars=yes, height='+height+',width='+width+',left=' + ((screen.width-width)/2) + ', top=' + ((screen.height-height)/2));

}

//IMAGENS GRANDES
var theImages = new Array()
theImages[0] = 'imagens_site/1.jpg'
theImages[1] = 'imagens_site/1.jpg'
theImages[2] = 'imagens_site/3.jpg'
theImages[3] = 'imagens_site/4.jpg'
theImages[4] = 'imagens_site/5.jpg'
theImages[5] = 'imagens_site/6.jpg'
theImages[6] = 'imagens_site/7.jpg'
theImages[7] = 'imagens_site/8.jpg'
theImages[8] = 'imagens_site/9.jpg'
theImages[9] = 'imagens_site/10.jpg'
theImages[10] = 'imagens_site/11.jpg'
theImages[11] = 'imagens_site/12.jpg'
theImages[12] = 'imagens_site/13.jpg'
theImages[13] = 'imagens_site/14.jpg'
theImages[14] = 'imagens_site/15.jpg'
theImages[15] = 'imagens_site/16.jpg'
theImages[16] = 'imagens_site/17.jpg'
var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));





function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}