//v1.0
// Roller Pictures on Boxes
// Copyright 2009 24Horas-OnLine.es  All rights reserved.


var dir_foto = "http://www.turquesa-online.com/foto-id/";
var dir_pics = "http://www.turquesa-online.com/images/";

<!--  ITEMS  -->
function Articulo(code) {
this.code = 'p0';
this.tittle = 'T';
this.subtittle = 'ST';
this.ebaytittle = 'ET';
this.fotoname = 'FN';
this.fotonumber = 0;
this.foto1 = 0;
this.foto2 = 0;
this.pvr = '0,0';
this.pvo= '0,0';
this.shortname = 'SN';
}

var p00000 = new Articulo('p00000');
p00000.tittle = '0';
p00000.subtittle = '0';
p00000.ebaytittle = '0';
p00000.fotoname = '00000';
p00000.fotonumber = 0;
p00000.foto1 = '0';
p00000.foto2 = '0';
p00000.pvr = '0';
p00000.pvo= '.95';
p00000.shortname= '0';

var p82 = new Articulo('p82');     
p82.tittle = 'Perfume FANTASY de BRITNEY SPEARS Cofre Regalo';     
p82.subtittle = 'Eau de Parfum Spray 100 ml. + Magic Body Souffle 100 ml. + Perfumed Shower Gel 100 ml.';     
p82.ebaytittle = 'perfume mujer FANTASY Britney Spears edp100 +Body +Gel';      
p82.fotoname = '82';     
p82.fotonumber = 3;     
p82.foto1 = '2';     
p82.foto2 = '3';     
p82.pvr = '69';     
p82.pvo = '39,95';     
p82.code = '23,7774';     
p82.shortname = 'Set FANTASY 100 + Body + Gel';     

var p66888 = new Articulo('p66888');     
p66888.tittle = 'CALVIN KLEIN Infinite Matte Foundation Oil-Free MakeUp';     
p66888.subtittle = 'Maquillaje Libre de Aceite  -  Tono num. 214 Biscuit (Claro)  -  29,6 ml.';     
p66888.ebaytittle = 'CALVlN KLElN Infinite Matte Biscuit Maquillaje (Claro)';      
p66888.fotoname = '66888';     
p66888.fotonumber = 2;     
p66888.foto1 = '1';     
p66888.foto2 = '2';     
p66888.pvr = '46';     
p66888.pvo = '16,95';     
p66888.code = '5,52';     
p66888.shortname = 'Calvin Klein - Maquillaje (Tono Claro)';  

var p244 = new Articulo('p244');     
p244.tittle = 'Perfume CK ONE de CALVIN KLEIN';     
p244.subtittle = 'SET REGALO: Eau de Toilette 200 ml. + Weekend Bag de Calvin Klein';     
p244.ebaytittle = 'C.K. ONE 200 + Weekend Bag Oferta Perfumes Baratos';      
p244.fotoname = '244';     
p244.fotonumber = 2;     
p244.foto1 = '1';     
p244.foto2 = '3';     
p244.pvr = '72';     
p244.pvo = '47,95';     
p244.code = '31,05';     
p244.shortname = 'CK ONE 200 + Weekend Bag'; 

var p38501 = new Articulo('p38501');     
p38501.tittle = 'Perfume DIESEL FUEL FOR LIFE Man';     
p38501.subtittle = 'Eau de Toilette pour Homme - 125 ml. - Origina';     
p38501.ebaytittle = 'DIESEL Fuel For Life Man 125 Perfumes de Hombre Baratos';     
p38501.fotoname = '38501';     
p38501.fotonumber = 2;     
p38501.foto1 = '1';     
p38501.foto2 = '2';     
p38501.pvr = '65';     
p38501.pvo = '39,95';     
p38501.code = '24,15';     
p38501.shortname = 'Diesel Fuel For Life Man 125'; 

var p206 = new Articulo('p206');     
p206.tittle = 'BRONZING SHIMMER POWDER de ELIZABETH ARDEN';     
p206.subtittle = 'Polvos Bronceadores Iluminadores + Espejo Tocador + Brocha Kabuki - PVR 48€';     
p206.ebaytittle = 'E. ARDEN Polvos de Sol Iluminadores + Brocha Kabuki 48€';      
p206.fotoname = '206';     
p206.fotonumber = 2;     
p206.foto1 = '2';     
p206.foto2 = '1';     
p206.pvr = '48';     
p206.pvo = '21,95';     
p206.code = '7,90625';     
p206.shortname = 'E. Arden Polvos de Sol + Kabuki';  

var p36434 = new Articulo('p36434');     
p36434.tittle = 'Elizabeth Arden Ceramide Plump Perfect Time CompleX';     
p36434.subtittle = 'SET: Moisture Cream 50 ml + Perfect Firming Facial Mask (Cara) + Eye Moisture Cream (Ojos) +  Firming Body Suffle (Cuerpo)';     
p36434.ebaytittle = 'Elizabeth Arden CERAMIDE PLUMP PERFECT Time Complex SET';      
p36434.fotoname = '36434';     
p36434.fotonumber = 3;     
p36434.foto1 = '1';     
p36434.foto2 = '3';     
p36434.pvr = '';     
p36434.pvo = '44,95';     
p36434.code = '20,493';     
p36434.shortname = 'Set Cremas Ceramide Plump Perfect';  

var p25595 = new Articulo('p25595');     
p25595.tittle = 'Perfume GREEN TEA de ELIZABETH ARDEN';     
p25595.subtittle = 'Eau de Parfum Mujer - 100 ml - Natural Spray - Original';     
p25595.ebaytittle = 'Elizabeth Arden Green Tea EDP 100 Oferta Perfume Mujer';      
p25595.fotoname = '25595';     
p25595.fotonumber = 2;     
p25595.foto1 = '1';     
p25595.foto2 = '2';     
p25595.pvr = '52';     
p25595.pvo = '25,95';     
p25595.code = '9,66';   
p25595.shortname = 'E. Arden GREEN TEA edp 100';   

var p127 = new Articulo('p127');     
p127.tittle = 'Emulsión Renovadora MILLENIUM DAY de Elizabeth ARDEN';     
p127.subtittle = 'Day Renewal Emulsion 75 ml. (Crema Renovadora de Día) PVR 94€';    
p127.ebaytittle = 'Emulsion RENOVADORA MILLENIUM DAY Elizabeth Arden PV94€';      
p127.fotoname = '127';     
p127.fotonumber = 2;     
p127.foto1 = '2';     
p127.foto2 = '1';     
p127.pvr = '94';     
p127.pvo = '31,95';     
p127.code = '16,905';     
p127.shortname = 'E. Arden Millenium Day 75';    

var p205 = new Articulo('p205');     
p205.tittle = 'Perfume SPLENDOR de Elizabeth Arden';     
p205.subtittle = 'SET REGALO: Eau de Parfum - 125 ml. + Body Lotion 100 ml.';     
p205.ebaytittle = 'Perfume Mujer SPLENDOR Elizabeth Arden EDP 125ml + Body';      
p205.fotoname = '205';     
p205.fotonumber = 3;     
p205.foto1 = '1';     
p205.foto2 = '2';     
p205.pvr = '70';     
p205.pvo = '30,95';     
p205.code = '10,35';     
p205.shortname = 'E. Arden Splendor 125 + Body 100';  

var p128 = new Articulo('p128');     
p128.tittle = 'Crema VISIBLE DIFFERENCE de Elizabeth Arden';     
p128.subtittle = 'Refining Moisture Cream Complex 75 ml. PVR 84€';     
p128.ebaytittle = 'Crema Facial SUPER HIDRATANTE Elizabeth ARDEN 75ml 78€';      
p128.fotoname = '128';     
p128.fotonumber = 3;     
p128.foto1 = '1';     
p128.foto2 = '2';     
p128.pvr = '84';     
p128.pvo = '32,95';     
p128.code = '15,9666';     
p128.shortname = 'E. Arden Visible Dif. Crema 75ml'; 

