//var ROOT_SITE = "http://localhost/stylustec"
var ROOT_SITE = "http://www.stylustec.com.br"

function writeInicioBloco(tipo, altura, margin_top, margin_bottom, estilo){
	document.write('<table cellpadding="0" cellspacing="0" border="0" align="center" width="100%" style="margin-top:' + margin_top + 'px">')
		document.write('<tr>')
			document.write('<td><img src="' + ROOT_SITE + '/img/bloco' + tipo + '_border_left_top.gif" alt="" border="0"></td>')
			document.write('<td background="' + ROOT_SITE + '/img/bloco' + tipo + '_border_med_top.gif" width="100%"></td>')
			document.write('<td><img src="' + ROOT_SITE + '/img/bloco' + tipo + '_border_right_top.gif" alt="" border="0"></td>')
		document.write('</tr>')
		
		document.write('<tr>')
			document.write('<td background="' + ROOT_SITE + '/img/bloco' + tipo + '_border_left_med.gif"></td>')
			document.write('<td class="' + estilo + '" width="100%" height="' + altura + '" valign="top">')
}

function writeFimBloco(tipo){
			document.write('</td>')
			document.write('<td background="' + ROOT_SITE + '/img/bloco' + tipo + '_border_right_med.gif"></td>')
		document.write('</tr>')
					
		document.write('<tr>')
			document.write('<td><img src="' + ROOT_SITE + '/img/bloco' + tipo + '_border_left_bottom.gif" alt="" border="0"></td>')
			document.write('<td background="' + ROOT_SITE + '/img/bloco' + tipo + '_border_med_bottom.gif" width="100%"></td>')
			document.write('<td><img src="' + ROOT_SITE + '/img/bloco' + tipo + '_border_right_bottom.gif" alt="" border="0"></td>')
		document.write('</tr>')
		
	document.write('</table>')
}
