// JavaScript Document
// Author: Designer Uiliam Cruz - www.uiliamcruz.com;
// Date:12/08/2006;
// Updated:24/08/2006;

/* POP UP */
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/* FIM POP UP */

/* FORMULÁRIO LOGIN */
function FormLogin(){
/*
var url = "http://www.resultados.com.br/";
document.write('<form name="Form1" method="post" action="'+url+'login.aspx?origem=labsaovicente&amp;msg=&amp;e=" id="Form1">');
document.write('<input type="hidden" name="__VIEWSTATE" value="dDwyMDMxMTgwMTQ4OztsPGNtZE9rOz4+7VOSVoamp+uLX3gT1Mq34zh2xfU=" />'); */
document.write('RESULTADO DE EXAMES ON-LINE <br />');
document.write('<a href="https://www.resultados.com.br/frame.asp?chave=labsaovicente" target="_blank">clique aqui para ver os resultados</a><br />');
/*
document.write('<table width="192" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr><td width="61" height="19" valign="middle">');
document.write('identica&ccedil;&atilde;o:<br />');
document.write('</td>');
document.write('<td width="131" rowspan="2">');
document.write('<input name="txtChave" type="text" maxlength="30" id="txtChave" />');
document.write('<input name="txtSenha" type="password" maxlength="30" id="txtSenha" /> ');
document.write('<input name="submit" type="submit" class="bt" value="ok" />');
document.write('</td></tr>');
document.write('<tr><td valign="top">');
document.write('senha:');
document.write('</td></tr>');
document.write('</table>');
document.write('</form>'); */
}
/* FIM FORMULARIO LOGIN*/

/* MENU EXAMES */
function MenuExames(){
	document.write('<h5>Menu de Exames [');
	document.write('. <a href="a.html">a</a> . <a href="b.html">b</a> . <a href="c.html">c</a> .');
	document.write('  <a href="d.html">d</a> . <a href="e.html">e</a> . <a href="f.html">f</a> .');
	document.write('  <a href="g.html">g</a> . <a href="h.html">h</a> . <a href="i.html">i</a> .');
	document.write('  <a href="j.html">j</a> . <a href="k.html">k</a> . <a href="l.html">l</a> .');
	document.write('  <a href="m.html">m</a> . <a href="n.html">n</a> . <a href="o.html">o</a> .');
	document.write('  <a href="p.html">p</a> . <a href="q.html">q</a> . <a href="r.html">r</a> .');
	document.write('  <a href="s.html">s</a> . <a href="t.html">t</a> . <a href="u.html">u</a> .');	
	document.write('  <a href="v.html">v</a> . <a href="w.html">w</a> . <a href="x.html">x</a> .');
	document.write('  <a href="y.html">y</a> . <a href="z.html">z</a> . <a href="1.html">1</a> .');								
	document.write('  <a href="2.html">2</a> . <a href="3.html">3</a> .');
	document.write('] </h5>');
}
/* FIM DO MENU EXAMES*/

/* galeria v1.0 */
function linkfotos() {
/* MENU PARA ACESSO AS GALERIAS - pág fotos.html */
	/* nº de link */
nlink = 4; 
var galeria = new Array();
galeria[0] = '';
galeria[1] = '';
galeria[2] = '';
galeria[3] = '';
galeria[4] = '';
galeria[5] = '';	
/* 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] = 20;
/* album nº2   */ nfoto[1] = 49;
/* album nº3   */ nfoto[2] = 23;
/* 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

/* script terceiros */
// abre pop up
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