var p60011 = new Articulo('p60011');     
p60011.tittle = 'Perfume de Mujer GLORIA VANDERBILT';     
p60011.subtittle = 'Eau de Toilette pour Femme - 100 ml. - Original';     
p60011.ebaytittle = 'GLORIA VANDERBILT edt 100 Oferta Perfumes Mujer Baratos';      
p60011.fotoname = '60011';     
p60011.fotonumber = 3;     
p60011.foto1 = '1';     
p60011.foto2 = '2';     
p60011.pvr = '50';     
p60011.pvo = '21,95';     
p60011.code = '7,4704';     
p60011.shortname = 'Gloria Vanderbilt 100 ml'; 

var p225 = new Articulo('p225');     
p225.tittle = 'Perfume CABOTINE de GRES';     
p225.subtittle = 'Set Regalo:  EDT pour femme 100 ml. + Body Lotion 200 ml. - PVR 72€';     
p225.ebaytittle = 'Perfume Mujer GRES CABOTINE 100 + BODY 200 Set Regalo';      
p225.fotoname = '225';     
p225.fotonumber = 4;     
p225.foto1 = '4';     
p225.foto2 = '3';     
p225.pvr = '72';     
p225.pvo = '38,95';     
p225.code = '20,7';     
p225.shortname = 'Gres CABOTINE 100 + Body 200'; 

var p40459 = new Articulo('p40459');     
p40459.tittle = 'Perfume IN BLACK de JESUS DEL POZO';     
p40459.subtittle = 'SET REGALO:  Eau de Toilette 100 ml + Body Lotion + Miniatura';     
p40459.ebaytittle = 'Jesus del Pozo IN BLACK 100 + Mini + Body PERFUME SET';      
p40459.fotoname = '40459';     
p40459.fotonumber = 5;     
p40459.foto1 = '5';     
p40459.foto2 = '2';     
p40459.pvr = '70';     
p40459.pvo = '32,95';     
p40459.code = '17,94';     
p40459.shortname = 'Cofre IN BLACK Jesus del Pozo';  

var p174 = new Articulo('p174');     
p174.tittle = 'Perfume SUN MOON STARS de KARL LAGERFELD';     
p174.subtittle = 'Eau de Toilette pour Homme - 100 ml. - Natural Spray - Original';     
p174.ebaytittle = 'SUN MOON STARS 100 KarI LagerfeId Perfume Mujer Baratos';      
p174.fotoname = '174';     
p174.fotonumber = 4;     
p174.foto1 = '4';     
p174.foto2 = '3';     
p174.pvr = '72';     
p174.pvo = '31,95';     
p174.code = '16,56';     
p174.shortname = 'Karl Lagerfeld SUN, MOON, STARS'; 

var p66302 = new Articulo('p66302');     
p66302.tittle = 'Perfume XS de PACO RABANNE Set Regalo';     
p66302.subtittle = 'Eau de Toilette para Hombre - 100 ml. + Desodorante Stick';     
p66302.ebaytittle = 'Cofre Regalo Perfume PAC0 RABANE X-S 100 ml + Deodorant';      
p66302.fotoname = '66302';     
p66302.fotonumber = 3;     
p66302.foto1 = '1';     
p66302.foto2 = '3';     
p66302.pvr = '78';     
p66302.pvo = '45,95';     
p66302.code = '29,4872';     
p66302.shortname = 'Paco Rabanne XS Man + Deo Stick';   

var p37608 = new Articulo('p37608');     
p37608.tittle = 'Perfume QUORUM SILVER';     
p37608.subtittle = 'Eau de Toilette para Hombre  - 100 ml. - Natural Spray - ORIGINAL';     
p37608.ebaytittle = 'QUORUM SILVER Oferta Perfumes Hombre Originales';      
p37608.fotoname = '37608';     
p37608.fotonumber = 2;     
p37608.foto1 = '1';     
p37608.foto2 = '2';     
p37608.pvr = '50';     
p37608.pvo = '24,95';     
p37608.code = '10,971';     
p37608.shortname = 'Quorum SILVER 100 ml'; 

var p10994 = new Articulo('p10994');     
p10994.tittle = 'perfume de mujer ROCHAS TOCADE edt 100ml ORIGINAL';     
p10994.subtittle = 'Eau de Toilette pour Femme - 100 ml. - Natural Spray - ORIGINAL';     
p10994.ebaytittle = 'ROCHAS TOCADE 100 ml Perfumes Mujer Originales Baratos';      
p10994.fotoname = '10994';     
p10994.fotonumber = 5;     
p10994.foto1 = '6';     
p10994.foto2 = '5';     
p10994.pvr = '70';     
p10994.pvo = '39,95';     
p10994.code = '24';     
p10994.shortname = 'Rochas TOCADE 100 ml';  

var p41921 = new Articulo('p41921');     
p41921.tittle = 'Thierry Mugler Angel Innocent Malicieuse';     
p41921.subtittle = 'Eau de Parfum Woman - 75 ml - Limited Edition';     
p41921.ebaytittle = 'Tierry MugIer ANGEL lNNOCENT Eau Malicieuse 75 Limited';      
p41921.fotoname = '41921';     
p41921.fotonumber = 2;     
p41921.foto1 = '3';     
p41921.foto2 = '1';     
p41921.pvr = '76';     
p41921.pvo = '36,95';     
p41921.code = '21,873';     
p41921.shortname = 'Thierry Mugler Angel Innocent Malicieuse';  


<!--  FIN ITEMS  -->

<!--  ROLL - VARS  -->

var box1_pic_num = 5; // >1 = roller() -- max. 10
var tempo_b1 = 6400;  //  roll box_1 time mileseg.

var box2_pic_num = 5; // >1 = roller() -- max. 10
var tempo_b2 = 4600;  //  roll box_2 time mileseg.

var box3_pic_num = 4; // >1 = roller() -- max. 10
var tempo_b3 = 5800;  //  roll box_3 time mileseg.

var box4_pic_num = 4; // >1 = roller() -- max. 10
var tempo_b4 = 5200;  //  roll box_4 time mileseg.


var drw = 1;  // >0  init draw_pic()
var wrt = 1;  // >0 init write_sub()
var roll = 1; // >0 init roller()

function draw_pic() { 
	draw_pic1_1(); 
	draw_pic2_1();
	draw_pic3_1(); 
	draw_pic4_1();

}
function write_sub() { 
	write_sub1_1(); 
	write_sub2_1();
	write_sub3_1(); 
	write_sub4_1();

}
function roller() {
	roller_1(); 
	roller_2(); 
	roller_3(); 
	roller_4(); 
}	

<!--  BOX 1 - VARS  -->

var box1_pic1_foto_n1 = p66302.fotoname+"-"+p66302.foto1+".jpg";  
var box1_pic2_foto_n1 = p66302.fotoname+"-"+p66302.foto2+".jpg"; 
var box1_pic1_foto_s1 = p66302.pvr;
var box1_pic2_foto_s1 = p66302.pvo;
var box1_item_name1 = p66302.shortname;

var box1_pic1_foto_n2 = p40459.fotoname+"-"+p40459.foto1+".jpg"; 
var box1_pic2_foto_n2 = p40459.fotoname+"-"+p40459.foto2+".jpg";  
var box1_pic1_foto_s2 = p40459.pvr;
var box1_pic2_foto_s2 = p40459.pvo;
var box1_item_name2 = p40459.shortname;

var box1_pic1_foto_n3 = p38501.fotoname+"-"+p38501.foto1+".jpg";  
var box1_pic2_foto_n3 = p38501.fotoname+"-"+p38501.foto2+".jpg"; 
var box1_pic1_foto_s3 = p38501.pvr;
var box1_pic2_foto_s3 = p38501.pvo;
var box1_item_name3 = p38501.shortname;

var box1_pic1_foto_n4 = p41921.fotoname+"-"+p41921.foto1+".jpg"; 
var box1_pic2_foto_n4 = p41921.fotoname+"-"+p41921.foto2+".jpg";  
var box1_pic1_foto_s4 = p41921.pvr;
var box1_pic2_foto_s4 = p41921.pvo;
var box1_item_name4 = p41921.shortname;

