function writeTop(border, image, menu){
	// INÍCIO DO COMEÇO DA PÁGINA (BORDAS)
	document.write('<table cellpadding="0" cellspacing="0" border="0" align="center" class="tableInicial">')
		document.write('<tr>')
			document.write('<td background="img/border_page_left_top.gif" width="10" height="10"></td>')
			document.write('<td background="img/'+border+'.gif" width="742" height="10"></td>')
			document.write('<td background="img/border_page_right_top.gif" width="10" height="10"></td>')
		document.write('</tr>')
	document.write('</table>')
	// FIM DO COMEÇO DA PÁGINA (BORDAS)
	
	// INÍCIO DO TOP DINÂMICO
	document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">')
		document.write('<tr>')
			document.write('<td background="img/border_page_left_cont.gif" width="10" height="84"></td>')
			document.write('<td bgcolor="#ffffff" width="296" height="84" align="center"><a href="index.php"><img src="img/logo.gif" alt="" border="0" style="margin-bottom:10px; margin-right:10px"></a></td>')
			document.write('<td width="343" height="84" background="img/'+image+'.jpg"></td>')
			document.write('<td bgcolor="#ffffff" width="103" height="84" background="img/fim_top.gif" valign="top"><span class="linkSuperior"><a href="index.php">Home</a>&nbsp; | &nbsp;<a href="contato.php">Contato</a></span></td>')
			document.write('<td background="img/border_page_right_cont.gif" width="10" height="84"></td>')
		document.write('</tr>')
	document.write('</table>')
	// FIM DO TOP DINÂMICO
	
	// INÍCIO DO MENU 
	document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">')
		document.write('<tr>')
			document.write('<td background="img/border_page_left_cont.gif" width="10" height="26"></td>')
			document.write('<td><a href="index.php"><img src="img/bt_home.gif" alt="Home Page" border="0"></a></td>')
			document.write('<td><a href="empresa.php"><img src="img/bt_empresa.gif" alt="Saiba mais sobre nós" border="0"></a></td>')
			document.write('<td><a href="produtos.php"><img src="img/bt_produtos.gif" alt="Nossos produtos" border="0"></a></td>')
			document.write('<td><a href="fotos.php"><img src="img/bt_fotos.gif" alt="Veja fotos de dar água na boca" border="0"></a></td>')
			document.write('<td><a href="contato.php"><img src="img/bt_contato.gif" alt="Entre em contato conosco" border="0"></a></td>')
			document.write('<td background="img/'+menu+'.gif" width="274" height="26"></td>')
			document.write('<td background="img/border_page_right_cont.gif" width="10" height="26"></td>')
		document.write('</tr>')
	document.write('</table>')
	// FIM DO MENU

	// INÍCIO DA TABELA DE CONTEÚDO
	document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">')
		document.write('<tr>')
			document.write('<td background="img/border_page_left_cont.gif" width="10" height="26"></td>')
			document.write('<td bgcolor="#ffffff" width="742" height="26">')
					
				// INÍCIO DA LATERAL DESTAQUE 
				document.write('<div class="lateralDestaque">')
					document.write('<div style="background-image:url(img/back_lateral.gif); width:160px; height:405px; margin-top:3px; padding:10px">')
						 document.write('<b>:: Seja Bem-vindo</b>')
						 document.write('<br><br>')
						 document.write('A Labruma faz bolos tortas e doces tudo para agradar seu paladar com as coisas mais gostosas')
						 document.write('<br><br><br><b>:: Novidades</b><br><br>')
						 document.write('Conheça também nossos bolos artesanais com cobertura e recheio de sua preferência, não perca tempo ligue <b>4445-4695</b> e faça já a sua encomenda')
						 
						 document.write('<img src="img/destaque_lateral.gif" width="135" height="155" alt="" border="0" style="margin-top:40px">')
					document.write('</div>')
				
				document.write('</div>')
				// FIM DA LATERAL DESTAQUE 
}
	

	
function writeBottom(){

			document.write('<div class="navegacaoInferior">')
				document.write('<a href="index.php"> Home </a>')
				document.write('|')
				document.write('<a href="empresa.php"> Empresa </a>')
				document.write('|')
				document.write('<a href="produtos.php"> Produtos </a>')
				document.write('|')
				document.write('<a href="fotos.php"> Fotos </a>')
				document.write('|')
				document.write('<a href="contato.php"> Contato </a>')
			document.write('</div>')
		
		document.write('</td>')
		document.write('<td background="img/border_page_right_cont.gif" width="10" height="26"></td>')
	document.write('</tr>')
document.write('</table>')
// FIM DA TABELA DE CONTEÚDO 

document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">')
	document.write('<tr>')
		document.write('<td background="img/border_page_left_bottom.gif" width="10" height="10"></td>')
		document.write('<td background="img/border_page_center_bottom.gif" width="742" height="10"></td>')
		document.write('<td background="img/border_page_right_bottom.gif" width="10" height="10"></td>')
	document.write('</tr>')
document.write('</table>')

document.write('<table cellpadding="0" cellspacing="0" border="0" align="center">')
	document.write('<tr>')
		document.write('<td width="10" height="10"></td>')
		document.write('<td width="371" height="10" style="color:white">Desenvolvido por <a href="http://www.zinni.com.br" style="color:#ffffff">Zinni Internet e Sistemas</a></td>')
		document.write('<td width="371" height="10" style="color:white; text-align:right">www.labrumabolos.com.br</td>')
		document.write('<td width="10" height="10"></td>')
	document.write('</tr>')
document.write('</table>')

}


function abreFoto(nroFoto, text){
  open("abreFoto.php?idFoto=" + nroFoto + "&desc=" + text, nroFoto, "toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,width=390,height=265,top=210,left=220");
}

function SetImage(cod, text){
  open("?idFoto=" + cod + "&desc=" + text, cod, "");
}


function OSetImage(cod, desc){
	var img = "img/fotos/" + cod + "_g.jpg";
	var text = desc
	var objImg = document.getElementById("texto");
	var objImg = document.getElementById("imgPrincipal");
		objImg.src = img;
	
}