var pic = new Array(); function banner(name, width, link){ this.name = name; this.width = width; this.link = link; } pic[0] = new banner('resize-img.php?path=images/slide/&foto=130979382101.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/130979382101.jpg'); pic[1] = new banner('resize-img.php?path=images/slide/&foto=130979382309.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/130979382309.jpg'); pic[2] = new banner('resize-img.php?path=images/slide/&foto=1309793825010.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/1309793825010.jpg'); pic[3] = new banner('resize-img.php?path=images/slide/&foto=130979382904.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/130979382904.jpg'); pic[4] = new banner('resize-img.php?path=images/slide/&foto=1309793831013.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/1309793831013.jpg'); var speed = 20; var kk = pic.length; var ii; var hhh; var nnn; var myInterval; var myPause; var mode = 0 var imgArray = new Array(kk); var myLeft = new Array(kk); for (ii=0;ii0)?arrTemp[1]:""; var NS = (navigator.appName=="Netscape")?true:false; var msg; function FitPic() { iWidth = (NS)?msg.innerWidth:msg.document.body.clientWidth; iHeight = (NS)?msg.innerHeight:msg.document.body.clientHeight; iWidth = msg.document.images[0].width - iWidth; iHeight = msg.document.images[0].height - iHeight; msg.resizeBy(iWidth, iHeight); msg.focus(); }; function popup(imm) { if (typeof(msg)!='undefined') msg.close(); msg=open("","schermo","scrollbars=no,status=no,toolbar=no,directories=no,menubar=no,width=400,height=400,resizable=no"); msg.document.write("<\/TITLE><\/HEAD><body style='margin: 0px'>"); msg.document.write("<img src='"+imm+"' border='0' alt='' onload='opener.FitPic();'><\/body><\/html>"); } // JavaScript Document