var box1_pic1_foto_n5 = p244.fotoname+"-"+p244.foto1+".jpg";  
var box1_pic2_foto_n5 = p244.fotoname+"-"+p244.foto2+".jpg"; 
var box1_pic1_foto_s5 = p244.pvr;
var box1_pic2_foto_s5 = p244.pvo;
var box1_item_name5 = p244.shortname;

var box1_pic1_foto_n6 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box1_pic2_foto_n6 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box1_pic1_foto_s6 = p00000.pvr;
var box1_pic2_foto_s6 = p00000.pvo;
var box1_item_name6 = p00000.shortname;

var box1_pic1_foto_n7 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box1_pic2_foto_n7 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box1_pic1_foto_s7 = p00000.pvr;
var box1_pic2_foto_s7 = p00000.pvo;
var box1_item_name7 = p00000.shortname;

var box1_pic1_foto_n8 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box1_pic2_foto_n8 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box1_pic1_foto_s8 = p00000.pvr;
var box1_pic2_foto_s8 = p00000.pvo;
var box1_item_name8 = p00000.shortname;

var box1_pic1_foto_n9 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box1_pic2_foto_n9 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box1_pic1_foto_s9 = p00000.pvr;
var box1_pic2_foto_s9 = p00000.pvo;
var box1_item_name9 = p00000.shortname;

var box1_pic1_foto_n10 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box1_pic2_foto_n10 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box1_pic1_foto_s10 = p00000.pvr;
var box1_pic2_foto_s10 = p00000.pvo;
var box1_item_name10 = p00000.shortname;

<!--  BOX 2 - VARS  -->

var box2_pic1_foto_n1 = p36434.fotoname+"-"+p36434.foto1+".jpg";  
var box2_pic2_foto_n1 = p36434.fotoname+"-"+p36434.foto2+".jpg"; 
var box2_pic1_foto_s1 = p36434.pvr;
var box2_pic2_foto_s1 = p36434.pvo;
var box2_item_name1 = p36434.shortname;

var box2_pic1_foto_n2 = p66888.fotoname+"-"+p66888.foto1+".jpg"; 
var box2_pic2_foto_n2 = p66888.fotoname+"-"+p66888.foto2+".jpg";  
var box2_pic1_foto_s2 = p66888.pvr;
var box2_pic2_foto_s2 = p66888.pvo;
var box2_item_name2 = p66888.shortname;

var box2_pic1_foto_n3 = p128.fotoname+"-"+p128.foto1+".jpg";  
var box2_pic2_foto_n3 = p128.fotoname+"-"+p128.foto2+".jpg"; 
var box2_pic1_foto_s3 = p128.pvr;
var box2_pic2_foto_s3 = p128.pvo;
var box2_item_name3 = p128.shortname;

var box2_pic1_foto_n4 = p206.fotoname+"-"+p206.foto1+".jpg"; 
var box2_pic2_foto_n4 = p206.fotoname+"-"+p206.foto2+".jpg";  
var box2_pic1_foto_s4 = p206.pvr;
var box2_pic2_foto_s4 = p206.pvo;
var box2_item_name4 = p206.shortname;

var box2_pic1_foto_n5 = p127.fotoname+"-"+p127.foto1+".jpg";  
var box2_pic2_foto_n5 = p127.fotoname+"-"+p127.foto2+".jpg"; 
var box2_pic1_foto_s5 = p127.pvr;
var box2_pic2_foto_s5 = p127.pvo;
var box2_item_name5 = p127.shortname;

var box2_pic1_foto_n6 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box2_pic2_foto_n6 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box2_pic1_foto_s6 = p00000.pvr;
var box2_pic2_foto_s6 = p00000.pvo;
var box2_item_name6 = p00000.shortname;

var box2_pic1_foto_n7 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box2_pic2_foto_n7 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box2_pic1_foto_s7 = p00000.pvr;
var box2_pic2_foto_s7 = p00000.pvo;
var box2_item_name7 = p00000.shortname;

var box2_pic1_foto_n8 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box2_pic2_foto_n8 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box2_pic1_foto_s8 = p00000.pvr;
var box2_pic2_foto_s8 = p00000.pvo;
var box2_item_name8 = p00000.shortname;

var box2_pic1_foto_n9 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box2_pic2_foto_n9 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box2_pic1_foto_s9 = p00000.pvr;
var box2_pic2_foto_s9 = p00000.pvo;
var box2_item_name9 = p00000.shortname;

var box2_pic1_foto_n10 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box2_pic2_foto_n10 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box2_pic1_foto_s10 = p00000.pvr;
var box2_pic2_foto_s10 = p00000.pvo;
var box2_item_name10 = p00000.shortname;

<!--  BOX 3 - VARS  -->

var box3_pic1_foto_n1 = p82.fotoname+"-"+p82.foto1+".jpg";  
var box3_pic2_foto_n1 = p82.fotoname+"-"+p82.foto2+".jpg"; 
var box3_pic1_foto_s1 = p82.pvr;
var box3_pic2_foto_s1 = p82.pvo;
var box3_item_name1 = p82.shortname;

var box3_pic1_foto_n2 = p225.fotoname+"-"+p225.foto1+".jpg"; 
var box3_pic2_foto_n2 = p225.fotoname+"-"+p225.foto2+".jpg";  
var box3_pic1_foto_s2 = p225.pvr;
var box3_pic2_foto_s2 = p225.pvo;
var box3_item_name2 = p225.shortname;

var box3_pic1_foto_n3 = p10994.fotoname+"-"+p10994.foto1+".jpg";  
var box3_pic2_foto_n3 = p10994.fotoname+"-"+p10994.foto2+".jpg"; 
var box3_pic1_foto_s3 = p10994.pvr;
var box3_pic2_foto_s3 = p10994.pvo;
var box3_item_name3 = p10994.shortname;

var box3_pic1_foto_n4 = p174.fotoname+"-"+p174.foto1+".jpg"; 
var box3_pic2_foto_n4 = p174.fotoname+"-"+p174.foto2+".jpg";  
var box3_pic1_foto_s4 = p174.pvr;
var box3_pic2_foto_s4 = p174.pvo;
var box3_item_name4 = p174.shortname;

var box3_pic1_foto_n5 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box3_pic2_foto_n5 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box3_pic1_foto_s5 = p00000.pvr;
var box3_pic2_foto_s5 = p00000.pvo;
var box3_item_name5 = p00000.shortname;

var box3_pic1_foto_n6 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box3_pic2_foto_n6 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box3_pic1_foto_s6 = p00000.pvr;
var box3_pic2_foto_s6 = p00000.pvo;
var box3_item_name6 = p00000.shortname;

var box3_pic1_foto_n7 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box3_pic2_foto_n7 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box3_pic1_foto_s7 = p00000.pvr;
var box3_pic2_foto_s7 = p00000.pvo;
var box3_item_name7 = p00000.shortname;

var box3_pic1_foto_n8 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box3_pic2_foto_n8 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box3_pic1_foto_s8 = p00000.pvr;
var box3_pic2_foto_s8 = p00000.pvo;
var box3_item_name8 = p00000.shortname;

var box3_pic1_foto_n9 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box3_pic2_foto_n9 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box3_pic1_foto_s9 = p00000.pvr;
var box3_pic2_foto_s9 = p00000.pvo;
var box3_item_name9 = p00000.shortname;

var box3_pic1_foto_n10 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box3_pic2_foto_n10 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box3_pic1_foto_s10 = p00000.pvr;
var box3_pic2_foto_s10 = p00000.pvo;
var box3_item_name10 = p00000.shortname;

<!--  BOX 4 - VARS  -->

var box4_pic1_foto_n1 = p205.fotoname+"-"+p205.foto1+".jpg";  
var box4_pic2_foto_n1 = p205.fotoname+"-"+p205.foto2+".jpg"; 
var box4_pic1_foto_s1 = p205.pvr;
var box4_pic2_foto_s1 = p205.pvo;
var box4_item_name1 = p205.shortname;

