//Inserire o spostare il country in base al numero dei cataloghi

function Fill(indice,country)
{
	var immagine_attiva=indice;

	if(country=='UK' || country=='IE' || country=='AT' ||country=='TK' || country == 'HU' || country == 'NO' || country == 'LV' || country == 'LT' || country == 'EE' || country == 'DK' || country == 'SV' || country == 'CH' || country == 'FI' || country == 'DE')
		var numero_immagini=1;
	if(country=='FR' || country=='SP' || country=='GR' || country=='PO' || country=='TK' || country=='UA')
		var numero_immagini=2;
	if(country=='EX')
		var numero_immagini=3;
	if(country=='NL' || country=='BG' || country == 'SL')
		var numero_immagini=4;
	if(country=='CZ' || country=='RO')
		var numero_immagini=5;
	if(country=='IT')
		var numero_immagini=6;
	if(country=='CS')
		var numero_immagini=7;
	if(country=='PL')
		var numero_immagini=9;
	for(i=1;i<=numero_immagini;i++)
	{
		if(i!=immagine_attiva)
		{
	        if($('titolo_catalogo_'+i))
	        {	        	
	        	$('elenco_catalogo_'+i).setStyle('color','#1593cd');
	        	$('titolo_catalogo_'+i).setStyle('list-style-image','url("/indesit/2/_img/maggiore.gif")');
	        }

			if($('catalogo_principale'+i))
        		$('catalogo_principale'+i).setStyle('display','none');
        	if($('cover'+i))
        	{
    	        var tween2 = new Fx.Tween($('cover'+i), {duration: 500});
    	        tween2.start('opacity', 1, 0);	        
        		$('cover'+i).setStyle('display','none');
        	}
		}
		else
		{
			var da_attivare=$('cover'+i);
	        var tween = new Fx.Tween($(da_attivare), {duration: 500});
	        tween.start('opacity', 0, 1);
	        immagine_attiva=i;
	        if($('titolo_catalogo_'+i))
	        {	        	
	        	$('elenco_catalogo_'+i).setStyle('color','#d43e0b');
	        	$('titolo_catalogo_'+i).setStyle('list-style-image','none');
	        	$('titolo_catalogo_'+i).setStyle('list-style-type','none');	        	
	        }

	        if($('cover'+i))
        	{
        		$('cover'+i).setStyle('display','block');
        		$('cover'+i).setStyle('opacity',0);
        		$('cover'+i).fade('in');
        	}
        	if($('catalogo_principale'+i))
        		$('catalogo_principale'+i).setStyle('display','block');
		}
	}
}	

function sopra(country)
{
	var num_elementi=0;

	if(country=='UK' || country=='IE' || country=='AT' ||country=='TK' || country == 'HU' || country == 'NO' || country == 'LV' || country == 'LT' || country == 'EE' || country == 'DK' || country == 'SV' || country == 'CH' || country == 'FI' || country == 'DE')
		var num_elementi=1;
	if(country=='FR' || country=='SP' || country=='GR' || country=='PO' || country=='TK' || country=='UA')
		var num_elementi=2;
	if(country=='EX')
		var num_elementi=3;	
	if(country=='NL' || country=='BG' || country == 'SL')
		var num_elementi=4;
	if(country=='CZ' || country=='RO')
		var num_elementi=5;
	if(country=='IT')
		var numero_immagini=6;	
	if(country=='CS')
		var numero_immagini=7;
	if(country=='PL')
		var num_elementi=9;	
	var spostamento= 89;
	var dur=0.4;
	var altezza=spostamento*num_elementi;
	new Fx.Scroll("contenitore", {offset: { 'x': 0, 'y': $('contenitore').scrollTop-spostamento}}).toTop();
}

function sotto(country)
{
	var num_elementi=0;

	if(country=='UK' || country=='IE' || country=='AT' ||country=='TK'  || country == 'HU' || country == 'NO' || country == 'LV' || country == 'LT' || country == 'EE' || country == 'DK' || country == 'SV' || country == 'CH' || country == 'FI' || country == 'DE')
		var num_elementi=1;
	if(country=='FR' || country=='SP' || country=='GR' || country=='PO' || country=='TK' || country=='UA')
		var num_elementi=2;
	if(country=='EX')
		var num_elementi=3;
	if(country=='NL' || country=='BG' || country == 'SL')
		var num_elementi=4;
	if(country=='CZ' || country=='RO')
		var num_elementi=5;
	if(country=='IT')
		var numero_immagini=6;
	if(country=='CS')
		var numero_immagini=7;
	if(country=='PL')
		var num_elementi=9;	

	var spostamento= 89;
	var dur=0.4;
	var altezza=spostamento*num_elementi;
	new Fx.Scroll("contenitore", {offset: { 'x': 0, 'y': $('contenitore').scrollTop+spostamento}}).toTop();
}
