/*jslint */
/*global AdobeEdge: false, window: false, document: false, console:false, alert: false */
(function (compId) {

    "use strict";
    var im='images/',
        aud='media/',
        vid='media/',
        js='js/',
        fonts = {
            'Helvetica': '',
            'cabin, \'Trebuchet MS\', \'Myriad Pro\', \'Gill Sans MT\', Helvetica, sans-serif': '<script src=\"http://use.edgefonts.net/cabin:n4,i4,n7,i7,n5,i5,n6,i6:all.js\"></script>'        },
        opts = {
            'gAudioPreloadPreference': 'true',
            'gVideoPreloadPreference': 'auto'
        },
        resources = [
        ],
        scripts = [
            js+"jquery-2.0.3.min.js",
            js+"only_textarea.js"
        ],
        symbols = {
            "stage": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "both",
                centerStage: "both",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            id: 'L_G01_U04_L05_05_01_bg',
                            type: 'image',
                            rect: ['49px', '81px', '1265px', '650px', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"L_G01_U04_L05_05_01_bg.jpg",'0px','0px']
                        },
                        {
                            id: 'error',
                            type: 'audio',
                            tag: 'audio',
                            rect: ['487', '300', '320px', '45px', 'auto', 'auto'],
                            source: [aud+"error.mp3",aud+"error.ogg"],
                            preload: 'true'
                        },
                        {
                            id: 'success',
                            type: 'audio',
                            tag: 'audio',
                            rect: ['487', '300', '320px', '45px', 'auto', 'auto'],
                            source: [aud+"success.mp3",aud+"success.ogg"],
                            preload: 'true'
                        },
                        {
                            id: 'bt_ayuda',
                            symbolName: 'bt_ayuda',
                            type: 'rect',
                            rect: ['649', '695', '70', '70', 'auto', 'auto'],
                            overflow: 'hidden'
                        },
                        {
                            id: 'hotspot_ayuda',
                            type: 'rect',
                            rect: ['648', '695', '70', '70', 'auto', 'auto'],
                            cursor: 'pointer',
                            fill: ["rgba(192,192,192,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'TextArea_1',
                            type: 'rect',
                            rect: ['219px', '300px', '924px', '325px', 'auto', 'auto'],
                            borderRadius: ["0px 0px", "0px 0px", "0px 0px", "0px 0px"],
                            fill: ["rgba(65,233,223,0.00)"],
                            stroke: [1,"rgba(255,121,121,1.00)","none"]
                        },
                        {
                            id: 'TextArea_2',
                            display: 'none',
                            type: 'rect',
                            rect: ['1557px', '372px', '339', '108', 'auto', 'auto'],
                            borderRadius: ["0px 0px", "0px 0px", "0px 0px", "0px 0px"],
                            fill: ["rgba(65,233,223,0.22)"],
                            stroke: [1,"rgba(255,121,121,1.00)","none"]
                        },
                        {
                            id: 'resp_incorrecta',
                            display: 'none',
                            type: 'image',
                            rect: ['418', '354', '530', '160', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"msg_incorrecto.png",'0px','0px']
                        },
                        {
                            id: 'resp_correcta',
                            display: 'none',
                            type: 'image',
                            rect: ['418', '354', '530', '160', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"msg_correcto.png",'0px','0px']
                        },
                        {
                            id: 'help',
                            display: 'none',
                            type: 'image',
                            rect: ['416', '331', '531px', '249px', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"help_textarea.png",'0px','0px']
                        },
                        {
                            id: 'flecha',
                            display: 'none',
                            type: 'image',
                            rect: ['210', '127', '12px', '14px', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"flecha.png",'0px','0px']
                        },
                        {
                            id: 'descripcion',
                            type: 'text',
                            rect: ['100', '160', '1036px', '78px', 'auto', 'auto'],
                            text: "3.  ¿Con qué palabras describirías el estado de ánimo de Hansel por lo que le va a hacer la bruja?<br>",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [32, "px"], "rgba(26,26,26,1)", "bold", "none", "normal", "break-word", ""]
                        },
                        {
                            id: 'instruccion',
                            display: 'none',
                            type: 'text',
                            rect: ['100', '196', '1150', 'auto', 'auto', 'auto'],
                            text: "Lorem ipsum dolor sit amet, consectetur",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [26, "px"], "rgba(102,102,102,1)", "400", "none", "normal", "break-word", ""]
                        },
                        {
                            id: 'momento',
                            display: 'none',
                            type: 'text',
                            rect: ['100', '120', '102px', '27px', 'auto', 'auto'],
                            text: "Tarea",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [22, "px"], "rgba(197,115,34,1)", "bold", "none", "normal", "break-word", ""]
                        },
                        {
                            id: 'num_actividad',
                            display: 'none',
                            type: 'text',
                            rect: ['240', '120', '140', 'auto', 'auto', 'auto'],
                            text: "Actividad 1",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [22, "px"], "rgba(229,145,34,1)", "bold", "none", "normal", "break-word", ""]
                        }
                    ],
                    style: {
                        '${Stage}': {
                            isStage: true,
                            rect: ['null', 'null', '1366', '768', 'auto', 'auto'],
                            sizeRange: ['320px','1366px','undefined','undefined'],
                            overflow: 'hidden',
                            fill: ["rgba(255,255,255,0.00)"]
                        }
                    }
                },
                timeline: {
                    duration: 0,
                    autoPlay: true,
                    data: [
                        [
                            "eid888",
                            "display",
                            0,
                            0,
                            "linear",
                            "${ok37}",
                            'none',
                            'none'
                        ],
                        [
                            "eid970",
                            "display",
                            0,
                            0,
                            "linear",
                            "${instruccion}",
                            'none',
                            'none'
                        ],
                        [
                            "eid967",
                            "display",
                            0,
                            0,
                            "linear",
                            "${help}",
                            'none',
                            'none'
                        ],
                        [
                            "eid965",
                            "display",
                            0,
                            0,
                            "linear",
                            "${resp_correcta}",
                            'none',
                            'none'
                        ],
                        [
                            "eid968",
                            "display",
                            0,
                            0,
                            "linear",
                            "${num_actividad}",
                            'none',
                            'none'
                        ],
                        [
                            "eid971",
                            "display",
                            0,
                            0,
                            "linear",
                            "${TextArea_2}",
                            'none',
                            'none'
                        ],
                        [
                            "eid972",
                            "display",
                            0,
                            0,
                            "linear",
                            "${momento}",
                            'none',
                            'none'
                        ],
                        [
                            "eid969",
                            "display",
                            0,
                            0,
                            "linear",
                            "${flecha}",
                            'none',
                            'none'
                        ],
                        [
                            "eid497",
                            "background-image",
                            0,
                            0,
                            "linear",
                            "${box_01}",
                            [270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]],
                            [270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]]
                        ],
                        [
                            "eid966",
                            "display",
                            0,
                            0,
                            "linear",
                            "${resp_incorrecta}",
                            'none',
                            'none'
                        ]
                    ]
                }
            },
            "bt_validar": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: true,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'botones',
                            rect: ['0px', '0px', '290px', '140px', 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/botones.png', '0px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            overflow: 'hidden',
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 250,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 250
                    },
                    data: [
                        [
                            "eid1275",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${botones}",
                            [0,0],
                            [0,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1274",
                            "background-position",
                            250,
                            0,
                            "linear",
                            "${botones}",
                            [0,0],
                            [0,-70],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            },
            "bt_solucion": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: true,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'botones2',
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/botones.png', '-73px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            overflow: 'hidden',
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 250,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 250
                    },
                    data: [
                        [
                            "eid1276",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${botones2}",
                            [-73,0],
                            [-73,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1277",
                            "background-position",
                            250,
                            0,
                            "linear",
                            "${botones2}",
                            [-73,0],
                            [-73,-70],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            },
            "bt_reiniciar": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: true,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'botones3',
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/botones.png', '-146px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            overflow: 'hidden',
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 250,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 250
                    },
                    data: [
                        [
                            "eid1278",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${botones3}",
                            [-146,0],
                            [-146,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1279",
                            "background-position",
                            250,
                            0,
                            "linear",
                            "${botones3}",
                            [-146,0],
                            [-146,-70],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            },
            "bt_ayuda": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: true,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'botones4',
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/botones.png', '-220px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            overflow: 'hidden',
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 250,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 250
                    },
                    data: [
                        [
                            "eid1280",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${botones4}",
                            [-220,0],
                            [-220,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1281",
                            "background-position",
                            250,
                            0,
                            "linear",
                            "${botones4}",
                            [-220,0],
                            [-220,-70],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            }
        };

    AdobeEdge.registerCompositionDefn(compId, symbols, fonts, scripts, resources, opts);

    if (!window.edge_authoring_mode) AdobeEdge.getComposition(compId).load("index_edgeActions.js");
})("EDGE-1010687340");