var box4_pic1_foto_n2 = p25595.fotoname+"-"+p25595.foto1+".jpg"; 
var box4_pic2_foto_n2 = p25595.fotoname+"-"+p25595.foto2+".jpg";  
var box4_pic1_foto_s2 = p25595.pvr;
var box4_pic2_foto_s2 = p25595.pvo;
var box4_item_name2 = p25595.shortname;

var box4_pic1_foto_n3 = p37608.fotoname+"-"+p37608.foto1+".jpg";  
var box4_pic2_foto_n3 = p37608.fotoname+"-"+p37608.foto2+".jpg"; 
var box4_pic1_foto_s3 = p37608.pvr;
var box4_pic2_foto_s3 = p37608.pvo;
var box4_item_name3 = p37608.shortname;

var box4_pic1_foto_n4 = p60011.fotoname+"-"+p60011.foto1+".jpg"; 
var box4_pic2_foto_n4 = p60011.fotoname+"-"+p60011.foto2+".jpg";  
var box4_pic1_foto_s4 = p60011.pvr;
var box4_pic2_foto_s4 = p60011.pvo;
var box4_item_name4 = p60011.shortname;

var box4_pic1_foto_n5 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box4_pic2_foto_n5 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box4_pic1_foto_s5 = p00000.pvr;
var box4_pic2_foto_s5 = p00000.pvo;
var box4_item_name5 = p00000.shortname;

var box4_pic1_foto_n6 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box4_pic2_foto_n6 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box4_pic1_foto_s6 = p00000.pvr;
var box4_pic2_foto_s6 = p00000.pvo;
var box4_item_name6 = p00000.shortname;

var box4_pic1_foto_n7 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box4_pic2_foto_n7 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box4_pic1_foto_s7 = p00000.pvr;
var box4_pic2_foto_s7 = p00000.pvo;
var box4_item_name7 = p00000.shortname;

var box4_pic1_foto_n8 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box4_pic2_foto_n8 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box4_pic1_foto_s8 = p00000.pvr;
var box4_pic2_foto_s8 = p00000.pvo;
var box4_item_name8 = p00000.shortname;

var box4_pic1_foto_n9 = p00000.fotoname+"-"+p00000.foto1+".jpg";  
var box4_pic2_foto_n9 = p00000.fotoname+"-"+p00000.foto2+".jpg"; 
var box4_pic1_foto_s9 = p00000.pvr;
var box4_pic2_foto_s9 = p00000.pvo;
var box4_item_name9 = p00000.shortname;

var box4_pic1_foto_n10 = p00000.fotoname+"-"+p00000.foto1+".jpg"; 
var box4_pic2_foto_n10 = p00000.fotoname+"-"+p00000.foto2+".jpg";  
var box4_pic1_foto_s10 = p00000.pvr;
var box4_pic2_foto_s10 = p00000.pvo;
var box4_item_name10 = p00000.shortname;

<!--  BOX 1 - SCRIPTS  -->
var box1_pic1_foto1 = new Image(); box1_pic1_foto1.src=dir_foto+box1_pic1_foto_n1;
var box1_pic2_foto1 = new Image(); box1_pic2_foto1.src=dir_foto+box1_pic2_foto_n1;

var box1_pic1_foto2 = new Image(); box1_pic1_foto2.src=dir_foto+box1_pic1_foto_n2;
var box1_pic2_foto2 = new Image(); box1_pic2_foto2.src=dir_foto+box1_pic2_foto_n2;

var box1_pic1_foto3 = new Image(); box1_pic1_foto3.src=dir_foto+box1_pic1_foto_n3;
var box1_pic2_foto3 = new Image(); box1_pic2_foto3.src=dir_foto+box1_pic2_foto_n3;

var box1_pic1_foto4 = new Image(); box1_pic1_foto4.src=dir_foto+box1_pic1_foto_n4;
var box1_pic2_foto4 = new Image(); box1_pic2_foto4.src=dir_foto+box1_pic2_foto_n4;

var box1_pic1_foto5 = new Image(); box1_pic1_foto5.src=dir_foto+box1_pic1_foto_n5;
var box1_pic2_foto5 = new Image(); box1_pic2_foto5.src=dir_foto+box1_pic2_foto_n5;

var box1_pic1_foto6 = new Image(); box1_pic1_foto6.src=dir_foto+box1_pic1_foto_n6;
var box1_pic2_foto6 = new Image(); box1_pic2_foto6.src=dir_foto+box1_pic2_foto_n6;

var box1_pic1_foto7 = new Image(); box1_pic1_foto7.src=dir_foto+box1_pic1_foto_n7;
var box1_pic2_foto7 = new Image(); box1_pic2_foto7.src=dir_foto+box1_pic2_foto_n7;

var box1_pic1_foto8 = new Image(); box1_pic1_foto8.src=dir_foto+box1_pic1_foto_n8;
var box1_pic2_foto8 = new Image(); box1_pic2_foto8.src=dir_foto+box1_pic2_foto_n8;

var box1_pic1_foto9 = new Image(); box1_pic1_foto9.src=dir_foto+box1_pic1_foto_n9;
var box1_pic2_foto9 = new Image(); box1_pic2_foto9.src=dir_foto+box1_pic2_foto_n9;

var box1_pic1_foto10 = new Image(); box1_pic1_foto10.src=dir_foto+box1_pic1_foto_n10;
var box1_pic2_foto10 = new Image(); box1_pic2_foto10.src=dir_foto+box1_pic2_foto_n10;

var roll_b1_pics;
var roll_b1_sub;

function draw_pic1_1() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto1.src;
	obj_box1_pic2.src=box1_pic2_foto1.src;
	roll_b1_pics = 1;
}

function draw_pic1_2() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto2.src;
	obj_box1_pic2.src=box1_pic2_foto2.src;
	roll_b1_pics = 2;
}

function draw_pic1_3() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto3.src;
	obj_box1_pic2.src=box1_pic2_foto3.src;
	roll_b1_pics = 3;
}

function draw_pic1_4() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto4.src;
	obj_box1_pic2.src=box1_pic2_foto4.src;
	roll_b1_pics = 4;
}

function draw_pic1_5() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto5.src;
	obj_box1_pic2.src=box1_pic2_foto5.src;
	roll_b1_pics = 5;
}

function draw_pic1_6() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto6.src;
	obj_box1_pic2.src=box1_pic2_foto6.src;
	roll_b1_pics = 6;
}

function draw_pic1_7() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto7.src;
	obj_box1_pic2.src=box1_pic2_foto7.src;
	roll_b1_pics = 7;
}

function draw_pic1_8() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto8.src;
	obj_box1_pic2.src=box1_pic2_foto8.src;
	roll_b1_pics = 8;
}

function draw_pic1_9() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto9.src;
	obj_box1_pic2.src=box1_pic2_foto9.src;
	roll_b1_pics = 9;
}

function draw_pic1_10() {
	var obj_box1_pic1 = document.all ? document.all('box1_pic1') : document.getElementById('box1_pic1');
	var obj_box1_pic2 = document.all ? document.all('box1_pic2') : document.getElementById('box1_pic2');
	obj_box1_pic1.src=box1_pic1_foto10.src;
	obj_box1_pic2.src=box1_pic2_foto10.src;
	roll_b1_pics = 10;
}

function write_sub1_1() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s1+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s1+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name1; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name1; }		
	roll_b1_sub = 1;
}

function write_sub1_2() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s2+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s2+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name2; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name2; }	
	roll_b1_sub = 2;

}

function write_sub1_3() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s3+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s3+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name3 ; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name3; }	
	roll_b1_sub = 2;

}

function write_sub1_4() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s4+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s4+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name4; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name4; }	
	roll_b1_sub = 2;

}

function write_sub1_5() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s5+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s5+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name5; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name5; }	
	roll_b1_sub = 2;

}

function write_sub1_6() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s6+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s6+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name6; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name6; }	
	roll_b1_sub = 2;

}

function write_sub1_7() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s7+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s7+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name7; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name7; }	
	roll_b1_sub = 2;

}

function write_sub1_8() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s8+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s8+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name8; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name8; }	
	roll_b1_sub = 2;

}

function write_sub1_9() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s9+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s9+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name9; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name9; }	
	roll_b1_sub = 2;

}

