var flashvars = {}; try { if (customParams) { flashvars = customParams; flashvars.code = code; } else { flashvars.code = code; } } catch(e) { flashvars.code = code; } var swfVersionStr = "10.2.0"; // To use express install, set to playerProductInstall.swf, otherwise the empty string. var xiSwfUrlStr = "http://webgis.provincia.fc.it/mokaFlex/client/playerProductInstall.swf"; var params = {}; params.quality = "high"; params.bgcolor = "#ffffff"; params.allowscriptaccess = "always"; params.allowfullscreen = "true"; var attributes = {}; //attributes.id = "MokaFlexClient"; attributes.id = "mokaFlexClient"; //attributes.name = "MokaFlexClient"; attributes.name = "mokaFlexClient"; attributes.align = "middle"; swfobject.embedSWF( "http://webgis.provincia.fc.it/mokaFlex/client/MokaFlexClient.swf", "flashContent", "100%", "100%", swfVersionStr, xiSwfUrlStr, flashvars, params, attributes); // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. swfobject.createCSS("#flashContent", "display:block;text-align:left;"); // Semenda var federaWindow; function openFederaWindow(url) { federaWindow = window.open(url); } function closeFederaWindow() { if (federaWindow) federaWindow.close(); } function writeDownloadFlash() { var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); document.write("Get Adobe Flash player" ); }