/**
 * 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>';
    fonts['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>';

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: "height",
    centerStage: "both",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
            {
                id: 'audio_1',
                type: 'audio',
                tag: 'audio',
                rect: ['626', '350','320px','45px','auto', 'auto'],
                source: ['media/L_G03_U01_L05_03_03_A.mp3'],
                preload: 'true'
            },
            {
                id: 'IL_S_G02_U02_L02_03_02_01_background',
                type: 'image',
                rect: ['49px', '81','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_S_G02_U02_L02_03_02_01_background.png",'0px','0px']
            },
            {
                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: 'IL_L_G03_U01_L05_03_04_01',
                type: 'image',
                rect: ['100px', '209px','753px','521px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G03_U01_L05_03_04_01.png",'0px','0px']
            },
            {
                id: 'IL_L_G03_U01_L05_03_04_02',
                type: 'image',
                rect: ['900px', '200px','367px','533px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G03_U01_L05_03_04_02.png",'0px','0px']
            },
            {
                id: 'bt_audio',
                type: 'rect',
                rect: ['1131px', '470px','auto','auto','auto', 'auto'],
                title: 'audio_1'
            },
            {
                id: 'descripcion',
                display: 'block',
                type: 'text',
                rect: ['100px', '165px','1150px','auto','auto', 'auto'],
                text: "Escucha las instrucciones del juego \"No te quedes sin silla\". <br>",
                align: "left",
                font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 32, "rgba(26,26,26,1.00)", "bold", "none", "normal"]
            },
            {
                id: 'pop_1',
                type: 'rect',
                rect: ['93', '202','auto','auto','auto', 'auto']
            }],
            symbolInstances: [
            {
                id: 'pop_1',
                symbolName: 'pop_1',
                autoPlay: {

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

                }
            }
            ]
        },
    states: {
        "Base State": {
            "${_IL_L_G03_U01_L05_03_04_02}": [
                ["style", "top", '113px'],
                ["style", "opacity", '0'],
                ["style", "left", '903px']
            ],
            "${_ok37}": [
                ["style", "top", '177px'],
                ["style", "height", '20px'],
                ["style", "display", 'none'],
                ["style", "left", '79px'],
                ["style", "width", '20px']
            ],
            "${_descripcion}": [
                ["style", "top", '143px'],
                ["style", "font-size", '30px'],
                ["style", "display", 'block'],
                ["style", "font-family", 'cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif'],
                ["color", "color", 'rgba(255,255,255,1.00)'],
                ["style", "opacity", '0'],
                ["style", "left", '100px'],
                ["style", "width", '1150px']
            ],
            "${_IL_S_G02_U02_L02_03_02_01_background}": [
                ["style", "left", '49px']
            ],
            "${_bt_audio}": [
                ["style", "top", '470px'],
                ["transform", "scaleY", '0.28774'],
                ["transform", "scaleX", '0.28774'],
                ["style", "opacity", '0'],
                ["style", "left", '1131px']
            ],
            "${_instruccion}": [
                ["style", "top", '209px'],
                ["style", "font-size", '26px'],
                ["color", "color", 'rgba(102,102,102,1)'],
                ["style", "display", 'none'],
                ["style", "font-weight", '400'],
                ["style", "left", '100px'],
                ["style", "width", '913px']
            ],
            "${_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']
            ],
            "${_IL_L_G03_U01_L05_03_04_01}": [
                ["style", "top", '254px'],
                ["style", "opacity", '0'],
                ["style", "left", '100px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 1750,
            autoPlay: true,
            timeline: [
                { id: "eid3593", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_02}", "top", '200px', { fromValue: '113px'}], position: 1000, duration: 500, easing: "easeOutBack" },
                { id: "eid3601", tween: [ "style", "${_bt_audio}", "opacity", '1', { fromValue: '0'}], position: 1250, duration: 500, easing: "easeOutBack" },
                { id: "eid3597", tween: [ "transform", "${_bt_audio}", "scaleX", '1', { fromValue: '0.28774'}], position: 1250, duration: 500, easing: "easeOutBack" },
                { id: "eid3579", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_01}", "top", '209px', { fromValue: '254px'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid3599", tween: [ "transform", "${_bt_audio}", "scaleY", '1', { fromValue: '0.28774'}], position: 1250, duration: 500, easing: "easeOutBack" },
                { id: "eid1263", tween: [ "style", "${_instruccion}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid3564", tween: [ "color", "${_descripcion}", "color", 'rgba(255,255,255,1.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,1.00)'}], position: 0, duration: 0 },
                { id: "eid3561", tween: [ "style", "${_descripcion}", "display", 'block', { fromValue: 'block'}], position: 0, duration: 0 },
                { id: "eid3595", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_02}", "opacity", '1', { fromValue: '0'}], position: 1000, duration: 500, easing: "easeOutBack" },
                { id: "eid3575", tween: [ "style", "${_descripcion}", "top", '165px', { fromValue: '143px'}], position: 0, duration: 500, easing: "easeOutBack" },
                { id: "eid3591", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_02}", "left", '900px', { fromValue: '903px'}], position: 1000, duration: 500, easing: "easeOutBack" },
                { id: "eid888", tween: [ "style", "${_ok37}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid3581", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_01}", "opacity", '1', { fromValue: '0'}], position: 500, duration: 500, easing: "easeOutBack" },
                { id: "eid3577", tween: [ "style", "${_descripcion}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 500, easing: "easeOutBack" },
                { id: "eid3562", tween: [ "style", "${_descripcion}", "font-size", '30px', { fromValue: '30px'}], position: 0, 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: [
                {
                    rect: ['0px', '0px', '90px', '90px', 'auto', 'auto'],
                    id: 'Rectangle',
                    stroke: [0, 'rgba(0,0,0,1)', 'none'],
                    type: 'rect',
                    fill: ['rgba(192,192,192,0.00)']
                },
                {
                    rect: ['0px', '0px', '90px', '180px', 'auto', 'auto'],
                    id: 'bt_audio',
                    type: 'image',
                    clip: ['rect(0px 90px 180px 0px)'],
                    fill: ['rgba(0,0,0,0)', 'images/bt_audio.png', '0px', '-97px']
                },
                {
                    rect: ['0px', '0px', '90px', '90px', 'auto', 'auto'],
                    type: 'rect',
                    cursor: ['pointer'],
                    id: 'ht_spot',
                    stroke: [0, 'rgb(0, 0, 0)', 'none'],
                    clip: ['rect(0px 90px 90px 0px)'],
                    fill: ['rgba(192,192,192,0.00)']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_bt_audio}": [
                ["style", "top", '0px'],
                ["style", "background-position", [0,5], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "height", '180px'],
                ["style", "clip", [0,90,90,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "left", '0px'],
                ["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", "cursor", 'pointer'],
                ["style", "clip", [0,90,90,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "width", '90px']
            ],
            "${symbolSelector}": [
                ["style", "height", '90px'],
                ["style", "width", '90px'],
                ["style", "overflow", 'hidden']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "up": 0,
                "down": 250
            },
            timeline: [
                { 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 },
                { 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: "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 }            ]
        }
    }
},
"bt_cerrar": {
    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: 'bt_info',
                    type: 'image',
                    rect: ['0px', '0px', '50px', '100px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/bt_cerrar.png', '0px', '0px']
                },
                {
                    type: 'rect',
                    rect: ['0px', '0px', '50px', '48px', 'auto', 'auto'],
                    display: 'block',
                    id: 'hot_spot_1',
                    stroke: [0, 'rgb(0, 0, 0)', 'none'],
                    cursor: ['pointer'],
                    fill: ['rgba(255,255,255,0)']
                },
                {
                    type: 'rect',
                    rect: ['0px', '0px', '50px', '48px', 'auto', 'auto'],
                    display: 'none',
                    id: 'hot_spot_2',
                    stroke: [0, 'rgb(0, 0, 0)', 'none'],
                    cursor: ['pointer'],
                    fill: ['rgba(255,255,255,0)']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '48px'],
                ["style", "width", '50px'],
                ["style", "overflow", 'hidden']
            ],
            "${_hot_spot_1}": [
                ["style", "cursor", 'pointer'],
                ["style", "display", 'block']
            ],
            "${_hot_spot_2}": [
                ["style", "cursor", 'pointer'],
                ["style", "display", 'none']
            ],
            "${_bt_info}": [
                ["style", "left", '0px'],
                ["style", "top", '-1px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "up": 0,
                "down": 250
            },
            timeline: [
                { id: "eid1357", tween: [ "style", "${_bt_info}", "top", '-1px', { fromValue: '-1px'}], position: 0, duration: 0 },
                { id: "eid1358", tween: [ "style", "${_bt_info}", "top", '-52px', { fromValue: '-1px'}], position: 250, duration: 0 },
                { id: "eid1361", tween: [ "style", "${_hot_spot_2}", "display", 'block', { fromValue: 'none'}], position: 250, duration: 0 },
                { id: "eid1356", tween: [ "style", "${_bt_info}", "left", '0px', { fromValue: '0px'}], position: 0, duration: 0 },
                { id: "eid1359", tween: [ "style", "${_hot_spot_1}", "display", 'block', { fromValue: 'block'}], position: 0, duration: 0 },
                { id: "eid1360", tween: [ "style", "${_hot_spot_1}", "display", 'none', { fromValue: 'block'}], position: 250, duration: 0 }            ]
        }
    }
},
"pop_1": {
    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: ['17px', '15px', '720px', '492px', 'auto', 'auto'],
                    fill: ['rgba(255,255,255,0.74)']
                },
                {
                    id: 'IL_L_G03_U01_L05_03_04_03',
                    type: 'image',
                    rect: ['0px', '8px', '753px', '521px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/IL_L_G03_U01_L05_03_04_03.png', '0px', '0px']
                },
                {
                    display: 'none',
                    type: 'rect',
                    id: 'bt_cerrar',
                    rect: ['679', '63', 'auto', 'auto', 'auto', 'auto']
                }
            ],
            symbolInstances: [
            {
                id: 'bt_cerrar',
                symbolName: 'bt_cerrar',
                autoPlay: {

               }
            }            ]
        },
    states: {
        "Base State": {
            "${_IL_L_G03_U01_L05_03_04_03}": [
                ["style", "top", '-17px'],
                ["style", "opacity", '0'],
                ["style", "left", '0px']
            ],
            "${_Rectangle}": [
                ["style", "top", '15px'],
                ["color", "background-color", 'rgba(255,255,255,0.74)'],
                ["style", "opacity", '0'],
                ["style", "left", '17px'],
                ["style", "width", '720px']
            ],
            "${_bt_cerrar}": [
                ["style", "top", '25px'],
                ["style", "left", '680px'],
                ["style", "display", 'none']
            ],
            "${symbolSelector}": [
                ["style", "height", '521px'],
                ["style", "width", '753px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 750,
            autoPlay: true,
            timeline: [
                { id: "eid3566", tween: [ "style", "${_bt_cerrar}", "top", '25px', { fromValue: '25px'}], position: 0, duration: 0 },
                { id: "eid3572", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_03}", "opacity", '1', { fromValue: '0'}], position: 250, duration: 500, easing: "easeOutBack" },
                { id: "eid3565", tween: [ "style", "${_bt_cerrar}", "left", '680px', { fromValue: '680px'}], position: 0, duration: 0 },
                { id: "eid3570", tween: [ "style", "${_IL_L_G03_U01_L05_03_04_03}", "top", '8px', { fromValue: '-17px'}], position: 250, duration: 500, easing: "easeOutBack" },
                { id: "eid3573", tween: [ "style", "${_bt_cerrar}", "display", 'block', { fromValue: 'none'}], position: 500, duration: 0, easing: "easeOutBack" },
                { id: "eid3568", tween: [ "style", "${_Rectangle}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 500 }            ]
        }
    }
}
};


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

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