function write_sub1_10() {
	if (document.all) {
		document.all('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub1').innerHTML='<div>PVR '+box1_pic1_foto_s10+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box1_sub2').innerHTML='<div>'+box1_pic2_foto_s10+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box1_item').innerHTML=box1_item_name10; }
	else if (document.getElementById) {
		document.getElementById('box1_item').innerHTML=box1_item_name10; }	
	roll_b1_sub = 2;

}

var time_b1;
var timer_b1;

function roller_1() {
	if (box1_pic_num > 1) {
		time_b1 = setTimeout("roller_box1_1()",0001); }
} 

function roller_box1_1() { 
	if (roll_b1_pics > 1) { draw_pic1_1(); }
	if (roll_b1_sub >1) { 	write_sub1_1(); }
 	timer_b1 = setTimeout("roller_box1_2()",tempo_b1); 
}

function roller_box1_2() { 
	draw_pic1_2();
	write_sub1_2();
	if (box1_pic_num > 2) {
 		timer_b1 = setTimeout("roller_box1_3()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_3() { 
	draw_pic1_3();
	write_sub1_3();
	if (box1_pic_num > 3) {
 		timer_b1 = setTimeout("roller_box1_4()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_4() { 
	draw_pic1_4();
	write_sub1_4();
	if (box1_pic_num > 4) {
 		timer_b1 = setTimeout("roller_box1_5()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_5() { 
	draw_pic1_5();
	write_sub1_5();
	if (box1_pic_num > 5) {
 		timer_b1 = setTimeout("roller_box1_6()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_6() { 
	draw_pic1_6();
	write_sub1_6();
	if (box1_pic_num > 6) {
 		timer_b1 = setTimeout("roller_box1_7()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_7() { 
	draw_pic1_7();
	write_sub1_7();
	if (box1_pic_num > 7) {
 		timer_b1 = setTimeout("roller_box1_8()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_8() { 
	draw_pic1_8();
	write_sub1_8();
	if (box1_pic_num > 8) {
 		timer_b1 = setTimeout("roller_box1_9()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_9() { 
	draw_pic1_9();
	write_sub1_9();
	if (box1_pic_num > 9) {
 		timer_b1 = setTimeout("roller_box1_10()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

function roller_box1_10() { 
	draw_pic1_10();
	write_sub1_10();
	if (box1_pic_num > 10) {
 		timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
	else {
	 	timer_b1 = setTimeout("roller_box1_1()",tempo_b1); }
}

<!--  BOX 2 - SCRIPTS  -->

var box2_pic1_foto1 = new Image(); box2_pic1_foto1.src=dir_foto+box2_pic1_foto_n1;
var box2_pic2_foto1 = new Image(); box2_pic2_foto1.src=dir_foto+box2_pic2_foto_n1;

var box2_pic1_foto2 = new Image(); box2_pic1_foto2.src=dir_foto+box2_pic1_foto_n2;
var box2_pic2_foto2 = new Image(); box2_pic2_foto2.src=dir_foto+box2_pic2_foto_n2;

var box2_pic1_foto3 = new Image(); box2_pic1_foto3.src=dir_foto+box2_pic1_foto_n3;
var box2_pic2_foto3 = new Image(); box2_pic2_foto3.src=dir_foto+box2_pic2_foto_n3;

var box2_pic1_foto4 = new Image(); box2_pic1_foto4.src=dir_foto+box2_pic1_foto_n4;
var box2_pic2_foto4 = new Image(); box2_pic2_foto4.src=dir_foto+box2_pic2_foto_n4;

var box2_pic1_foto5 = new Image(); box2_pic1_foto5.src=dir_foto+box2_pic1_foto_n5;
var box2_pic2_foto5 = new Image(); box2_pic2_foto5.src=dir_foto+box2_pic2_foto_n5;

var box2_pic1_foto6 = new Image(); box2_pic1_foto6.src=dir_foto+box2_pic1_foto_n6;
var box2_pic2_foto6 = new Image(); box2_pic2_foto6.src=dir_foto+box2_pic2_foto_n6;

var box2_pic1_foto7 = new Image(); box2_pic1_foto7.src=dir_foto+box2_pic1_foto_n7;
var box2_pic2_foto7 = new Image(); box2_pic2_foto7.src=dir_foto+box2_pic2_foto_n7;

var box2_pic1_foto8 = new Image(); box2_pic1_foto8.src=dir_foto+box2_pic1_foto_n8;
var box2_pic2_foto8 = new Image(); box2_pic2_foto8.src=dir_foto+box2_pic2_foto_n8;

var box2_pic1_foto9 = new Image(); box2_pic1_foto9.src=dir_foto+box2_pic1_foto_n9;
var box2_pic2_foto9 = new Image(); box2_pic2_foto9.src=dir_foto+box2_pic2_foto_n9;

var box2_pic1_foto10 = new Image(); box2_pic1_foto10.src=dir_foto+box2_pic1_foto_n10;
var box2_pic2_foto10 = new Image(); box2_pic2_foto10.src=dir_foto+box2_pic2_foto_n10;

var roll_b2_pics;
var roll_b2_sub;

function draw_pic2_1() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto1.src;
	obj_box2_pic2.src=box2_pic2_foto1.src;
	roll_b2_pics = 1;
}

function draw_pic2_2() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto2.src;
	obj_box2_pic2.src=box2_pic2_foto2.src;
	roll_b2_pics = 2;
}

function draw_pic2_3() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto3.src;
	obj_box2_pic2.src=box2_pic2_foto3.src;
	roll_b2_pics = 3;
}

function draw_pic2_4() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto4.src;
	obj_box2_pic2.src=box2_pic2_foto4.src;
	roll_b2_pics = 4;
}

function draw_pic2_5() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto5.src;
	obj_box2_pic2.src=box2_pic2_foto5.src;
	roll_b2_pics = 5;
}

function draw_pic2_6() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto6.src;
	obj_box2_pic2.src=box2_pic2_foto6.src;
	roll_b2_pics = 6;
}

function draw_pic2_7() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto7.src;
	obj_box2_pic2.src=box2_pic2_foto7.src;
	roll_b2_pics = 7;
}

function draw_pic2_8() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto8.src;
	obj_box2_pic2.src=box2_pic2_foto8.src;
	roll_b2_pics = 8;
}

function draw_pic2_9() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto9.src;
	obj_box2_pic2.src=box2_pic2_foto9.src;
	roll_b2_pics = 9;
}

function draw_pic2_10() {
	var obj_box2_pic1 = document.all ? document.all('box2_pic1') : document.getElementById('box2_pic1');
	var obj_box2_pic2 = document.all ? document.all('box2_pic2') : document.getElementById('box2_pic2');
	obj_box2_pic1.src=box2_pic1_foto10.src;
	obj_box2_pic2.src=box2_pic2_foto10.src;
	roll_b2_pics = 10;
}

function write_sub2_1() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s1+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s1+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name1; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name1; }		
	roll_b2_sub = 1;
}

function write_sub2_2() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s2+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s2+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name2; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name2; }	
	roll_b2_sub = 2;

}

function write_sub2_3() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s3+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s3+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name3 ; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name3; }	
	roll_b2_sub = 2;

}

function write_sub2_4() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s4+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s4+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name4; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name4; }	
	roll_b2_sub = 2;

}

function write_sub2_5() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s5+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s5+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name5; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name5; }	
	roll_b2_sub = 2;

}

function write_sub2_6() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s6+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s6+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name6; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name6; }	
	roll_b2_sub = 2;

}

function write_sub2_7() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s7+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s7+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name7; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name7; }	
	roll_b2_sub = 2;

}

function write_sub2_8() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s8+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s8+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name8; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name8; }	
	roll_b2_sub = 2;

}

function write_sub2_9() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s9+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s9+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name9; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name9; }	
	roll_b2_sub = 2;

}

function write_sub2_10() {
	if (document.all) {
		document.all('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub1').innerHTML='<div>PVR '+box2_pic1_foto_s10+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box2_sub2').innerHTML='<div>'+box2_pic2_foto_s10+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box2_item').innerHTML=box2_item_name10; }
	else if (document.getElementById) {
		document.getElementById('box2_item').innerHTML=box2_item_name10; }	
	roll_b2_sub = 2;

}

