///////////CONSIGLI///////////////
function consigli(type)
{
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+"-selected.jpg)");
 	 $(".uno").show();
	 $(".due").hide();
	 $(".tre").hide();
	 $(".quattro").hide();
	 $(".cinque").hide();
	 $(".sei").hide();
}
function openUno(type)
{
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+"-selected.jpg)");
	 $(".due-"+type).css("background-image","url(images/due-"+type+".jpg)");
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+".jpg)");
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+".jpg)");
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+".jpg)");
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+".jpg)");

	 $(".uno").show();
	 $(".due").hide();
	 $(".tre").hide();
	 $(".quattro").hide();
	 $(".cinque").hide();
	 $(".sei").hide();

	}
function openDue(type)
{
	 $(".due-"+type).css("background-image","url(images/due-"+type+"-selected.jpg)");
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+".jpg)");
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+".jpg)");
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+".jpg)");
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+".jpg)");
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+".jpg)");

     $(".uno").hide();
	 $(".due").show();
	 $(".tre").hide();
	 $(".quattro").hide();
	 $(".cinque").hide();
	 $(".sei").hide();

	}
function openTre(type)
{
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+"-selected.jpg)");
	 $(".due-"+type).css("background-image","url(images/due-"+type+".jpg)");
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+".jpg)");
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+".jpg)");
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+".jpg)");
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+".jpg)");

     $(".uno").hide();
	 $(".due").hide();
	 $(".tre").show();
	 $(".quattro").hide();
	 $(".cinque").hide();
	 $(".sei").hide();

	}
function openQuattro(type)
{
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+"-selected.jpg)");
	 $(".due-"+type).css("background-image","url(images/due-"+type+".jpg)");
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+".jpg)");
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+".jpg)");
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+".jpg)");
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+".jpg)");

     $(".uno").hide();
	 $(".due").hide();
	 $(".tre").hide();
	 $(".quattro").show();
	 $(".cinque").hide();
	 $(".sei").hide();

	}
function openCinque(type)
{
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+"-selected.jpg)");
	 $(".due-"+type).css("background-image","url(images/due-"+type+".jpg)");
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+".jpg)");
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+".jpg)");
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+".jpg)");
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+".jpg)");

     $(".uno").hide();
	 $(".due").hide();
	 $(".tre").hide();
	 $(".quattro").hide();
	 $(".cinque").show();
	 $(".sei").hide();

	}
function openSei(type)
{
	 $(".sei-"+type).css("background-image","url(images/sei-"+type+"-selected.jpg)");
	 $(".due-"+type).css("background-image","url(images/due-"+type+".jpg)");
	 $(".tre-"+type).css("background-image","url(images/tre-"+type+".jpg)");
	 $(".quattro-"+type).css("background-image","url(images/quattro-"+type+".jpg)");
	 $(".cinque-"+type).css("background-image","url(images/cinque-"+type+".jpg)");
	 $(".uno-"+type).css("background-image","url(images/uno-"+type+".jpg)");

     $(".uno").hide();
	 $(".due").hide();
	 $(".tre").hide();
	 $(".quattro").hide();
	 $(".cinque").hide();
	 $(".sei").show();
	}


///////////////////VIDEO//////////////

function openVideo(name)
{
	 swfobject.embedSWF('swf/player_flv_big.swf', 'video-gallery', '640', '393', '9.0.45','swfobject/expressinstall.swf', 
            {video:'../videos/'+name+'.flv'}, {allowFullScreen: 'true', bgcolor: '#fff', menu: 'false', wmode: 'opaque'}, {id: 'video-gallery'});
	 if(name=='YUKO')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-lisci.jpg)");
			 $("#titoloVideo").css("background-image","url(images/yuko_yamashita.jpg)");
			 
	 }

		 	 if(name=='FRANCESCA')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-sciolti.jpg)");
			 $("#titoloVideo").css("background-image","url(images/francesca_fusco.jpg)");

		 }
		 	 if(name=='THOMAS')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-ricostruzione.jpg)");
			 $("#titoloVideo").css("background-image","url(images/thomas_taw.jpg)");
		 }
		 	 if(name=='JAMAL')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-brillantezza.jpg)");
             $("#titoloVideo").css("background-image","url(images/jamal_hammadi.jpg)");
		 }
		 	 if(name=='OUIDAD')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-ricci.jpg)");
			 $("#titoloVideo").css("background-image","url(images/ouidad_video.jpg)");
		 }
		 	 if(name=='RITA')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-colorati.jpg)");
			 $("#titoloVideo").css("background-image","url(images/rita_hazan.jpg)");
		 }
		 	 if(name=='TEDDY')
	 {
		 	 $("#videoEsperti").css("background-image","url(images/bg-volume.jpg)");
			 $("#titoloVideo").css("background-image","url(images/teddy_charles.jpg)");
		 }

}
