function verifyCompatibleBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.ie5=this.ver.indexOf("MSIE 5")>-1&&this.dom?1:0;this.ie4=document.all&&!this.dom?1:0;this.ns5=this.dom&&parseInt(this.ver)>=5?1:0;this.ns4=document.layers&&!this.dom?1:0;this.bw=this.ie5||this.ie4||this.ns4||this.ns5;return this}bw=new verifyCompatibleBrowser;var speed=50,loop,timer;
function ConstructObject(a,b){b=!b?"":"document."+b+".";this.el=bw.dom?document.getElementById(a):bw.ie4?document.all[a]:bw.ns4?eval(b+"document."+a):0;this.css=bw.dom?document.getElementById(a).style:bw.ie4?document.all[a].style:bw.ns4?eval(b+"document."+a):0;this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight;this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight;this.up=MoveAreaUp;this.down=MoveAreaDown;this.MoveArea=MoveArea;this.obj=a+"Object";eval(this.obj+"=this");
return this}function MoveArea(a,b){this.x=a;this.y=b;this.css.left=this.x;this.css.top=this.y}function MoveAreaDown(a){if(this.y>-this.scrollHeight+objContainer.clipHeight){this.MoveArea(0,this.y-a);loop&&setTimeout(this.obj+".down("+a+")",speed)}}function MoveAreaUp(a){if(this.y<0){this.MoveArea(0,this.y-a);loop&&setTimeout(this.obj+".up("+a+")",speed)}}function PerformScroll(a){if(initialised){loop=true;a>0?objScroller.down(a):objScroller.up(a)}}
function CeaseScroll(){loop=false;timer&&clearTimeout(timer)}var initialised;function InitialiseScrollableArea(){objContainer=new ConstructObject("divContainer");objScroller=new ConstructObject("divContent","divContainer");objScroller.MoveArea(0,0);objContainer.css.visibility="visible";initialised=true}function newImage(a){if(document.images){rslt=new Image;rslt.src=a;return rslt}}
function changeImages(){if(document.images&&preloadFlag==true)for(var a=0;a<changeImages.arguments.length;a+=2)document[changeImages.arguments[a]].src=changeImages.arguments[a+1]}var preloadFlag=false;function preloadImages(){if(document.images){menu_prodotti_su_02_over=newImage("immagini_layout/menu_prodotti_su_02-over.jpg");menu_prodotti_giu_02_over=newImage("immagini_layout/menu_prodotti_giu_02-over.jpg");preloadFlag=true}};