function Banner() {
	var tmpS = ''

	tmpS += '<table style="margin-top:5px; background-color:rgb(59,159,89); width:100%;"><tr>'
	tmpS += '<td style="text-align:left; width:85%;">'
	tmpS += '	<div>'
	tmpS += '		<a href="index.html">'
	tmpS += '			<img src="img/ancamassacolor.gif" alt="Associazione culturale reggae"/>'
	tmpS += '		</a>'
	tmpS += '	</div>'
	tmpS += '	<div>'
	tmpS += '		<img style="text-align:left;" src="img/img02o.gif" alt=""/>'
	tmpS += '	</div>'
	tmpS += '</td>'
	tmpS += '<td style="text-align:right; width:15%;">'
	tmpS += '	<a href="index.html">'
	tmpS += '		<img style="margin-left:5px;" src="img/img03p.gif" alt="Anca Massa"/>'
	tmpS += '	</a>'
	tmpS += '</td>'
	tmpS += '</tr></table>'

	return tmpS
}

function getRefMail( Testo ) {
	tmpS = '<a class="lnk" href="mailto:info@ancamassareggae.org">' + Testo + '</a>'
	return tmpS
}

function getContestMail( Testo ) {
	tmpS = '<a class="lnk" style="color:rgb(235, 235, 0); vertical-align:middle; font-size:12px; margin-top:0px;" href="'
	tmpS += 'mailto:contest@ancamassareggae.org?subject=Iscrizione%20al%20jamaica%20contest&body=Indicare il nome del gruppo, il genere musicale, una breve descrizione, un recapito telefonico o email, e possibilmente allegare loghi ed info utili.'
	tmpS += '">' + Testo + '</a>'
	return tmpS
}

function boxPrima( modo ) {
	tmpS =  '<table class="boxTable"><tr>'
	tmpS += '	<td class="boxTd"><img class="boxTdImg" src="imgB/box_hl.gif" alt=""/></td>'
	tmpS += '	<td class="boxTd" style="background-image:url(\'imgB/box_h.gif\'); background-repeat:repeat-x;"><img class="boxTdImg" src="imgB/blk.gif" alt=""/></td>'
	tmpS += '	<td class="boxTd"><img class="boxTdImg" src="imgB/box_hr.gif" alt=""/></td>'
	tmpS += '</tr><tr>'
	tmpS += '	<td class="boxTd" style="width:5px; background-image:url(\'imgB/box_l.gif\')"><img class="boxTdImg" src="imgB/blk.gif" alt=""/></td>'
	tmpS += '	<td class="boxTd" style="width:100%;">'
	return tmpS
}

function boxDopo( modo ) {
	tmpS =  '	</td>'
	tmpS += '	<td class="boxTd" style="background-image:url(\'imgB/box_r.gif\')"><img class="boxTdImg" src="imgB/blk.gif" alt=""/></td>'
	tmpS += '</tr><tr>'
	tmpS += '	<td class="boxTd"><img class="boxTdImg" src="imgB/box_bl.gif" alt=""/></td>'
	tmpS += '	<td class="boxTd" style="background-image:url(\'imgB/box_b.gif\'); background-repeat:repeat-x;"><img class="boxTdImg" src="imgB/blk.gif" alt=""/></td>'
	tmpS += '	<td class="boxTd"><img class="boxTdImg" src="imgB/box_br.gif" alt=""/></td>'
	tmpS += '</tr></table>'
	return tmpS
}

function MenuDx() {
	var tmpS = ''
	tmpS += '	<div style="background-color: rgb(59,159,89);">'

	tmpS += menuDxElem('associazione.html', 'associaz', 'Mission associazione')
//	tmpS += menuDxElem('archivio.html', 'archivio', 'Archivio')
//	tmpS += menuDxElem('community.html', 'community', 'Community')
	tmpS += menuDxElem('credits.html', 'crediti', 'Crediti')
	tmpS += menuDxElem('bands.html', 'bands', 'Bands')
//	tmpS += menuDxElem('team.html', 'team', 'Team')
	tmpS += getRefMail('<img style="vertical-align:middle" alt="Contattaci" src="btnB/con_x.gif" onmouseover="src=\'btnB/con_h.gif\'" onmouseout="src=\'btnB/con_x.gif\'"/>')
	tmpS += menuDxElem('sunsplash2009.php', 'sunsplash2009', 'Sunsplash 2009')
	tmpS += '	</div>'
	tmpS += '	<div class="testoBot" style="margin-top:5px; background-color: rgb(59,159,89);">'
	tmpS += '	aggiornato al 4.5.2010'
	tmpS += '	</div>'
	return tmpS
}


function menuDxElem(nomeRef, nomeImg, nomeAlt) {
	var tmpS = ''


	nome = document.URL
	nome = nome.substr( nome.length - nomeRef.length )

	if (nome == nomeRef) {
		tmpS += '			<img style="text-align:right;" alt="' + nomeAlt + '" src="btnB/' + nomeImg + '_h.gif"/>'
	} else {
		tmpS += '		<a href="' + nomeRef + '">'
		tmpS += '			<img style="text-align:right;" alt="' + nomeAlt + '"'
		tmpS += ' src="btnB/' + nomeImg + '.gif"'
		tmpS += ' onmouseover="src=\'btnB/' + nomeImg + '_h.gif\'"'
		tmpS += ' onmouseout="src=\'btnB/' + nomeImg +'.gif\'"/>'
		tmpS += '		</a>'
	}
	return tmpS
}

