var domain = document.domain; var isMSIE = /*@cc_on!@*/false; var setupHighslide = function() { if(typeof MooTools !== 'undefined') { lang_suffix = '_en'; if(typeof(Request) == "function" && typeof(Request.prototype) == "object"){ var myRequest = new Request({ url: '/get_lang', method: 'post', onSuccess: function(responseText, responseXML) { lang_suffix = '_'+responseText; }, onStop: function(){return -1;} }).send(); } hs.outlineType = null; hs.align = 'center'; hs.showCredits = false; hs.enableKeyListener = false; hs.graphicsDir = '/common/js/highslide/graphics/'; hs.preserveContent = false; hs.dimmingOpacity = 0.8; hs.dimmingDuration = 0; hs.numberOfImagesToPreload = 0; hs.onDimmerClick = function() { return false; } hs.objectType = 'iframe'; hs.wrapperClassName = 'no-footer'; hs.objectLoadTime = 'after'; hs.marginTop = 5; hs.expandDuration = 0; hs.restoreDuration = 0; hs.transitionDuration = 0; hs.transitions = [null]; } else { window.setTimeout(setupHighslide, 100); } } setupHighslide(); function openModal() { //$(document.body).setStyle('overflow', 'hidden'); aggiunto per bloccare lo scroll della parent quando si finisce di scrollare la modale if ($$('div.flvPlayerContainer')) $$('div.flvPlayerContainer').setStyle('visibility', 'hidden'); if ($('flickr_box')) $('flickr_box').setStyle('visibility', 'hidden'); if ($$('.red-box-content iframe')) $$('.red-box-content iframe').setStyle('visibility', 'hidden'); if (typeof window.parent.iOSMoveModal == "function") window.parent.iOSMoveModal(); } function closeModal() { //$(document.body).setStyle('overflow', 'auto'); hs.close(); if ($$('div.flvPlayerContainer')) $$('div.flvPlayerContainer').setStyle('visibility', 'visible'); if ($('flickr_box')) $('flickr_box').setStyle('visibility', 'visible'); if ($$('.red-box-content iframe')) $$('.red-box-content iframe').setStyle('visibility', 'visible'); if ($$('.loading')) $$('.loading').removeClass('loading'); if (Browser.Platform.ios) { window.parent.resize_iframe(); } } function resizeModal() { openModal(); hs.getExpander().reflow(); } function resizeModalPop() { openModal(); } // function toggleModalPadding(padding){ // $$('.highslide-html-content').setStyle('padding','0px 0px '+padding+'px 0px'); // $$('.highslide-html-content .highslide-body iframe').setStyle('height','100%'); // //alert($$('.highslide-html-content .highslide-body iframe').get('style')); // }