$(document).ready(function() {

    $('#gallery').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#next2', 
    prev:   '#prev2' 
    });

    /*COMMERCIAL WORK*/
   
    $('#mainfoto img.intro').hide();
    $('#achitetturaimg').show();
    $('#50cmsottomareimg').show(); 
    $('#classicimg').show(); 
    $('#wd_porfolioimg').show(); 
    
	
	$('#achitettura').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});
	
	$('#achitettura').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});
	
	$('#beauty').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#beautyimg').show();
  	});
  	
  	$('#beauty').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});
  	
	$('#fashion').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#fashionimg').show();
  	});
  	
  	$('#fashion').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});  	
 
	$('#food').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#foodimg').show();
  	});  
  	
  	$('#food').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});

	$('#modakids').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#modakidsimg').show();
  	});
  	
  	$('#modakids').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#achitetturaimg').show();
	});
  	
  	/*PERSONAL WORK*/
  	
  	$('#alteluci').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#alteluciimg').show();
  	});
  	
  	$('#alteluci').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});
  	
  	$('#acquaria').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#acquariaimg').show();
  	});
  	
  	$('#acquaria').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});  
  	$('#abisso').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#abissoimg').show();
  	});
  	
  	$('#abisso').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});  
         $('#bytrain').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#bytrainimg').show();
  	});
  	
  	$('#bytrain').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	}); 
  	
           $('#gettoandalusia').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#gettoandalusiaimg').show();
  	});
  	
  	$('#gettoandalusia').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});          
          
  	$('#memories').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#memoriesimg').show();
  	});
  	
  	$('#memories').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});  	
  	
  	$('#portraits').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#portraitsimg').show();
  	});
  	
  	$('#portraits').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});  
  	
  	$('#private').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#privateimg').show();
  	});
  	
  	$('#private').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});
  	
  	$('#pucrazy').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#pucrazyimg').show();
  	});
  	
  	$('#pucrazy').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});  	
  	
  	$('#tentazioni').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#tentazioniimg').show();
  	});  	
  	
  	$('#tentazioni').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});
  	
  	$('#50cmsottomare').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});
  	
  	$('#50cmsottomare').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});

  	$('#restiestate').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#restiestateimg').show();
  	});
  	
  	$('#restiestate').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#50cmsottomareimg').show();
  	});
          
  	/*PORTRAITS WORK*/

  	$('#classic').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#classicimg').show();
  	});
  	
  	$('#classic').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#classicimg').show();
  	});  	
  	
  	$('#identikit').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#identikitimg').show();
  	});  	
  	
  	$('#identikit').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#classicimg').show();
  	});  
  	
  	$('#kids').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#kidsimg').show();
  	}); 
  	
  	$('#kids').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#classicimg').show();
  	});  	  	
  	
  	$('#actors').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#actorsimg').show();
  	});
  	
  	$('#actors').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#classicimg').show();
  	});
          

	/*WEDDING*/
  	
  	$('#wd_porfolio').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	
  	$('#wd_porfolio').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	$('#wd_polaroid').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_polaroidimg').show();
  	});
  	
  	$('#wd_polaroid').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	$('#wd_bepperaffa').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_bepperaffaimg').show();
  	});
  	
  	$('#wd_bepperaffa').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	$('#wd_ezioangy').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_ezioangyimg').show();
  	});
  	
  	$('#wd_ezioangy').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	$('#wd_pieroangy').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_pieroangyimg').show();
  	});
  	
  	$('#wd_pieroangy').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	$('#wd_stafajulia').mouseover(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_stafajuliaimg').show();
  	});
  	
  	$('#wd_stafajulia').mouseout(function(){
	    $('#mainfoto img.intro').hide();
	    $('#wd_porfolioimg').show();
  	});
  	
  	/*intro casuale*/
  	$('#container_intro').html(image[increment]);

  	
}); 

/* INIZIO BANNER CASUALE */

var image = new Array();

number = 0;


image[number++] = "<a href='commercial_work_fashion' title='Studio Reportage'><img src='../images/fashion_02.jpg' alt='Studio Reportage' /></a>"

increment = Math.floor(Math.random() * number);


 
 

