 $(function() {
 $('#boxbutton1').hover(  
 function () { 
 $('.boxtxt').hide(); 
 $('#boxtxt1').show();
 $(".boxbutton").css('background-image','url(images/bul1.gif)'); 
 $("#boxbutton1").css('background-image','url(images/bul2.gif)'); 
 }
);

$('#boxbutton2').hover(
function () {
$('.boxtxt').hide(); 
$('#boxtxt2').show(); 
$(".boxbutton").css('background-image','url(images/bul1.gif)'); 
$("#boxbutton2").css('background-image','url(images/bul2.gif)'); 
}
);

$('#boxbutton3').hover(
function () {
$('.boxtxt').hide(); 
$('#boxtxt3').show(); 
$(".boxbutton").css('background-image','url(images/bul1.gif)'); 
$("#boxbutton3").css('background-image','url(images/bul2.gif)'); 
}
);
}); 

function banner() {  
indice=indice + 1;
if(indice>3)indice=1;
indice2=indice + 1;
if(indice2>3)indice2=1;

$('#tit' + indice2).animate({'bottom':'30px'},1000);
$('#tit' + indice).animate({'bottom':'250px'},1000, function() {
$('#tit' + indice).css('bottom','-100px');
}); 
}

var indice=0;
var indice2=1;
x = window.setInterval("banner()", 3000);
function strip() {  
indicestrip=indicestrip - 5;
indicestrip2=indicestrip2 - 5;
if(indicestrip==0) {indicestrip2=460;}
if(indicestrip2==0) {indicestrip=460;}

$('#strip1').css({'left':indicestrip + 'px'});
$('#strip2').css({'left':indicestrip2 + 'px'});
}
var indicestrip=0;
var indicestrip2=460;
x = window.setInterval("strip()", 400);	
                                              


function scambiopola() {  
 indicepola=indicepola + 1;
if(indicepola>3)indicepola=1;
indicepola2=indicepola + 1;
if(indicepola2>3)indicepola2=1;
$('#pola' + indicepola).css("z-index","0"); 
$('#pola'+ indicepola2).css("z-index","4000"); 
 
}
var indicepola=0;
var indicepola2=1;
xx = window.setInterval("scambiopola()", 3000);





