window.addEvent('domready', function() { var cont1 = new Fx.Slide('contab1'); var cont2 = new Fx.Slide('contab2').hide(); var cont3 = new Fx.Slide('contab3').hide(); var cont4 = new Fx.Slide('contab4').hide(); var id_pagina=50; var langid=0 ; var rand = Math.floor(10000 * Math.random()); //var link_php_req='fileadmin/files/content_flex.php?L='+langid+'&paginaid='+id_pagina+'&rand='+rand; var link_php_req2='fileadmin/files/reportshome.php?L='+langid+'&rand='+rand; //var log = $('testohili').empty().addClass('ajax-loading-box'); var log2 = $('contab4').empty().addClass('ajax-loading-box'); //Richiesta benvenuto /* var req = new Request({ url: link_php_req, method: 'get', // onRequest: function() { alert('Request made. Please wait...'); }, onComplete: function(response) { log.removeClass('ajax-loading-box'); $('testohili').set('html',response); } }).send(); */ //Richiesta reports var req2 = new Request({ url: link_php_req2, method: 'get', // onRequest: function() { alert('Request made. Please wait...'); }, onComplete: function(response) { log2.removeClass('ajax-loading-box'); $('contab4').set('html',response); // AUTOLOAD CODE BLOCK Mediabox.scanPage = function() { var links = $$("a").filter(function(el) { return el.rel && el.rel.test(/^lightbox/i); }); $$(links).mediabox({/* Put custom options here */}, null, function(el) { var rel0 = this.rel.replace(/[[]|]/gi," "); var relsize = rel0.split(" "); return (this == el) || ((this.rel.length > 8) && el.rel.match(relsize[1])); }); }; window.addEvent("domready", Mediabox.scanPage); } }).send(); var nS4 = new noobSlide({ box: $('box4'), items: $$('#box4 div'), size: 240, addButtons: {previous: $('prev4'), next: $('next4') }, onWalk: function(currentItem,currentHandle){} }); var nS5 = new noobSlide({ box: $('box5'), items: $$('#box5 div'), size: 110, autoPlay: true, onWalk: function(currentItem,currentHandle){} }); /* var nS6 = new noobSlide({ box: $('box6'), items: $$('#box6 dl'), size: 110, autoPlay: true, onWalk: function(currentItem,currentHandle){} }); */ var nS7 = new noobSlide({ box: $('box7'), items: $$('#box7 div'), size: 186, addButtons: {previous: $('prev7'), next: $('next7') }, onWalk: function(currentItem,currentHandle){} }); var nS8 = new noobSlide({ box: $('box8'), items: $$('#box8 div'), size: 186, addButtons: {previous: $('prev8'), next: $('next8') }, onWalk: function(currentItem,currentHandle){} }); $('tab2').addEvent('click', function(e) { cont1.hide(); cont3.hide(); cont4.hide(); $('tab1').set('class', ''); $('tab3').set('class', ''); $('tab4').set('class', ''); cont2.show(); this.set('class', 'selectedtab'); }); $('tab1').addEvent('click', function(e) { cont2.hide(); cont3.hide(); cont4.hide(); $('tab2').set('class', ''); $('tab3').set('class', ''); $('tab4').set('class', ''); //req.send(); cont1.show(); this.set('class', 'selectedtab'); }); $('tab3').addEvent('click', function(e) { cont1.hide(); cont2.hide(); cont4.hide(); $('tab1').set('class', ''); $('tab2').set('class', ''); $('tab4').set('class', ''); cont3.show(); this.set('class', 'selectedtab'); }); $('tab4').addEvent('click', function(e) { cont1.hide(); cont2.hide(); cont3.hide(); $('tab1').set('class', ''); $('tab2').set('class', ''); $('tab3').set('class', ''); cont4.show(); this.set('class', 'selectedtab'); }); $('boxhome').setStyle('display','block'); cont1.show(); });