<!----------------------------------------------------------------------------------------->
<!--							Enrico Dalbosco, 15.04.2005	--->
<!----------------------------------------------------------------------------------------->

var Catalogo
    Catalogo	= ""
		+ "CA01=Q1Disp.075-055|CA02=Q1Disp.075-055|CA03=Q1Disp.030-025|CA04=Q1Disp.075-055|"
		+ "CH01=Q1Disp.100-075|CH02=Q1Disp.025-020|CH03=Q1Disp.035-025|CH04=Q1Disp.030-025|CH05=Q1NoPR.100-075|"
		+ "CT01=Q1Disp.175-125|CT02=Q1Disp.170-115|CT03=Q1Disp.125-100|CT04=Q1Disp.140-105|"
		+ "PA01=Q1Disp.210-150|PA02=Q1Disp.085-075|PA03=Q1Disp.055-035|PA04=Q1Disp.250-210|PA05=Q1NoPR.135-075|PA06=Q1Disp.135-095|"
		+ ""


//-------------------------------------------------------------------------------
function PutAvailabilityFromCatalog (Codice, Standard){
//-------------------------------------------------------------------------------
var iPos, imgSRC, fileName, altInfo, imgSRC, Width, Height, HSpace

    iPos = Catalogo.indexOf(Codice+"=")
    if (iPos>=0)
    {	
	if (Standard=="Standard")
	{  
	Width=3;  Height=180; HSpace=2;
	fileName  = Catalogo.substring(iPos+5,iPos+5+6)		+ ".gif"
	}
	else
	{   
	Width=71; Height=51;  HSpace=13;
	fileName  = "M_" + Catalogo.substring(iPos+5,iPos+5+2)	+ ".jpg"
	}

	altInfo = Catalogo.substring(iPos+5,iPos+5+6+4)
	//document.write ("<BR>iPos=" + iPos)
	//document.write (", fileName=" + fileName)
	imgSRC	= "<IMG SRC=../ICONE/"	+ fileName 
		+ " Border=0 HSpace=10"
		+ ">"
	imgSRC	= "<A ><IMG SRC=ICONE/"	+ fileName
		+ " Border="	+ "0"
		+ " Width="	+ Width
		+ " Height="	+ Height
		+ " HSpace="	+ HSpace
		+ " ALT=" 	+ Codice + "_" + altInfo
		+ "></A>"
	document.write (imgSRC)
    }
}


//-------------------------------------------------------------------------------
function PRINT_CreationThumb (SectionNNCode,Codice,Posizione) {
//-------------------------------------------------------------------------------
var ImageThumb, AHRef, Legend, Stringa

    AHRef	= "<A HREF="
		+    "H" + LANGUAGE + SectionNNCode + "_" + Codice + ".htm"
		+ ">"

    ImageThumb	= "<img border=0 "
		+    " src=P" + SectionNNCode + "_" + Codice + "_00Th.jpg"
		+    " width=240 height=180"
		+ ">"

    Legend	= "<img border=0 src=ICONE/Ico_Scheda.gif width=20 height=19>"
		+ "<font class=CREATION_Thumb>"
		+    GetRep (Codice,"ThLegend")
		+ "</font>"

    if (Posizione=="LEFT")
    {
	PutAvailabilityFromCatalog (Codice, "Standard")
	document.write (AHRef+ImageThumb+"</A>")
	document.write (AHRef+"<BR>"+Legend+"</A>")
    }
    else
    {
	document.write (AHRef+ImageThumb+"</A>")
	PutAvailabilityFromCatalog (Codice, "Standard")
	document.write (AHRef+"<BR>"+Legend+"</A>")
    }
}

//-------------------------------------------------------------------------------
function PRINT_CATALOGO (Catalogo, Tipo) {
//-------------------------------------------------------------------------------
var myString, rExp, newString, NUOVO

    myString	= new String(Catalogo)
    rExp	= /|/g;
    newString	= new String("<BR>")
    // NUOVO	= myString.replace(rExp,newString)
    NUOVO	= Catalogo.replace(/\|/g,"<BR>")
    document.write (NUOVO)

}