var time_b2;
var timer_b2;

function roller_2() {
	if (box2_pic_num > 1) {
		time_b2 = setTimeout("roller_box2_1()",0001); }
} 

function roller_box2_1() { 
	if (roll_b2_pics > 1) { draw_pic2_1(); }
	if (roll_b2_sub >1) { 	write_sub2_1(); }
 	timer_b2 = setTimeout("roller_box2_2()",tempo_b2); 
}

function roller_box2_2() { 
	draw_pic2_2();
	write_sub2_2();
	if (box2_pic_num > 2) {
 		timer_b2 = setTimeout("roller_box2_3()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_3() { 
	draw_pic2_3();
	write_sub2_3();
	if (box2_pic_num > 3) {
 		timer_b2 = setTimeout("roller_box2_4()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_4() { 
	draw_pic2_4();
	write_sub2_4();
	if (box2_pic_num > 4) {
 		timer_b2 = setTimeout("roller_box2_5()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_5() { 
	draw_pic2_5();
	write_sub2_5();
	if (box2_pic_num > 5) {
 		timer_b2 = setTimeout("roller_box2_6()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_6() { 
	draw_pic2_6();
	write_sub2_6();
	if (box2_pic_num > 6) {
 		timer_b2 = setTimeout("roller_box2_7()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_7() { 
	draw_pic2_7();
	write_sub2_7();
	if (box2_pic_num > 7) {
 		timer_b2 = setTimeout("roller_box2_8()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_8() { 
	draw_pic2_8();
	write_sub2_8();
	if (box2_pic_num > 8) {
 		timer_b2 = setTimeout("roller_box2_9()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_9() { 
	draw_pic2_9();
	write_sub2_9();
	if (box2_pic_num > 9) {
 		timer_b2 = setTimeout("roller_box2_10()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

function roller_box2_10() { 
	draw_pic2_10();
	write_sub2_10();
	if (box2_pic_num > 10) {
 		timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
	else {
	 	timer_b2 = setTimeout("roller_box2_1()",tempo_b2); }
}

<!--  BOX 3 - SCRIPTS  -->

var box3_pic1_foto1 = new Image(); box3_pic1_foto1.src=dir_foto+box3_pic1_foto_n1;
var box3_pic2_foto1 = new Image(); box3_pic2_foto1.src=dir_foto+box3_pic2_foto_n1;

var box3_pic1_foto2 = new Image(); box3_pic1_foto2.src=dir_foto+box3_pic1_foto_n2;
var box3_pic2_foto2 = new Image(); box3_pic2_foto2.src=dir_foto+box3_pic2_foto_n2;

var box3_pic1_foto3 = new Image(); box3_pic1_foto3.src=dir_foto+box3_pic1_foto_n3;
var box3_pic2_foto3 = new Image(); box3_pic2_foto3.src=dir_foto+box3_pic2_foto_n3;

var box3_pic1_foto4 = new Image(); box3_pic1_foto4.src=dir_foto+box3_pic1_foto_n4;
var box3_pic2_foto4 = new Image(); box3_pic2_foto4.src=dir_foto+box3_pic2_foto_n4;

var box3_pic1_foto5 = new Image(); box3_pic1_foto5.src=dir_foto+box3_pic1_foto_n5;
var box3_pic2_foto5 = new Image(); box3_pic2_foto5.src=dir_foto+box3_pic2_foto_n5;

var box3_pic1_foto6 = new Image(); box3_pic1_foto6.src=dir_foto+box3_pic1_foto_n6;
var box3_pic2_foto6 = new Image(); box3_pic2_foto6.src=dir_foto+box3_pic2_foto_n6;

var box3_pic1_foto7 = new Image(); box3_pic1_foto7.src=dir_foto+box3_pic1_foto_n7;
var box3_pic2_foto7 = new Image(); box3_pic2_foto7.src=dir_foto+box3_pic2_foto_n7;

var box3_pic1_foto8 = new Image(); box3_pic1_foto8.src=dir_foto+box3_pic1_foto_n8;
var box3_pic2_foto8 = new Image(); box3_pic2_foto8.src=dir_foto+box3_pic2_foto_n8;

var box3_pic1_foto9 = new Image(); box3_pic1_foto9.src=dir_foto+box3_pic1_foto_n9;
var box3_pic2_foto9 = new Image(); box3_pic2_foto9.src=dir_foto+box3_pic2_foto_n9;

var box3_pic1_foto10 = new Image(); box3_pic1_foto10.src=dir_foto+box3_pic1_foto_n10;
var box3_pic2_foto10 = new Image(); box3_pic2_foto10.src=dir_foto+box3_pic2_foto_n10;

var roll_b3_pics;
var roll_b3_sub;

function draw_pic3_1() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto1.src;
	obj_box3_pic2.src=box3_pic2_foto1.src;
	roll_b3_pics = 1;
}

function draw_pic3_2() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto2.src;
	obj_box3_pic2.src=box3_pic2_foto2.src;
	roll_b3_pics = 2;
}

function draw_pic3_3() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto3.src;
	obj_box3_pic2.src=box3_pic2_foto3.src;
	roll_b3_pics = 3;
}

function draw_pic3_4() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto4.src;
	obj_box3_pic2.src=box3_pic2_foto4.src;
	roll_b3_pics = 4;
}

function draw_pic3_5() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto5.src;
	obj_box3_pic2.src=box3_pic2_foto5.src;
	roll_b3_pics = 5;
}

function draw_pic3_6() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto6.src;
	obj_box3_pic2.src=box3_pic2_foto6.src;
	roll_b3_pics = 6;
}

function draw_pic3_7() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto7.src;
	obj_box3_pic2.src=box3_pic2_foto7.src;
	roll_b3_pics = 7;
}

function draw_pic3_8() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto8.src;
	obj_box3_pic2.src=box3_pic2_foto8.src;
	roll_b3_pics = 8;
}

function draw_pic3_9() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto9.src;
	obj_box3_pic2.src=box3_pic2_foto9.src;
	roll_b3_pics = 9;
}

function draw_pic3_10() {
	var obj_box3_pic1 = document.all ? document.all('box3_pic1') : document.getElementById('box3_pic1');
	var obj_box3_pic2 = document.all ? document.all('box3_pic2') : document.getElementById('box3_pic2');
	obj_box3_pic1.src=box3_pic1_foto10.src;
	obj_box3_pic2.src=box3_pic2_foto10.src;
	roll_b3_pics = 10;
}

function write_sub3_1() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s1+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s1+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name1; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name1; }		
	roll_b3_sub = 1;
}

function write_sub3_2() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s2+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s2+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name2; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name2; }	
	roll_b3_sub = 2;

}

function write_sub3_3() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s3+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s3+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name3 ; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name3; }	
	roll_b3_sub = 2;

}

function write_sub3_4() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s4+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s4+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name4; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name4; }	
	roll_b3_sub = 2;

}

function write_sub3_5() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s5+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s5+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name5; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name5; }	
	roll_b3_sub = 2;

}

function write_sub3_6() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s6+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s6+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name6; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name6; }	
	roll_b3_sub = 2;

}

function write_sub3_7() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s7+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s7+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name7; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name7; }	
	roll_b3_sub = 2;

}

function write_sub3_8() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s8+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s8+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name8; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name8; }	
	roll_b3_sub = 2;

}

function write_sub3_9() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s9+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s9+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name9; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name9; }	
	roll_b3_sub = 2;

}

function write_sub3_10() {
	if (document.all) {
		document.all('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub1').innerHTML='<div>PVR '+box3_pic1_foto_s10+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box3_sub2').innerHTML='<div>'+box3_pic2_foto_s10+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box3_item').innerHTML=box3_item_name10; }
	else if (document.getElementById) {
		document.getElementById('box3_item').innerHTML=box3_item_name10; }	
	roll_b3_sub = 2;

}

var time_b3;
var timer_b3;

