window.addEvent("domready", function(){
			var maxLengthMSK = 10;
			var counterMSK   = 1;
			var wallMSK = new Wall("wall", {
							"draggable":true,
							"handle":"overlay",
							"slideshow":true,
							"autoposition":true,
							"preload":true,
							"inertia":true,
							"width":600,
							"height":851,
							"startx":0,
							"starty":0,
							"rangex":[0,10],
							"rangey":[0,10],
							callOnUpdate: function(items){
								items.each(function(e, i){
									var a = new Element("img[src=images/"+counterMSK+".jpg]");
										a.inject(e.node);
									counterMSK++;
									// Azzera counter
									if( counterMSK > maxLengthMSK ) counterMSK = 1;
								})
							}
						});

			// Vertical
			        var wall2 = new Wall("wall2", 
			                            {
			                                "draggable":true,
			                                "autoposition":true,
			                                "speed":2000,
											"slideshow":true,
			                                "inertia":true,
											"preload":true,
			                                "transition":Fx.Transitions.Expo.easeInOut,
			                                "width":800,
			                                "height":566,
			                                "rangex":[0,1],
			                                "rangey":[0,5]
			                            });

			                            // CallBack
			                            callBack = function(items){
			                                items.each(function(e, i){
			                                        e.node.setStyle("background", "url('eventos/"+((e.x)+1)+".jpg') no-repeat center center");
			                                })
			                            }

			            // Definisce CallBack
			            wall2.setCallOnUpdate(callBack)

			            // Inizializza il Wall
			            wall2.initWall();

			            // List
			            wall2.getListLinksPoints("coda-list2");
			
	
			
            // Inizializza il Wall
            wallMSK.initWall();


		    
		    
		    var maxLengthMSK2 = 6;
			var counterMSK2   = 1;
			var wallMSK2 = new Wall("wall3", {
							 "draggable":true,
							 "autoposition":true,
							 "slideshow":true,
							 "speed":1200,
							 "showDuration":4400,
							 "inertia":true,
							 "preload":true,
							 "transition":Fx.Transitions.Expo.easeInOut,
							 "width":480,
							 "height":320,
							 "rangex":[0,10],
							 "rangey":[0,1],
							callOnUpdate: function(items){
								items.each(function(e, i){
									var a = new Element("img[src=images/acerca/"+counterMSK2+".jpg]");
										a.inject(e.node);
									counterMSK2++;
									// Azzera counter
									if( counterMSK2 > maxLengthMSK2 ) counterMSK2 = 1;
								})
							}
						});
						
					
	 wallMSK2.initWall();
		
		// List
			    wallMSK2.getListLinksPoints("coda-list3");
		
});


