//BLOCCO SOLUZIONI
var arrObject=["#MMM","#DE","#PM","#PW"];
var CounterFL;

function Next(fromTo){
	$(arrObject[CounterFL]).click();
}
$(document).ready(function(){
	CounterFL=0;		   
	 $(".bottFla").click(											 
        function()
        {
			$(".bottFla").removeClass("sel")
			$(this).addClass("sel");
			for(i=0;i<arrObject.length-1;i++){
				if(arrObject[i].substring(1,String(arrObject[i]).length)==$(this).attr('id')){
					CounterFL=(i)
					}
				}
				if(CounterFL<arrObject.length-1){
						CounterFL++;
					}else{
						CounterFL=0;
					}
			//$("#contentFla").flash($(this).attr('title'));
			$('#contentFla').flash(
				{
					swf: $(this).attr('title'),
					height: 308,
					width: 412,
					allowScriptAccess: 'always',
					flashvars: {
						battleMode: true,
						computer: true,
						players: 2
					}
	}
);
			
			
			
			
        }
    )
	Next("")		   
    $(".gruppo .pop").not(".aperto").css('display','none');
	
    $(".prodotto").not(".sel").hover(
												 
        function()
        {
			//$(".aperto").css('display', 'none');
			$(this).find('img').fadeOut(200,function(){$(this).parent().parent().children(".pop").css('display', 'block');});
            //
		},		
        function()
        {
			//$(".aperto").css('display', 'block');
			$(this).find('img').fadeIn(200,function(){$(this).parent().parent().children(".pop").css('display', 'none');});
            //$(this).children(".pop").css('display', 'none');
        }
    )
});
     
