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=127314936201.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/127314936201.jpg'); pic[1] = new banner('resize-img.php?path=images/slide/&foto=127314937102.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/127314937102.jpg'); pic[2] = new banner('resize-img.php?path=images/slide/&foto=127314938103.jpg&imgWidth=264&imgHeight=300&crop=true',300,'images/slide/127314938103.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