// JavaScript Document
// Author: Canal do Turismo;
// Date:27/04/2005;
// Updated:01/05/2006;
<!--

/* VARIÁVEIS GLOBAIS */
// título do site e copyright
var titulodosite = 'Prefeitura Municipal de Pancas - Espírito Santo'

/* TEXTO DO MENU PRINCIPAL */
// categorias do site e descrição do menu principal
var cat0 = 'Home'
var cat1 = 'Município'
var cat2 = 'Turismo'
var cat3 = 'Cultura'
var cat4 = 'Galeria de Fotos'
var cat5 = 'Vídeo'
var cat6 = 'Contato'
/* fim VARIÁVEIS GLOBAIS */

/* FUNÇÕES */
//títulodosite
function titulo(){
document.write('<title>');
document.write( titulodosite );
document.write('</title>');
}
function logotipo(){
document.write('<img src="../img/logotipo.jpg" width="134" height="34" />');
//document.write('<p>Prefeitura de Municipal</p>');  
//document.write('<h1>Pancas - ES</h1>');
}

//menu principal
function link0(){document.write(cat0);}
function link1(){document.write(cat1);}
function link2(){document.write(cat2);}
function link3(){document.write(cat3);}
function link4(){document.write(cat4);}
function link5(){document.write(cat5);}
function link6(){document.write(cat6);}

//menu a cultura
function cultura1(){document.write('Artesanato');}
function cultura2(){document.write('Cultura Pomerana');}
function cultura3(){document.write('Grupos Folclóricos');}
function cultura4(){document.write('Gastronomia');}
function cultura5(){document.write('');}

//menu a cidade/o munícipio
function cidade1(){document.write('História');}
function cidade2(){document.write('Dados Gerais');}
function cidade3(){document.write('Distritos');}
function cidade4(){document.write('Economia');}
function cidade5(){document.write('Como Chegar');}
function cidade6(){document.write('Carta do Prefeito');}

//menu a turismo
function turismo1(){document.write('Atrativos Naturais');}
function turismo2(){document.write('Comunidade');}
function turismo3(){document.write('Eventos');}
function turismo4(){document.write('Serviços');}
function turismo5(){document.write('');}

//menu a fotos
/* obs. verificar FOTO GALERIA abaixo*/

//menu vídeos
function video1(){document.write('banda estreita');}
function video2(){document.write('banda larga');}


// GALERIA DE FOTOS
/*
	FOTO GALERIA v1.0 
	Author: Canal do Turismo
	Date:22/03/2006
	Updated:00/00/2006
*/
function linkfotos() {
	/* MENU PARA ACESSO AS GALERIAS - pág fotos.html */
	/* nº de link */
	nlink = 4; 
	var galeria = new Array();
	galeria[0] = '';
	galeria[1] = 'Belezas Naturais';
	galeria[2] = 'Cidade';
	galeria[3] = 'Distritos';
	galeria[4] = 'Histórico-Cultural';
	galeria[5] = 'novo link';	
	/* escreve os links */		
	for (i=0+1; i<=nlink; i++){	
		document.write(' <a href="galeria'+i+'/index.html" target="fotos"> ' +galeria[i]+ ' </a><br /> ');		
	}
}	
/* controle    */ var i=0+1;
/* REFERÊNCIA DA IMAGEM */
/* extensão    */ var exte = 'jpg';
/* altura      */ var larg = '333';
/* altura      */ var altu = '250';
				  var nfoto = new Array();
/* QUANTIDADE DE FOTOS DE CADA GALERIA */
/* album nº1   */ nfoto[0] = 32;
/* album nº2   */ nfoto[1] = 15;
/* album nº3   */ nfoto[2] = 17;
/* album nº4   */ nfoto[3] = 9;
/* title e alt */ var prox = 'próximo';
/* title e alt */ var next = 'anterior';
/* ESTRUTURA */
function repetirfotos(){
	document.write('<div id="boxfotos">');
	document.write('  <a name="foto' +i+ '"></a>');
	document.write('  <img src="f'+i+'.' +exte+ ' " id="img"  height=" ' +altu+ ' " class="bordafoto" />');
	document.write('  <div id="nextback">');
	document.write('  <a href="#foto' +(i-1)+ ' " title=" ' +next+ ' "><img src="../back.gif" border="0" alt=" ' +next+ ' " class="noborda" /> ' +(i-1)+ '</a>');
	document.write(  '  <b>' +i+ '</b>  ' );
	document.write('  <a href="#foto' +(i+1)+ ' " title=" ' +prox+ ' ">' +(i+1)+ ' <img src="../next.gif" border="0" alt=" ' +prox+ ' " class="noborda" /></a>');
	document.write('  </div>');
	document.write('</div>');
}
/* VISUALIZAÇÃO NO NAVEGADOR */
function galeria1(){ for (i; i<=nfoto[0]; i++) { document.write( '<p id="nfotos">' +nfoto[0]+ '<p>'); repetirfotos();} }
function galeria2(){ for (i; i<=nfoto[1]; i++) { document.write( '<p id="nfotos">' +nfoto[1]+ '<p>'); repetirfotos();} }
function galeria3(){ for (i; i<=nfoto[2]; i++) { document.write( '<p id="nfotos">' +nfoto[2]+ '<p>'); repetirfotos();} }
function galeria4(){ for (i; i<=nfoto[3]; i++) { document.write( '<p id="nfotos">' +nfoto[3]+ '<p>'); repetirfotos();} }
// fim GALERIA DE FOTOS

// Autoria no rodapé das págs
function autoria(){
document.write( titulodosite + ' - © 2006 ');
}

/* SCRIPTS DE TERCEIROS */
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// pre carregamento das fotos
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.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];}}
}

//-->
