/**
 * Adobe Edge: symbol definitions
 */
(function($, Edge, compId){
//images folder
var im='images/';

var fonts = {};    fonts['Helvetica']='';
    fonts['cabin, sans-serif']='<script src=\"http://use.edgefonts.net/cabin:n4,i4,n7,i7,n5,i5,n6,i6:all.js\"></script>';

var opts = {
    'gAudioPreloadPreference': 'true',

    'gVideoPreloadPreference': 'auto'
};
var resources = [
];
var symbols = {
"stage": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "both",
    centerStage: "both",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
            {
                id: 'IL_S_G02_U01_L03_01_01_06',
                type: 'image',
                rect: ['47px', '81px','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_S_G02_U01_L03_01_01_06.png",'0px','0px']
            },
            {
                id: 'nubes_01_06',
                type: 'image',
                rect: ['47px', '81px','1265px','332px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"nubes_01_06.png",'0px','0px']
            },
            {
                id: 'mago',
                type: 'rect',
                rect: ['557', '152','auto','auto','auto', 'auto']
            },
            {
                id: 'momento',
                display: 'none',
                type: 'text',
                rect: ['100px', '129px','120px','auto','auto', 'auto'],
                text: "Desarrollo",
                align: "left",
                font: ['cabin, sans-serif', 24, "rgba(35,163,143,1.00)", "700", "none", "normal"]
            },
            {
                id: 'flecha',
                display: 'none',
                type: 'image',
                rect: ['212px', '137px','15px','15px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"flecha.png",'0px','0px']
            },
            {
                id: 'num_actividad',
                display: 'none',
                type: 'text',
                rect: ['231px', '129px','128px','auto','auto', 'auto'],
                text: "Actividad 1",
                align: "left",
                font: ['cabin, sans-serif', 24, "rgba(140,198,63,1.00)", "700", "none", "normal"]
            },
            {
                id: 'instruccion',
                display: 'none',
                type: 'text',
                rect: ['100px', '209px','913px','auto','auto', 'auto'],
                text: "Escucha, lee y repite el trabalenguas. <br>",
                align: "left",
                font: ['cabin, sans-serif', 26, "rgba(102,102,102,1.00)", "400", "none", "normal"]
            },
            {
                id: 'globo2',
                type: 'image',
                rect: ['317px', '218px','301px','160px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"globo.png",'0px','0px']
            }],
            symbolInstances: [
            {
                id: 'mago',
                symbolName: 'mago'
            }
            ]
        },
    states: {
        "Base State": {
            "${_flecha}": [
                ["style", "top", '137px'],
                ["style", "display", 'none'],
                ["style", "height", '15px'],
                ["style", "left", '212px'],
                ["style", "width", '15px']
            ],
            "${_nubes_01_06}": [
                ["style", "left", '47px'],
                ["style", "top", '81px']
            ],
            "${_IL_S_G02_U01_L03_01_01_06}": [
                ["style", "left", '47px'],
                ["style", "top", '81px']
            ],
            "${_instruccion}": [
                ["style", "top", '209px'],
                ["style", "width", '913px'],
                ["style", "display", 'none'],
                ["color", "color", 'rgba(102,102,102,1)'],
                ["style", "font-weight", '400'],
                ["style", "left", '100px'],
                ["style", "font-size", '26px']
            ],
            "${_globo2}": [
                ["style", "-webkit-transform-origin", [100,100], {valueTemplate:'@@0@@% @@1@@%'} ],
                ["style", "-moz-transform-origin", [100,100],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-ms-transform-origin", [100,100],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "msTransformOrigin", [100,100],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-o-transform-origin", [100,100],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "transform-origin", [100,100],{valueTemplate:'@@0@@% @@1@@%'}],
                ["transform", "scaleY", '0.18125'],
                ["transform", "scaleX", '0.18125'],
                ["style", "opacity", '0'],
                ["style", "left", '358px'],
                ["style", "top", '261px']
            ],
            "${_momento}": [
                ["style", "top", '129px'],
                ["style", "width", '120px'],
                ["style", "display", 'none'],
                ["color", "color", 'rgba(35,163,143,1.00)'],
                ["style", "font-weight", 'bold'],
                ["style", "left", '100px'],
                ["style", "font-size", '24px']
            ],
            "${_ok37}": [
                ["style", "top", '177px'],
                ["style", "display", 'none'],
                ["style", "height", '20px'],
                ["style", "left", '79px'],
                ["style", "width", '20px']
            ],
            "${_num_actividad}": [
                ["style", "top", '129px'],
                ["style", "width", '128px'],
                ["style", "display", 'none'],
                ["color", "color", 'rgba(140,198,63,1.00)'],
                ["style", "font-weight", 'bold'],
                ["style", "left", '231px'],
                ["style", "font-size", '24px']
            ],
            "${_Stage}": [
                ["color", "background-color", 'rgba(255,255,255,0.00)'],
                ["style", "min-width", '320px'],
                ["style", "overflow", 'hidden'],
                ["style", "height", '768px'],
                ["style", "max-width", '1366px'],
                ["style", "width", '1366px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 10000,
            autoPlay: true,
            timeline: [
                { id: "eid1372", tween: [ "style", "${_globo2}", "top", '218px', { fromValue: '261px'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid1261", tween: [ "style", "${_num_actividad}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1260", tween: [ "style", "${_flecha}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1263", tween: [ "style", "${_instruccion}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1368", tween: [ "transform", "${_globo2}", "scaleY", '1', { fromValue: '0.18125'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid1259", tween: [ "style", "${_momento}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1366", tween: [ "transform", "${_globo2}", "scaleX", '1', { fromValue: '0.18125'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid1364", tween: [ "style", "${_globo2}", "-webkit-transform-origin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1395", tween: [ "style", "${_globo2}", "-moz-transform-origin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1396", tween: [ "style", "${_globo2}", "-ms-transform-origin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1397", tween: [ "style", "${_globo2}", "msTransformOrigin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1398", tween: [ "style", "${_globo2}", "-o-transform-origin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1399", tween: [ "style", "${_globo2}", "transform-origin", [100,100], { valueTemplate: '@@0@@% @@1@@%', fromValue: [100,100]}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid1337", tween: [ "style", "${_nubes_01_06}", "left", '98px', { fromValue: '47px'}], position: 0, duration: 10000 },
                { id: "eid1370", tween: [ "style", "${_globo2}", "left", '317px', { fromValue: '358px'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid1374", tween: [ "style", "${_globo2}", "opacity", '1', { fromValue: '0'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid888", tween: [ "style", "${_ok37}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 }            ]
        }
    }
},
"mago": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "none",
    centerStage: "none",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
                {
                    id: 'brazo2',
                    type: 'rect',
                    rect: ['142', '117', 'auto', 'auto', 'auto', 'auto']
                },
                {
                    id: 'mago_1',
                    type: 'image',
                    rect: ['0px', '0px', '273px', '538px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/mago_1.png', '0px', '0px']
                },
                {
                    rect: ['0px', '0px', '273px', '538px', 'auto', 'auto'],
                    id: 'boca',
                    type: 'image',
                    display: 'none',
                    fill: ['rgba(0,0,0,0)', 'images/mago_3.png', '0px', '0px']
                },
                {
                    id: 'bigote',
                    type: 'image',
                    rect: ['0px', '0px', '273px', '538px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/mago_4.png', '0px', '0px']
                },
                {
                    id: 'ojoa',
                    type: 'rect',
                    rect: ['0', '0', 'auto', 'auto', 'auto', 'auto']
                }
            ],
            symbolInstances: [
            {
                id: 'brazo2',
                symbolName: 'brazo',
                autoPlay: {

               }
            },
            {
                id: 'ojoa',
                symbolName: 'ojoa',
                autoPlay: {

               }
            }            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '538px'],
                ["style", "width", '320px']
            ],
            "${_boca}": [
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "display", 'none']
            ],
            "${_bigote}": [
                ["style", "left", '0px'],
                ["style", "top", '0px']
            ],
            "${_mago_1}": [
                ["style", "left", '0px'],
                ["style", "top", '0px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 7000,
            autoPlay: true,
            timeline: [
                { id: "eid1339", tween: [ "style", "${_boca}", "display", 'block', { fromValue: 'none'}], position: 500, duration: 0 },
                { id: "eid1340", tween: [ "style", "${_boca}", "display", 'none', { fromValue: 'block'}], position: 750, duration: 0 },
                { id: "eid1341", tween: [ "style", "${_boca}", "display", 'block', { fromValue: 'none'}], position: 1000, duration: 0 },
                { id: "eid1342", tween: [ "style", "${_boca}", "display", 'none', { fromValue: 'block'}], position: 1250, duration: 0 },
                { id: "eid1343", tween: [ "style", "${_boca}", "display", 'block', { fromValue: 'none'}], position: 1750, duration: 0 },
                { id: "eid1344", tween: [ "style", "${_boca}", "display", 'none', { fromValue: 'block'}], position: 2000, duration: 0 },
                { id: "eid1345", tween: [ "style", "${_boca}", "display", 'block', { fromValue: 'none'}], position: 2250, duration: 0 },
                { id: "eid1346", tween: [ "style", "${_boca}", "display", 'none', { fromValue: 'block'}], position: 2500, duration: 0 },
                { id: "eid1347", tween: [ "style", "${_boca}", "display", 'block', { fromValue: 'none'}], position: 2750, duration: 0 }            ]
        }
    }
},
"brazo": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "none",
    centerStage: "none",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
                {
                    rect: ['0px', '0px', '178px', '412px', 'auto', 'auto'],
                    id: 'brazo',
                    transform: [[], [], [], [], ['0%']],
                    type: 'image',
                    fill: ['rgba(0,0,0,0)', 'images/mago_2.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '412px'],
                ["style", "width", '178px']
            ],
            "${_brazo}": [
                ["style", "top", '0px'],
                ["style", "-webkit-transform-origin", [0,50], {valueTemplate:'@@0@@% @@1@@%'} ],
                ["style", "-moz-transform-origin", [0,50],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-ms-transform-origin", [0,50],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "msTransformOrigin", [0,50],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-o-transform-origin", [0,50],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "transform-origin", [0,50],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "left", '0px'],
                ["transform", "rotateZ", '0deg']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 7000,
            autoPlay: true,
            timeline: [
                { id: "eid1348", tween: [ "transform", "${_brazo}", "rotateZ", '-4deg', { fromValue: '0deg'}], position: 1000, duration: 1000 },
                { id: "eid1349", tween: [ "transform", "${_brazo}", "rotateZ", '0deg', { fromValue: '-4deg'}], position: 4000, duration: 1000 }            ]
        }
    }
},
"ojoa": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "none",
    centerStage: "none",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
                {
                    rect: ['0px', '0px', '273px', '538px', 'auto', 'auto'],
                    id: 'cerrados',
                    type: 'image',
                    display: 'none',
                    fill: ['rgba(0,0,0,0)', 'images/mago_5.png', '0px', '0px']
                },
                {
                    rect: ['0px', '0px', '273px', '538px', 'auto', 'auto'],
                    id: 'abiertos',
                    type: 'image',
                    display: 'block',
                    fill: ['rgba(0,0,0,0)', 'images/mago_6.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_abiertos}": [
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "display", 'block']
            ],
            "${_cerrados}": [
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "display", 'none']
            ],
            "${symbolSelector}": [
                ["style", "height", '538px'],
                ["style", "width", '273px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 5500,
            autoPlay: true,
            timeline: [
                { id: "eid1351", tween: [ "style", "${_abiertos}", "display", 'none', { fromValue: 'block'}], position: 1500, duration: 0 },
                { id: "eid1352", tween: [ "style", "${_abiertos}", "display", 'block', { fromValue: 'none'}], position: 1750, duration: 0 },
                { id: "eid1357", tween: [ "style", "${_abiertos}", "display", 'none', { fromValue: 'block'}], position: 2000, duration: 0 },
                { id: "eid1356", tween: [ "style", "${_abiertos}", "display", 'block', { fromValue: 'none'}], position: 2250, duration: 0 },
                { id: "eid1360", tween: [ "style", "${_abiertos}", "display", 'none', { fromValue: 'block'}], position: 4250, duration: 0 },
                { id: "eid1361", tween: [ "style", "${_abiertos}", "display", 'block', { fromValue: 'none'}], position: 4500, duration: 0 },
                { id: "eid1350", tween: [ "style", "${_cerrados}", "display", 'block', { fromValue: 'none'}], position: 1500, duration: 0 },
                { id: "eid1353", tween: [ "style", "${_cerrados}", "display", 'none', { fromValue: 'block'}], position: 1750, duration: 0 },
                { id: "eid1358", tween: [ "style", "${_cerrados}", "display", 'block', { fromValue: 'none'}], position: 2000, duration: 0 },
                { id: "eid1359", tween: [ "style", "${_cerrados}", "display", 'none', { fromValue: 'block'}], position: 2250, duration: 0 },
                { id: "eid1362", tween: [ "style", "${_cerrados}", "display", 'block', { fromValue: 'none'}], position: 4250, duration: 0 },
                { id: "eid1363", tween: [ "style", "${_cerrados}", "display", 'none', { fromValue: 'block'}], position: 4500, duration: 0 }            ]
        }
    }
}
};


Edge.registerCompositionDefn(compId, symbols, fonts, resources, opts);

/**
 * Adobe Edge DOM Ready Event Handler
 */
$(window).ready(function() {
     Edge.launchComposition(compId);
});
})(jQuery, AdobeEdge, "EDGE-94063035");