function roller_3() {
	if (box3_pic_num > 1) {
		time_b3 = setTimeout("roller_box3_1()",0001); }
} 

function roller_box3_1() { 
	if (roll_b3_pics > 1) { draw_pic3_1(); }
	if (roll_b3_sub >1) { 	write_sub3_1(); }
 	timer_b3 = setTimeout("roller_box3_2()",tempo_b3); 
}

function roller_box3_2() { 
	draw_pic3_2();
	write_sub3_2();
	if (box3_pic_num > 2) {
 		timer_b3 = setTimeout("roller_box3_3()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_3() { 
	draw_pic3_3();
	write_sub3_3();
	if (box3_pic_num > 3) {
 		timer_b3 = setTimeout("roller_box3_4()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_4() { 
	draw_pic3_4();
	write_sub3_4();
	if (box3_pic_num > 4) {
 		timer_b3 = setTimeout("roller_box3_5()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_5() { 
	draw_pic3_5();
	write_sub3_5();
	if (box3_pic_num > 5) {
 		timer_b3 = setTimeout("roller_box3_6()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_6() { 
	draw_pic3_6();
	write_sub3_6();
	if (box3_pic_num > 6) {
 		timer_b3 = setTimeout("roller_box3_7()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_7() { 
	draw_pic3_7();
	write_sub3_7();
	if (box3_pic_num > 7) {
 		timer_b3 = setTimeout("roller_box3_8()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_8() { 
	draw_pic3_8();
	write_sub3_8();
	if (box3_pic_num > 8) {
 		timer_b3 = setTimeout("roller_box3_9()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_9() { 
	draw_pic3_9();
	write_sub3_9();
	if (box3_pic_num > 9) {
 		timer_b3 = setTimeout("roller_box3_10()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

function roller_box3_10() { 
	draw_pic3_10();
	write_sub3_10();
	if (box3_pic_num > 10) {
 		timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
	else {
	 	timer_b3 = setTimeout("roller_box3_1()",tempo_b3); }
}

<!--  BOX 4 - SCRIPTS  -->

var box4_pic1_foto1 = new Image(); box4_pic1_foto1.src=dir_foto+box4_pic1_foto_n1;
var box4_pic2_foto1 = new Image(); box4_pic2_foto1.src=dir_foto+box4_pic2_foto_n1;

var box4_pic1_foto2 = new Image(); box4_pic1_foto2.src=dir_foto+box4_pic1_foto_n2;
var box4_pic2_foto2 = new Image(); box4_pic2_foto2.src=dir_foto+box4_pic2_foto_n2;

var box4_pic1_foto3 = new Image(); box4_pic1_foto3.src=dir_foto+box4_pic1_foto_n3;
var box4_pic2_foto3 = new Image(); box4_pic2_foto3.src=dir_foto+box4_pic2_foto_n3;

var box4_pic1_foto4 = new Image(); box4_pic1_foto4.src=dir_foto+box4_pic1_foto_n4;
var box4_pic2_foto4 = new Image(); box4_pic2_foto4.src=dir_foto+box4_pic2_foto_n4;

var box4_pic1_foto5 = new Image(); box4_pic1_foto5.src=dir_foto+box4_pic1_foto_n5;
var box4_pic2_foto5 = new Image(); box4_pic2_foto5.src=dir_foto+box4_pic2_foto_n5;

var box4_pic1_foto6 = new Image(); box4_pic1_foto6.src=dir_foto+box4_pic1_foto_n6;
var box4_pic2_foto6 = new Image(); box4_pic2_foto6.src=dir_foto+box4_pic2_foto_n6;

var box4_pic1_foto7 = new Image(); box4_pic1_foto7.src=dir_foto+box4_pic1_foto_n7;
var box4_pic2_foto7 = new Image(); box4_pic2_foto7.src=dir_foto+box4_pic2_foto_n7;

var box4_pic1_foto8 = new Image(); box4_pic1_foto8.src=dir_foto+box4_pic1_foto_n8;
var box4_pic2_foto8 = new Image(); box4_pic2_foto8.src=dir_foto+box4_pic2_foto_n8;

var box4_pic1_foto9 = new Image(); box4_pic1_foto9.src=dir_foto+box4_pic1_foto_n9;
var box4_pic2_foto9 = new Image(); box4_pic2_foto9.src=dir_foto+box4_pic2_foto_n9;

var box4_pic1_foto10 = new Image(); box4_pic1_foto10.src=dir_foto+box4_pic1_foto_n10;
var box4_pic2_foto10 = new Image(); box4_pic2_foto10.src=dir_foto+box4_pic2_foto_n10;

var roll_b4_pics;
var roll_b4_sub;

function draw_pic4_1() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto1.src;
	obj_box4_pic2.src=box4_pic2_foto1.src;
	roll_b4_pics = 1;
}

function draw_pic4_2() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto2.src;
	obj_box4_pic2.src=box4_pic2_foto2.src;
	roll_b4_pics = 2;
}

function draw_pic4_3() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto3.src;
	obj_box4_pic2.src=box4_pic2_foto3.src;
	roll_b4_pics = 3;
}

function draw_pic4_4() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto4.src;
	obj_box4_pic2.src=box4_pic2_foto4.src;
	roll_b4_pics = 4;
}

function draw_pic4_5() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto5.src;
	obj_box4_pic2.src=box4_pic2_foto5.src;
	roll_b4_pics = 5;
}

function draw_pic4_6() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto6.src;
	obj_box4_pic2.src=box4_pic2_foto6.src;
	roll_b4_pics = 6;
}

function draw_pic4_7() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto7.src;
	obj_box4_pic2.src=box4_pic2_foto7.src;
	roll_b4_pics = 7;
}

function draw_pic4_8() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto8.src;
	obj_box4_pic2.src=box4_pic2_foto8.src;
	roll_b4_pics = 8;
}

function draw_pic4_9() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto9.src;
	obj_box4_pic2.src=box4_pic2_foto9.src;
	roll_b4_pics = 9;
}

function draw_pic4_10() {
	var obj_box4_pic1 = document.all ? document.all('box4_pic1') : document.getElementById('box4_pic1');
	var obj_box4_pic2 = document.all ? document.all('box4_pic2') : document.getElementById('box4_pic2');
	obj_box4_pic1.src=box4_pic1_foto10.src;
	obj_box4_pic2.src=box4_pic2_foto10.src;
	roll_b4_pics = 10;
}

function write_sub4_1() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s1+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s1+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s1+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name1; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name1; }		
	roll_b4_sub = 1;
}

function write_sub4_2() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s2+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s2+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s2+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name2; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name2; }	
	roll_b4_sub = 2;

}

function write_sub4_3() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s3+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s3+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s3+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name3 ; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name3; }	
	roll_b4_sub = 2;

}

function write_sub4_4() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s4+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s4+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s4+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name4; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name4; }	
	roll_b4_sub = 2;

}

function write_sub4_5() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s5+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s5+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s5+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name5; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name5; }	
	roll_b4_sub = 2;

}

function write_sub4_6() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s6+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s6+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s6+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name6; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name6; }	
	roll_b4_sub = 2;

}

function write_sub4_7() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s7+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s7+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s7+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name7; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name7; }	
	roll_b4_sub = 2;

}

function write_sub4_8() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s8+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s8+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s8+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name8; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name8; }	
	roll_b4_sub = 2;

}

function write_sub4_9() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s9+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s9+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s9+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name9; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name9; }	
	roll_b4_sub = 2;

}

