
// HTML BASE

var Category_Home_Class = "CatHome";


// SOMMARIO

function Category_Home_Sommario_DefaultTable(entry)
{
	var s = new CEntryTableTemplate();
	
	var next = 1; 
	next = s.addImg(entry, next, 0, "Immagine");
	next = s.addText(entry, next, 0, "Testo IT");
	next = s.addText(entry, next, 0, "Testo EN");
	return s.table;
}

function Category_Home_SommarioHTML(tree, lang)
{
	var target;
	var cls = Category_Home_Class +"-Sommario";	
	var HTML = '<DIV CLASS="'+ cls +'-clsDIV"><TABLE border=0 CLASS="'+ cls +'-clsTABLE" CELLSPACING=0 CELLPADDING=5>';
	
	target = tree.root.findChild("Immagine");	
	var HTML_immagine = Category_ImmagineHTML(target, cls +"-Immagine");
	if ( HTML_immagine != "" )
		HTML += '<TR><TD CLASS="'+ cls + '-clsTD-immagine">'+ HTML_immagine +'</TD>';
	
	target = tree.root.findChild("Testo "+lang);
	if ( !IsEmpty(target) )
		HTML += '<TD CLASS="'+ cls + '-clsTD-testo">'+ Category_TextHTML(target, cls); +'</TD>';
	
	HTML += "</TD></TR></TABLE></DIV>";
	return HTML; 
}



