/**
 * 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_L_G01_U05_L07_03_03_02_background2',
                type: 'image',
                rect: ['47px', '81','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U05_L07_03_03_02_background.png",'0px','0px']
            },
            {
                id: 'RoundRect',
                display: 'none',
                type: 'rect',
                rect: ['109px', '294px','874px','359px','auto', 'auto'],
                borderRadius: ["10px", "10px", "10px", "10px"],
                fill: ["rgba(255,255,255,0.67)"],
                stroke: [3,"rgb(255, 255, 255)","solid"]
            },
            {
                id: 'IL_L_G01_U05_L07_03_03_02_image',
                display: 'none',
                type: 'image',
                rect: ['820px', '266px','435px','434px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U05_L07_03_03_02_image.png",'0px','0px']
            },
            {
                id: 'Text2',
                type: 'text',
                rect: ['134px', '318px','653px','314px','auto', 'auto'],
                text: "Cada vez hay más dispositivos electrónicos que nos permiten disfrutar el contenido<br>donde queramos. <br><br>Esto también pasa con las revistas infantiles. Ahora basta con una conexión a Internet para acceder a las más divertidas e interesantes publicaciones.<br>",
                align: "left",
                font: ['cabin, sans-serif', 32, "rgba(0,0,0,1.00)", "400", "none", "normal"]
            },
            {
                id: 'descripcion',
                display: 'block',
                type: 'text',
                rect: ['100px', '165px','1170px','82px','auto', 'auto'],
                text: "Dentro de las revistas encuentras los artículos acompañados de una imagen relacionada al tema. <br>",
                align: "left",
                font: ['cabin, sans-serif', 32, "rgba(0,0,0,1.00)", "bold", "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: 'bt_audio',
                display: 'none',
                type: 'rect',
                rect: ['101px', '202px','auto','auto','auto', 'auto'],
                title: 'audio',
                cursor: ['pointer'],
                transform: [[],[],[],['0.83333','0.83333']]
            },
            {
                id: 'audio',
                type: 'audio',
                tag: 'audio',
                rect: ['1122', '158','320px','45px','auto', 'auto'],
                source: ['media/L_G01_U05_L06_03_04_A01.mp3'],
                preload: 'true'
            }],
            symbolInstances: [
            {
                id: 'bt_audio',
                symbolName: 'bt_audio',
                autoPlay: {

                }
            }
            ]
        },
    states: {
        "Base State": {
            "${_RoundRect}": [
                ["style", "top", '294px'],
                ["style", "display", 'none'],
                ["color", "background-color", 'rgba(255,255,255,0.67)'],
                ["style", "left", '869px'],
                ["style", "width", '114px']
            ],
            "${_IL_L_G01_U05_L07_03_03_02_image}": [
                ["style", "top", '266px'],
                ["transform", "scaleY", '0.35632'],
                ["transform", "scaleX", '0.35632'],
                ["style", "left", '820px'],
                ["style", "display", 'none']
            ],
            "${_Text2}": [
                ["style", "top", '338px'],
                ["style", "height", '314px'],
                ["style", "opacity", '0'],
                ["color", "color", 'rgba(0,0,0,1.00)'],
                ["style", "font-weight", '400']
            ],
            "${_ok37}": [
                ["style", "top", '177px'],
                ["style", "display", 'none'],
                ["style", "height", '20px'],
                ["style", "left", '79px'],
                ["style", "width", '20px']
            ],
            "${_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']
            ],
            "${_bt_audio}": [
                ["style", "top", '202px'],
                ["transform", "scaleY", '0.27036'],
                ["style", "display", 'none'],
                ["style", "cursor", 'pointer'],
                ["style", "left", '101px'],
                ["transform", "scaleX", '0.27036']
            ],
            "${_descripcion}": [
                ["style", "top", '165px'],
                ["style", "font-size", '32px'],
                ["style", "height", '82px'],
                ["color", "color", 'rgba(0,0,0,1.00)'],
                ["style", "display", 'block'],
                ["style", "left", '100px'],
                ["style", "width", '1170px']
            ],
            "${_IL_L_G01_U05_L07_03_03_02_background2}": [
                ["style", "left", '47px']
            ],
            "${_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']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 1350,
            autoPlay: true,
            timeline: [
                { id: "eid1312", tween: [ "style", "${_Text2}", "opacity", '1', { fromValue: '0'}], position: 1000, duration: 350, easing: "easeOutExpo" },
                { id: "eid1310", tween: [ "style", "${_Text2}", "top", '318px', { fromValue: '338px'}], position: 1000, duration: 350, easing: "easeOutExpo" },
                { id: "eid1262", tween: [ "style", "${_descripcion}", "display", 'block', { fromValue: 'block'}], position: 0, duration: 0 },
                { id: "eid1299", tween: [ "transform", "${_IL_L_G01_U05_L07_03_03_02_image}", "scaleY", '1', { fromValue: '0.35632'}], position: 85, duration: 500, easing: "easeOutElastic" },
                { id: "eid1297", tween: [ "transform", "${_IL_L_G01_U05_L07_03_03_02_image}", "scaleX", '1', { fromValue: '0.35632'}], position: 85, duration: 500, easing: "easeOutElastic" },
                { id: "eid1278", tween: [ "transform", "${_bt_audio}", "scaleX", '0.83333', { fromValue: '0.27036'}], position: 0, duration: 430, easing: "easeOutElastic" },
                { id: "eid1280", tween: [ "transform", "${_bt_audio}", "scaleY", '0.83333', { fromValue: '0.27036'}], position: 0, duration: 430, easing: "easeOutElastic" },
                { id: "eid1295", tween: [ "style", "${_bt_audio}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0, easing: "easeOutElastic" },
                { id: "eid1302", tween: [ "style", "${_RoundRect}", "left", '109px', { fromValue: '869px'}], position: 585, duration: 495, easing: "easeOutBack" },
                { id: "eid1304", tween: [ "style", "${_RoundRect}", "width", '874px', { fromValue: '114px'}], position: 585, duration: 495, easing: "easeOutBack" },
                { id: "eid888", tween: [ "style", "${_ok37}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1300", tween: [ "style", "${_IL_L_G01_U05_L07_03_03_02_image}", "display", 'block', { fromValue: 'none'}], position: 85, duration: 0, easing: "easeOutElastic" },
                { id: "eid1263", tween: [ "style", "${_instruccion}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1305", tween: [ "style", "${_RoundRect}", "display", 'block', { fromValue: 'none'}], position: 585, duration: 0, easing: "easeOutBack" }            ]
        }
    }
},
"flecha_bt": {
    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', '89px', '83px', 'auto', 'auto'],
                    id: 'Rectangle2',
                    stroke: [0, 'rgb(0, 0, 0)', 'none'],
                    type: 'rect',
                    fill: ['rgba(192,192,192,0.00)']
                },
                {
                    id: 'M_G01_U01_L03_03_03_06Copy2',
                    type: 'image',
                    rect: ['0px', '0px', '80px', '200px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/M_G01_U01_L03_03_03_062.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_M_G01_U01_L03_03_03_06Copy2}": [
                ["style", "left", '0px'],
                ["style", "top", '0px']
            ],
            "${_Rectangle2}": [
                ["color", "background-color", 'rgba(192,192,192,0.00)'],
                ["style", "height", '83px'],
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "width", '89px']
            ],
            "${symbolSelector}": [
                ["style", "height", '83px'],
                ["style", "overflow", 'hidden'],
                ["style", "width", '89px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "up": 0,
                "down": 250
            },
            timeline: [
                { id: "eid1306", tween: [ "style", "${_M_G01_U01_L03_03_03_06Copy2}", "left", '0px', { fromValue: '0px'}], position: 0, duration: 0 },
                { id: "eid1307", tween: [ "style", "${_M_G01_U01_L03_03_03_06Copy2}", "top", '0px', { fromValue: '0px'}], position: 0, duration: 0 },
                { id: "eid1308", tween: [ "style", "${_M_G01_U01_L03_03_03_06Copy2}", "top", '-110px', { fromValue: '0px'}], position: 250, duration: 0 }            ]
        }
    }
},
"bt_audio": {
    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: [
                {
                    type: 'rect',
                    id: 'Rectangle',
                    stroke: [0, 'rgba(0,0,0,1)', 'none'],
                    rect: ['0px', '0px', '90px', '90px', 'auto', 'auto'],
                    fill: ['rgba(192,192,192,0.00)']
                },
                {
                    type: 'image',
                    id: 'bt_audio',
                    rect: ['0px', '0px', '90px', '180px', 'auto', 'auto'],
                    clip: ['rect(0px 90px 180px 0px)'],
                    fill: ['rgba(0,0,0,0)', 'images/bt_audio.png', '0px', '-97px']
                },
                {
                    type: 'rect',
                    rect: ['0px', '0px', '90px', '90px', 'auto', 'auto'],
                    clip: ['rect(0px 90px 90px 0px)'],
                    id: 'ht_spot',
                    stroke: [0, 'rgb(0, 0, 0)', 'none'],
                    cursor: ['pointer'],
                    fill: ['rgba(192,192,192,0.00)']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_bt_audio}": [
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "height", '180px'],
                ["style", "background-position", [0,5], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "clip", [0,90,90,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "width", '90px']
            ],
            "${_Rectangle}": [
                ["style", "top", '0px'],
                ["style", "height", '90px'],
                ["color", "background-color", 'rgba(192,192,192,0.00)'],
                ["style", "left", '0px'],
                ["style", "width", '90px']
            ],
            "${_ht_spot}": [
                ["color", "background-color", 'rgba(192,192,192,0.00)'],
                ["style", "height", '90px'],
                ["style", "clip", [0,90,90,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "cursor", 'pointer'],
                ["style", "width", '90px']
            ],
            "${symbolSelector}": [
                ["style", "height", '90px'],
                ["style", "overflow", 'hidden'],
                ["style", "width", '90px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "up": 0,
                "down": 250
            },
            timeline: [
                { id: "eid1242", tween: [ "style", "${_bt_audio}", "left", '0px', { fromValue: '0px'}], position: 0, duration: 0 },
                { id: "eid1244", tween: [ "style", "${_bt_audio}", "left", '0px', { fromValue: '0px'}], position: 250, duration: 0 },
                { id: "eid1243", tween: [ "style", "${_bt_audio}", "top", '0px', { fromValue: '0px'}], position: 0, duration: 0 },
                { id: "eid1245", tween: [ "style", "${_bt_audio}", "top", '0px', { fromValue: '0px'}], position: 250, duration: 0 },
                { id: "eid3", tween: [ "style", "${_bt_audio}", "background-position", [0,5], { valueTemplate: '@@0@@px @@1@@px', fromValue: [0,5]}], position: 0, duration: 0 },
                { id: "eid4", tween: [ "style", "${_bt_audio}", "background-position", [0,-97], { valueTemplate: '@@0@@px @@1@@px', fromValue: [0,5]}], position: 250, 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");