function write_sub4_10() {
	if (document.all) {
		document.all('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub1').innerHTML='<div>PVR '+box4_pic1_foto_s10+' &euro; </div>' ; }
		
	if (document.all) {
		document.all('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s10+' &euro; </div>' ; }
	else if (document.getElementById) {
		document.getElementById('box4_sub2').innerHTML='<div>'+box4_pic2_foto_s10+' &euro; </div>' ; }		

	if (document.all) {
		document.all('box4_item').innerHTML=box4_item_name10; }
	else if (document.getElementById) {
		document.getElementById('box4_item').innerHTML=box4_item_name10; }	
	roll_b4_sub = 2;

}


var time_b4;
var timer_b4;

function roller_4() {
	if (box4_pic_num > 1) {
		time_b4 = setTimeout("roller_box4_1()",0001); }
} 

function roller_box4_1() { 
	if (roll_b4_pics > 1) { draw_pic4_1(); }
	if (roll_b4_sub >1) { 	write_sub4_1(); }
 	timer_b4 = setTimeout("roller_box4_2()",tempo_b4); 
}

function roller_box4_2() { 
	draw_pic4_2();
	write_sub4_2();
	if (box4_pic_num > 2) {
 		timer_b4 = setTimeout("roller_box4_3()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_3() { 
	draw_pic4_3();
	write_sub4_3();
	if (box4_pic_num > 3) {
 		timer_b4 = setTimeout("roller_box4_4()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_4() { 
	draw_pic4_4();
	write_sub4_4();
	if (box4_pic_num > 4) {
 		timer_b4 = setTimeout("roller_box4_5()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_5() { 
	draw_pic4_5();
	write_sub4_5();
	if (box4_pic_num > 5) {
 		timer_b4 = setTimeout("roller_box4_6()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_6() { 
	draw_pic4_6();
	write_sub4_6();
	if (box4_pic_num > 6) {
 		timer_b4 = setTimeout("roller_box4_7()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_7() { 
	draw_pic4_7();
	write_sub4_7();
	if (box4_pic_num > 7) {
 		timer_b4 = setTimeout("roller_box4_8()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_8() { 
	draw_pic4_8();
	write_sub4_8();
	if (box4_pic_num > 8) {
 		timer_b4 = setTimeout("roller_box4_9()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_9() { 
	draw_pic4_9();
	write_sub4_9();
	if (box4_pic_num > 9) {
 		timer_b4 = setTimeout("roller_box4_10()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

function roller_box4_10() { 
	draw_pic4_10();
	write_sub4_10();
	if (box4_pic_num > 10) {
 		timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
	else {
	 	timer_b4 = setTimeout("roller_box4_1()",tempo_b4); }
}

<!--  MENU BUTTONS  -->
var menuf1_of = new Image(); menuf1_of.src="images/menuf_of_1.jpg"; 
var menuf2_of = new Image(); menuf2_of.src="images/menuf_of_2.jpg"; 
var menuf3_of = new Image(); menuf3_of.src="images/menuf_of_3.jpg"; 
var menuf4_of = new Image(); menuf4_of.src="images/menuf_of_4.jpg"; 
var menuf5_of = new Image(); menuf5_of.src="images/menuf_of_5.jpg"; 
var menuf6_of = new Image(); menuf6_of.src="images/menuf_of_6.jpg"; 

var menuf1_on = new Image(); menuf1_on.src="images/menuf_on_1.jpg"; 
var menuf2_on = new Image(); menuf2_on.src="images/menuf_on_2.jpg"; 
var menuf3_on = new Image(); menuf3_on.src="images/menuf_on_3.jpg"; 
var menuf4_on = new Image(); menuf4_on.src="images/menuf_on_4.jpg"; 
var menuf5_on = new Image(); menuf5_on.src="images/menuf_on_5.jpg"; 
var menuf6_on = new Image(); menuf6_on.src="images/menuf_on_6.jpg"; 

function menu_f1_off() { 
var obj_on_menuf1 = document.all ? document.all('menuf1') : document.getElementById('menuf1');
obj_on_menuf1.src = menuf1_of.src; 
}

function menu_f2_off() { 
var obj_on_menuf2 = document.all ? document.all('menuf2') : document.getElementById('menuf2');
obj_on_menuf2.src = menuf1_of.src; 
}

function menu_f3_off() { 
var obj_on_menuf3 = document.all ? document.all('menuf3') : document.getElementById('menuf3');
obj_on_menuf3.src = menuf3_of.src; 
}

function menu_f4_off() { 
var obj_on_menuf4 = document.all ? document.all('menuf4') : document.getElementById('menuf4');
obj_on_menuf4.src = menuf4_of.src; 
}

function menu_f5_off() { 
var obj_on_menuf5 = document.all ? document.all('menuf5') : document.getElementById('menuf5');
obj_on_menuf5.src = menuf5_of.src; 
}

function menu_f6_off() { 
var obj_on_menuf6 = document.all ? document.all('menuf6') : document.getElementById('menuf6');
obj_on_menuf6.src = menuf6_of.src; 
}

function menu_f1_on() { 
var obj_off_menuf1 = document.all ? document.all('menuf1') : document.getElementById('menuf1');
obj_off_menuf1.src = menuf1_on.src; 
}

function menu_f2_on() { 
var obj_off_menuf2 = document.all ? document.all('menuf2') : document.getElementById('menuf2');
obj_off_menuf2.src = menuf1_on.src; 
}

function menu_f3_on() { 
var obj_off_menuf3 = document.all ? document.all('menuf3') : document.getElementById('menuf3');
obj_off_menuf3.src = menuf3_on.src; 
}

function menu_f4_on() { 
var obj_off_menuf4 = document.all ? document.all('menuf4') : document.getElementById('menuf4');
obj_off_menuf4.src = menuf4_on.src; 
}

function menu_f5_on() { 
var obj_off_menuf5 = document.all ? document.all('menuf5') : document.getElementById('menuf5');
obj_off_menuf5.src = menuf5_on.src; 
}

function menu_f6_on() { 
var obj_off_menuf6 = document.all ? document.all('menuf6') : document.getElementById('menuf6');
obj_off_menuf6.src = menuf6_on.src; 
}

function write_menu_off () {
menu_f1_off();
menu_f2_off();
menu_f3_off();
menu_f4_off();
menu_f5_off();
menu_f6_off();
}

var box1_boton_off = new Image(); box1_boton_off.src="images/button_box1_off.jpg"; 
var box2_boton_off = new Image(); box2_boton_off.src="images/button_box2_off.jpg"; 
var box3_boton_off = new Image(); box3_boton_off.src="images/button_box3_off.jpg"; 
var box4_boton_off = new Image(); box4_boton_off.src="images/button_box4_off.jpg"; 

var box1_boton_on = new Image(); box1_boton_on.src="images/button_box1_on.jpg"; 
var box2_boton_on = new Image(); box2_boton_on.src="images/button_box2_on.jpg"; 
var box3_boton_on = new Image(); box3_boton_on.src="images/button_box3_on.jpg"; 
var box4_boton_on = new Image(); box4_boton_on.src="images/button_box4_on.jpg"; 

function box1_button_off() { 
var obj_button_box1 = document.all ? document.all('box1_sub3') : document.getElementById('box1_sub3');
obj_button_box1.src = box1_boton_off.src;
}

function box2_button_off() { 
var obj_button_box2 = document.all ? document.all('box2_sub3') : document.getElementById('box2_sub3');
obj_button_box2.src = box2_boton_off.src;
}

function box3_button_off() { 
var obj_button_box3 = document.all ? document.all('box3_sub3') : document.getElementById('box3_sub3');
obj_button_box3.src = box3_boton_off.src;
}

function box4_button_off() { 
var obj_button_box4 = document.all ? document.all('box4_sub3') : document.getElementById('box4_sub3');
obj_button_box4.src = box4_boton_off.src;
}

function box1_button_on() { 
var obj_button_box1 = document.all ? document.all('box1_sub3') : document.getElementById('box1_sub3');
obj_button_box1.src = box1_boton_on.src;
}

function box2_button_on() { 
var obj_button_box2 = document.all ? document.all('box2_sub3') : document.getElementById('box2_sub3');
obj_button_box2.src = box2_boton_on.src;
}

function box3_button_on() { 
var obj_button_box3 = document.all ? document.all('box3_sub3') : document.getElementById('box3_sub3');
obj_button_box3.src = box3_boton_on.src;
}

function box4_button_on() { 
var obj_button_box4 = document.all ? document.all('box4_sub3') : document.getElementById('box4_sub3');
obj_button_box4.src = box4_boton_on.src;
}

function write_box_buttons_off () {
box1_button_off(); 
box2_button_off(); 
box3_button_off(); 
box4_button_off(); 
}


