﻿
    var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
    // Handle all the FSCommand messages in a Flash movie.
    function ColleccioPermanent_DoFSCommand(command, args) {
        var ColleccioPermanentObj = isInternetExplorer ? document.all.ColleccioPermanent : document.ColleccioPermanent;
        //
        // Place your code here.
        //
        eval(command);
    }
    function Edifici_DoFSCommand(command, args) {
        var EdificiObj = isInternetExplorer ? document.all.Edifici : document.Edifici;
        //
        // Place your code here.
        //
        eval(command);
    }
    // Hook for Internet Explorer.
    if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
        document.write('<script language=\"VBScript\"\>\n');
        document.write('On Error Resume Next\n');
        document.write('Sub ColleccioPermanent_FSCommand(ByVal command, ByVal args)\n');
        document.write('	Call ColleccioPermanent_DoFSCommand(command, args)\n');
        document.write('End Sub\n');
        document.write('</script\>\n');
    }
    if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
        document.write('<script language=\"VBScript\"\>\n');
        document.write('On Error Resume Next\n');
        document.write('Sub Edifici_FSCommand(ByVal command, ByVal args)\n');
        document.write('	Call Edifici_DoFSCommand(command, args)\n');
        document.write('End Sub\n');
        document.write('</script\>\n');
    }
                

    function ocultarEdifici(){
        window.close();
    }