<!--
// Instructions
//
// In your HTML where you would like the pod to appear, enter the following code,
// where "hexColor" = the 6-digit hex color in the format of "d7d7d7" with no "#" that will be the cell background color
// and "bool" = true or false, which determines if the cell is the last pod and has a background image
// Pod1("hexColor", bool);
// -->


<!-- // Init code -- please don't edit -->
function writeTableStart(hexColor, bool) {
	if (bool) { <!-- Use background image -->
		document.write('<tr><td background=\"images/home/tout.gif\" border=\"0\" height=\"134\" valign=\"top\" bgcolor=\"#' + hexColor + '\" style=\"padding:0 6px 0 6px;\"><br>');
	} else {
		document.write('<tr><td bgcolor=\"#' + hexColor + '\" height=\"100%\" valign=\"top\" style=\"padding:0 6px 0 6px;\"><br>');
	}
}
function writeTableEnd() {
	document.write('&nbsp;</td></tr><tr><td bgcolor=\"#ffffff\" height=\"0\"></td></tr>');
}
<!-- // End init code -->


function Pod1(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="http://www.tattooremoval.it/download.asp" class="pt">Download</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="http://www.tattooremoval.it/download.asp" class="pb">');
    document.write("Scarica la brochure del prodotto con descrizione e dati tecnici.");
	document.write("</a><br />");
	<!-- // End Body -->
	
	writeTableEnd();	
}

function Pod2(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="#" class="pt">Guadagna 200 Euro!</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="segnalazione.asp" class="pb">');
	document.write("Segnalaci un potenziale acquirente e se l'affare va in porto guadagni 200 euro!<br /> Scopri come.");
	document.write("</a><br />");
	<!--
	// End Body -->
	
	writeTableEnd();
}

function Pod3(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="http://www.tattooremoval.it/video_tatuaggi.asp" class="pt" title="Video Tatuaggi">Guarda il video</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="http://www.tattooremoval.it/video_tatuaggi.asp" class="pb" title="Video Tatuaggi">');
	document.write("Vuoi sapere come Tattoo Transparentes elimina i tatuaggi? Guarda il video!");
	document.write("</a><br />");
	<!-- // End Body -->
	
	writeTableEnd();	
}

function Pod4(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="http://www.tattooremoval.it/agenti.asp" class="pt">Diventa Agente</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="http://www.tattooremoval.it/agenti.asp" class="pb">');
	document.write("Vuoi diventare nostro agente per la distribuzione del prodotto in tutta Italia?");
	document.write("</a><br />");
	<!-- // End Body -->
	
	writeTableEnd();
}

function Pod5(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="http://www.tattooremoval.it/faq.asp" class="pt">Domande frequenti</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="http://www.tattooremoval.it/faq.asp" class="pb">');
	document.write("Leggi le risposte a domande che ci hanno posto gli utenti.");
	document.write("</a><br />");
	<!-- // End Body -->
	
	writeTableEnd();		
}

function Pod6(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="http://www.tattooremoval.it/corsi.asp" class="pt">10% di sconto</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="http://www.tattooremoval.it/sconti.asp" class="pb">');
	document.write("Sconti estivi: fino al 30 luglio c'e' il 10% di sconto!!<br />");
	document.write("</a>");
	<!-- // End Body -->
	
	writeTableEnd();		
}

function Pod7(hexColor, bool) {
	writeTableStart(hexColor, bool);
	
	<!-- // Title -->
	document.write('<a href="nd_yag_laser.asp" class="pt">La tecnologia</a>');
	<!-- // End Title -->
	
	document.write('<br>');
	
	<!-- // Body -->
	document.write('<a href="nd_yag_laser" class="pb">');
	document.write("Come funziona l'apparecchiatura? Scopri quale tecnologia sta dietro Tattoo Transparentes.<br />");
	document.write("</a>");
	<!-- // End Body -->
	
	writeTableEnd();		
}


function Pod_Random(hexColor, bool) {
	var i = Math.round(3*Math.random()) + 1;
	//alert(i);
	switch(i)
	{
	case 1:
		Pod3(hexColor, bool);
		break    
	case 2:
		Pod4(hexColor, bool);
		break
	case 3:
		Pod5(hexColor, bool);
		break
	case 4:
		Pod6(hexColor, bool);
		break
	}
	return i;
}
