/*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': 'metadata'
        },
        resources = [
        ],
        scripts = [
            js+"jquery-2.0.3.min.js",
            js+"jquery.filter_input.js",
            js+"input.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: 'IL_L_G01_U04_L05_05_01_01',
                            type: 'image',
                            rect: ['49px', '81px', '1265px', '650px', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U04_L05_05_01_01.jpg",'0px','0px']
                        },
                        {
                            id: 'error',
                            type: 'audio',
                            tag: 'audio',
                            rect: ['520', '298', '320px', '45px', 'auto', 'auto'],
                            source: [aud+"error.mp3",aud+"error.ogg"],
                            preload: 'true'
                        },
                        {
                            id: 'success',
                            type: 'audio',
                            tag: 'audio',
                            rect: ['520', '298', '320px', '45px', 'auto', 'auto'],
                            source: [aud+"success.mp3",aud+"success.ogg"],
                            preload: 'true'
                        },
                        {
                            id: 'IL_L_G01_U04_L05_05_01_012',
                            type: 'image',
                            rect: ['-9px', '218px', '1019px', '534px', 'auto', 'auto'],
                            opacity: 0,
                            fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U04_L05_05_01_01.png",'0px','0px'],
                            transform: [[],[],[],['0.92','0.92']]
                        },
                        {
                            id: 'bt_ayuda',
                            symbolName: 'bt_ayuda',
                            type: 'rect',
                            rect: ['782', '694', '70', '70', 'auto', 'auto'],
                            overflow: 'hidden'
                        },
                        {
                            id: 'bt_reiniciar',
                            symbolName: 'bt_reiniciar',
                            type: 'rect',
                            rect: ['692', '694', '70', '70', 'auto', 'auto'],
                            overflow: 'hidden'
                        },
                        {
                            id: 'bt_solucion',
                            symbolName: 'bt_solucion',
                            type: 'rect',
                            rect: ['604', '694', '70', '70', 'auto', 'auto'],
                            overflow: 'hidden'
                        },
                        {
                            id: 'bt_validar',
                            symbolName: 'bt_validar',
                            type: 'rect',
                            rect: ['514', '694', '70', '70', 'auto', 'auto'],
                            overflow: 'hidden'
                        },
                        {
                            id: 'hotspot_ayuda',
                            type: 'rect',
                            rect: ['782', '694', '70', '70', 'auto', 'auto'],
                            cursor: 'pointer',
                            fill: ["rgba(192,192,192,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'hotspot_reiniciar',
                            type: 'rect',
                            rect: ['693', '694', '70', '70', 'auto', 'auto'],
                            cursor: 'pointer',
                            fill: ["rgba(192,192,192,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'hotspot_solucion',
                            type: 'rect',
                            rect: ['604', '694', '70', '70', 'auto', 'auto'],
                            cursor: 'pointer',
                            fill: ["rgba(192,192,192,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'hotspot_validar',
                            type: 'rect',
                            rect: ['514', '694', '70', '70', 'auto', 'auto'],
                            cursor: 'pointer',
                            fill: ["rgba(192,192,192,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'Input_1',
                            display: 'block',
                            type: 'rect',
                            rect: ['1089px', '333px', '193px', '30', 'auto', 'auto'],
                            opacity: 0,
                            fill: ["rgba(37,140,147,0.15)"],
                            stroke: [0,"rgb(83, 30, 30)","none"]
                        },
                        {
                            id: 'Input_2',
                            display: 'block',
                            type: 'rect',
                            rect: ['auto', '455px', '193px', '30', '127px', 'auto'],
                            opacity: 0,
                            fill: ["rgba(37,140,147,0.15)",[270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]]],
                            stroke: [0,"rgb(83, 30, 30)","none"]
                        },
                        {
                            id: 'Input_3',
                            display: 'block',
                            type: 'rect',
                            rect: ['1067px', '578px', '193px', '30', 'auto', 'auto'],
                            opacity: 0,
                            fill: ["rgba(37,140,147,0.15)",[270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]]],
                            stroke: [0,"rgb(83, 30, 30)","none"]
                        },
                        {
                            id: 'resp_incorrecta',
                            display: 'none',
                            type: 'image',
                            rect: ['443', '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: ['443', '354', '530', '160', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"msg_correcto.png",'0px','0px']
                        },
                        {
                            id: 'help_input',
                            display: 'none',
                            type: 'image',
                            rect: ['439', '330', '531', '249', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"help_input.png",'0px','0px']
                        },
                        {
                            id: 'descripcion',
                            type: 'text',
                            rect: ['100', '160', '1150', 'auto', 'auto', 'auto'],
                            text: "Busca el cuento “Hansel y Gretel” y léelo. Luego soluciona los siguientes ejercicios.  <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',
                            type: 'text',
                            rect: ['114px', '207px', '1150', 'auto', 'auto', 'auto'],
                            text: "1. Escribe en la casilla a qué parte de la trama corresponde el fragmento: inicio, nudo o desenlace.<br>",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [26, "px"], "rgba(36,36,36,1.00)", "400", "none", "normal", "break-word", ""]
                        },
                        {
                            id: 'flecha',
                            display: 'none',
                            type: 'image',
                            rect: ['210', '135', '15', '15', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"flecha.png",'0px','0px']
                        },
                        {
                            id: 'momento',
                            display: 'none',
                            type: 'text',
                            rect: ['100', '129', '130', 'auto', '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', '129', '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: 1314,
                    autoPlay: true,
                    data: [
                        [
                            "eid999",
                            "opacity",
                            750,
                            323,
                            "linear",
                            "${Input_1}",
                            '0',
                            '1'
                        ],
                        [
                            "eid981",
                            "top",
                            250,
                            500,
                            "linear",
                            "${IL_L_G01_U04_L05_05_01_012}",
                            '218px',
                            '216px'
                        ],
                        [
                            "eid979",
                            "left",
                            250,
                            500,
                            "linear",
                            "${IL_L_G01_U04_L05_05_01_012}",
                            '-9px',
                            '94px'
                        ],
                        [
                            "eid1004",
                            "display",
                            0,
                            0,
                            "linear",
                            "${momento}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1001",
                            "opacity",
                            991,
                            323,
                            "linear",
                            "${Input_3}",
                            '0',
                            '1'
                        ],
                        [
                            "eid998",
                            "left",
                            991,
                            323,
                            "linear",
                            "${Input_3}",
                            '1089px',
                            '1067px'
                        ],
                        [
                            "eid983",
                            "opacity",
                            250,
                            500,
                            "linear",
                            "${IL_L_G01_U04_L05_05_01_012}",
                            '0',
                            '1'
                        ],
                        [
                            "eid975",
                            "display",
                            0,
                            0,
                            "linear",
                            "${resp_correcta}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1002",
                            "display",
                            0,
                            0,
                            "linear",
                            "${num_actividad}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1000",
                            "opacity",
                            882,
                            323,
                            "linear",
                            "${Input_2}",
                            '0',
                            '1'
                        ],
                        [
                            "eid977",
                            "display",
                            0,
                            0,
                            "linear",
                            "${help_input}",
                            'none',
                            'none'
                        ],
                        [
                            "eid996",
                            "left",
                            750,
                            323,
                            "linear",
                            "${Input_1}",
                            '1089px',
                            '1067px'
                        ],
                        [
                            "eid1003",
                            "display",
                            0,
                            0,
                            "linear",
                            "${flecha}",
                            'none',
                            'none'
                        ],
                        [
                            "eid997",
                            "right",
                            882,
                            323,
                            "linear",
                            "${Input_2}",
                            '127px',
                            '106px'
                        ],
                        [
                            "eid888",
                            "display",
                            0,
                            0,
                            "linear",
                            "${ok37}",
                            'none',
                            'none'
                        ],
                        [
                            "eid976",
                            "display",
                            0,
                            0,
                            "linear",
                            "${resp_incorrecta}",
                            'none',
                            'none'
                        ]
                    ]
                }
            },
            "ok": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            id: 'ok',
                            type: 'image',
                            rect: [0, 0, '20px', '20px', 'auto', 'auto'],
                            fill: ['rgba(0,0,0,0)', 'images/ok.png', '0px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            rect: [null, null, 20, 20]
                        }
                    }
                },
                timeline: {
                    duration: 0,
                    autoPlay: true,
                    data: [

                    ]
                }
            },
            "bad": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            id: 'bad',
                            type: 'image',
                            rect: [0, 0, '20px', '20px', 'auto', 'auto'],
                            fill: ['rgba(0,0,0,0)', 'images/bad.png', '0px', '0px']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            rect: [null, null, 20, 20]
                        }
                    }
                },
                timeline: {
                    duration: 0,
                    autoPlay: true,
                    data: [

                    ]
                }
            },
            "bt_validar": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: true,
                content: {
                    dom: [
                        {
                            rect: ['0px', '0px', '290px', '140px', 'auto', 'auto'],
                            id: 'botones',
                            type: 'image',
                            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: [
                        {
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            id: 'botones2',
                            type: 'image',
                            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: [
                        {
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            id: 'botones3',
                            type: 'image',
                            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: [
                        {
                            rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                            id: 'botones4',
                            type: 'image',
                            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-94063035");
