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

var fonts = {};    fonts['Helvetica']='';
    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': 'auto',

    '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: 'S_G2_U5_L6_3_bg',
                type: 'image',
                rect: ['49px', '81px','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"S_G2_U5_L6_3_bg.jpg",'0px','0px']
            },
            {
                id: 'descripcion',
                type: 'text',
                rect: ['100px', '165px','1150px','auto','auto', 'auto'],
                text: "Escucha o lee la información del telégrafo.<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: 'S_G2_U5_L6_3_inventor',
                type: 'image',
                rect: ['568px', '223px','912px','535px','auto', 'auto'],
                clip: ['rect(0px 778.6666870117188px 535px 0px)'],
                fill: ["rgba(0,0,0,0)",im+"S_G2_U5_L6_3_inventor.png",'0px','0px'],
                transform: [[],[],[],['0.9','0.9']]
            },
            {
                id: 'Rectangle',
                type: 'rect',
                rect: ['79px', '265px','750px','446px','auto', 'auto'],
                borderRadius: ["15px 15px", "15px 15px", "15px 15px", "15px 15px"],
                fill: ["rgba(255,255,255,0.90)"],
                stroke: [0,"rgba(0,0,0,1)","none"]
            },
            {
                id: 'instruccion',
                type: 'text',
                rect: ['118px', '326px','671px','364px','auto', 'auto'],
                text: "El primer telégrafo fue inventado en 1794 por Claude Chappe. Luego de este, hubo varias versiones creadas basadas en fenómenos electromagnéticos hasta que en 1836, luego de la invención de varios equipos que usaban la electricidad para la transmisión telegráfica de mensajes, un pintor estadounidense llamado Samuel Morse, diseñó el telégrafo morse. Este dispositivo usaba señales eléctricas para transmitir mensajes de texto codificados como puntos y rayas que luego se podían traducir en letras, método conocido como Código Morse. <br>",
                align: "left",
                font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 28, "rgba(0,0,0,1.00)", "400", "none", "normal"]
            },
            {
                id: 'bt_audio',
                type: 'rect',
                rect: ['416px', '220px','auto','auto','auto', 'auto'],
                title: 'Audio_1'
            },
            {
                id: 'Audio_1',
                display: 'none',
                type: 'audio',
                tag: 'audio',
                rect: ['1489', '81','320px','45px','auto', 'auto'],
                source: ['media/S_G02_U05_L06_03_02_A01.mp3'],
                preload: 'auto'
            }],
            symbolInstances: [
            {
                id: 'bt_audio',
                symbolName: 'bt_audio',
                autoPlay: {

                }
            }
            ]
        },
    states: {
        "Base State": {
            "${_label}": [
                ["style", "top", '0px'],
                ["style", "display", 'none'],
                ["style", "overflow", 'hidden'],
                ["style", "height", '768px'],
                ["style", "opacity", '1'],
                ["style", "left", '0px'],
                ["style", "width", '1366px']
            ],
            "${_Rectangle}": [
                ["style", "top", '322px'],
                ["style", "border-top-left-radius", [15,15], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "border-bottom-left-radius", [15,15], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "border-bottom-right-radius", [15,15], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "height", '446px'],
                ["style", "opacity", '0'],
                ["style", "border-top-right-radius", [15,15], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["color", "background-color", 'rgba(255,255,255,0.90)']
            ],
            "${_descripcion}": [
                ["style", "top", '165px'],
                ["style", "font-size", '32px'],
                ["color", "color", 'rgba(26,26,26,1)'],
                ["style", "font-family", 'cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif'],
                ["style", "left", '100px'],
                ["style", "width", '1150px']
            ],
            "${_S_G2_U5_L6_3_bg}": [
                ["style", "left", '49px'],
                ["style", "top", '81px']
            ],
            "${_bt_audio}": [
                ["style", "top", '220px'],
                ["transform", "scaleX", '0'],
                ["transform", "scaleY", '0'],
                ["style", "left", '416px']
            ],
            "${_instruccion}": [
                ["color", "color", 'rgba(0,0,0,1.00)'],
                ["style", "font-weight", '400'],
                ["style", "left", '118px'],
                ["style", "width", '671px'],
                ["style", "top", '270px'],
                ["style", "height", '364px'],
                ["style", "font-family", 'cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif'],
                ["style", "font-size", '28px'],
                ["style", "opacity", '0']
            ],
            "${_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']
            ],
            "${_S_G2_U5_L6_3_inventor}": [
                ["style", "top", '329px'],
                ["transform", "scaleY", '0.9'],
                ["transform", "scaleX", '0.9'],
                ["style", "opacity", '0'],
                ["style", "left", '568px'],
                ["style", "clip", [0,778.6666870117188,535,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ]
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 1750,
            autoPlay: true,
            labels: {
                "slide_1": 0
            },
            timeline: [
                { id: "eid1305", tween: [ "style", "${_Rectangle}", "top", '265px', { fromValue: '322px'}], position: 500, duration: 750, easing: "easeOutBack" },
                { id: "eid1303", tween: [ "style", "${_instruccion}", "top", '326px', { fromValue: '270px'}], position: 500, duration: 750, easing: "easeOutBack" },
                { id: "eid1311", tween: [ "transform", "${_bt_audio}", "scaleX", '1', { fromValue: '0'}], position: 1000, duration: 750, easing: "easeOutBack" },
                { id: "eid1309", tween: [ "style", "${_instruccion}", "opacity", '1', { fromValue: '0'}], position: 500, duration: 750, easing: "easeOutBack" },
                { id: "eid1299", tween: [ "style", "${_S_G2_U5_L6_3_inventor}", "top", '223px', { fromValue: '329px'}], position: 0, duration: 750, easing: "easeOutBack" },
                { id: "eid1313", tween: [ "transform", "${_bt_audio}", "scaleY", '1', { fromValue: '0'}], position: 1000, duration: 750, easing: "easeOutBack" },
                { id: "eid1301", tween: [ "style", "${_S_G2_U5_L6_3_inventor}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 750, easing: "easeOutBack" },
                { id: "eid1307", tween: [ "style", "${_Rectangle}", "opacity", '1', { fromValue: '0'}], position: 500, duration: 750, easing: "easeOutBack" }            ]
        }
    }
},
"slide_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: true,
    content: {
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '650px'],
                ["style", "overflow", 'hidden'],
                ["style", "width", '1265px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 0,
            autoPlay: true,
            timeline: [
            ]
        }
    }
},
"Hot_Spot": {
    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', '40px', '40px', 'auto', 'auto'],
                    fill: ['rgba(255,255,255,1.00)']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '40px'],
                ["style", "width", '40px']
            ],
            "${_Rectangle}": [
                ["style", "top", '0px'],
                ["color", "background-color", 'rgba(255,255,255,0.35)'],
                ["style", "height", '40px'],
                ["style", "opacity", '0'],
                ["style", "left", '0px'],
                ["style", "width", '40px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 2000,
            autoPlay: true,
            labels: {
                "iniciar": 0,
                "loop": 2000
            },
            timeline: [
                { id: "eid694", tween: [ "color", "${_Rectangle}", "background-color", 'rgba(255,255,255,0.35)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,0.35)'}], position: 1000, duration: 0 },
                { id: "eid695", tween: [ "style", "${_Rectangle}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 1000 },
                { id: "eid696", tween: [ "style", "${_Rectangle}", "opacity", '0', { fromValue: '1'}], position: 1000, duration: 1000, easing: "easeInQuad" }            ]
        }
    }
},
"bg_defecto_simbolo": {
    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: 'bg_defecto',
                    type: 'group',
                    rect: ['0px', '0px', '1265px', '650px', 'auto', 'auto'],
                    c: [
                    {
                        rect: ['0px', '0px', '1265px', '650px', 'auto', 'auto'],
                        id: 'bg_000',
                        stroke: [0, 'rgba(255,255,255,1.00)', 'none'],
                        type: 'rect',
                        fill: ['rgba(255,255,255,1.00)']
                    },
                    {
                        font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', ''],
                        type: 'text',
                        id: 'txt_medidas',
                        text: '1265px x 650px',
                        align: 'center',
                        rect: ['519px', '304px', '211px', 'auto', 'auto', 'auto']
                    }]
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_bg_defecto}": [
                ["style", "height", '650px'],
                ["style", "top", '0px'],
                ["style", "left", '0px'],
                ["style", "width", '1265px']
            ],
            "${_bg_000}": [
                ["style", "height", '650px'],
                ["color", "border-color", 'rgba(255,255,255,1.00)'],
                ["color", "background-color", 'rgba(255,255,255,1.00)'],
                ["style", "width", '1265px']
            ],
            "${_txt_medidas}": [
                ["style", "top", '304px'],
                ["style", "left", '519px'],
                ["style", "text-align", 'center'],
                ["style", "width", '211px']
            ],
            "${symbolSelector}": [
                ["style", "height", '650px'],
                ["style", "overflow", 'hidden'],
                ["style", "width", '1265px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 0,
            autoPlay: true,
            timeline: [
            ]
        }
    }
},
"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", "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", '1px', { 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 }            ]
        }
    }
}
};


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

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