// JavaScript Document// resize fix for ns4var origWidth, origHeight;if (document.layers) {	origWidth = window.innerWidth; origHeight = window.innerHeight;	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }}var outerLyr, wipeLyr1;function initDynLyrs() {	// args: id,left,top,width,height	outerLyr = new dynObj('slidefoto');		// eliminate incapable browsers	if (!outerLyr || !document.layers && typeof outerLyr.el.innerHTML == "undefined") return;		// background color and border		wipeLyr1 = new dynObj('fotocontenitore');	doWipes();}window.onload=initDynLyrs;// put images to preload in this arrayvar imgAr = new Array("sfondo1.jpg","sfondo2.jpg","sfondo3.jpg");// preload (Note path to images sub-directory)if (document.images) {	var imgList = new Array();	for (var i=0; i<imgAr.length; i++) {  	imgList[i] = new Image(); 		imgList[i].src = "slide/" + imgAr[i];	  }}// put your items here// content, time allotted for wipe invar wipe_array=new Array(	'<img src="slide/sfondo1.jpg" width="675" height="239" alt="" border="0"></a>',8500,	'<img src="slide/sfondo2.jpg" width="675" height="239" alt="" border="0"></a>',8500,	'<img src="slide/sfondo3.jpg" width="675" height="239" alt="" border="0"></a>',8500);var wipe_count=0;	// to keep trackfunction doWipes() {	if (wipe_count<wipe_array.length) {	// in table so width/height of content can be obtained		var cntnt = '<table id="w1" border="0" cellpadding="0" cellspacing="0"><tr><td class="wipe">'+  wipe_array[wipe_count] +'</td></tr></table>';				wipePrep(wipeLyr1,cntnt,'w1');		wipeLyr1.centerIn(outerLyr);				// args: which wipe, delay, wipeTime, what next		wipeLyr1.wipe("in corner",1200,wipe_array[wipe_count+1],"wipeOuts()");  } else {		wipe_count=0;		doWipes();	}}// prepare for wipe in (called from doWipes fn)function wipePrep(obj,cntnt,id) {	obj.hide();	// restore, for ns4, or new content is visible...	obj.clipTo(0,obj.width,obj.height,0);		obj.writeLyr(cntnt);	obj.width=getWidth(obj.el,id);	obj.height=getHeight(obj.el,id);}function wipeOuts() {	// controls speed of wipe out	// divide time allotted for item in wipe_array by this number	var dv = 3;	// args: which wipe, delay, wipeTime, what next	wipeLyr1.wipe("out middle", 2000, wipe_array[wipe_count+1]/dv,"doWipes()");	wipe_count+=2;}//-->