/**
 * 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: 'L_G02_U02_L04_03_bg',
                type: 'image',
                rect: ['49px', '81px','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"L_G02_U02_L04_03_bg.jpg",'0px','0px']
            },
            {
                id: 'L_G02_U02_L04_03_bg_photos',
                type: 'image',
                rect: ['93px', '214px','1186px','510px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"L_G02_U02_L04_03_bg_photos.png",'0px','0px']
            },
            {
                id: 'L_G02_U02_L04_03_img1',
                type: 'image',
                rect: ['128px', '259px','394px','249px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"L_G02_U02_L04_03_img1.png",'0px','0px'],
                transform: [[],['-10']]
            },
            {
                id: 'L_G02_U02_L04_03_img2',
                type: 'image',
                rect: ['850px', '241px','396px','247px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"L_G02_U02_L04_03_img2.png",'0px','0px'],
                transform: [[],['-2']]
            },
            {
                id: 'L_G02_U02_L04_03_img3',
                type: 'image',
                rect: ['482px', '445px','397px','248px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"L_G02_U02_L04_03_img3.png",'0px','0px'],
                transform: [[],['5']]
            },
            {
                id: 'textCount',
                display: 'none',
                type: 'text',
                rect: ['1049px', '100px','227px','42px','auto', 'auto'],
                text: "0/0",
                align: "center",
                font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 24, "rgba(0,0,0,1)", "normal", "none", ""]
            },
            {
                id: 'descripcion',
                type: 'text',
                rect: ['100px', '165px','1150px','auto','auto', 'auto'],
                text: "Escucha el relato de viaje de cada postal. Luego, selecciona una.<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: 'instruccion',
                display: 'none',
                type: 'text',
                rect: ['100px', '203px','1150px','auto','auto', 'auto'],
                text: "Lorem ipsum dolor sit amet, consectetur",
                align: "left",
                font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 26, "rgba(102,102,102,1.00)", "400", "none", "normal"]
            },
            {
                id: 'bt_audio',
                type: 'rect',
                rect: ['100px', '364px','auto','auto','auto', 'auto'],
                title: 'Audio01'
            },
            {
                id: 'bt_audioCopy',
                type: 'rect',
                rect: ['443px', '524px','auto','auto','auto', 'auto'],
                title: 'Audio03'
            },
            {
                id: 'bt_audioCopy2',
                type: 'rect',
                rect: ['824px', '316px','auto','auto','auto', 'auto'],
                title: 'Audio02'
            },
            {
                id: 'Audio01',
                display: 'none',
                type: 'audio',
                tag: 'audio',
                rect: ['846', '853','320px','45px','auto', 'auto'],
                source: ['media/L_G02_U02_L04_03_03_A01.mp3'],
                preload: 'auto'
            },
            {
                id: 'Audio02',
                display: 'none',
                type: 'audio',
                tag: 'audio',
                rect: ['977', '843','320px','45px','auto', 'auto'],
                source: ['media/L_G02_U02_L04_03_03_A02.mp3'],
                preload: 'auto'
            },
            {
                id: 'Audio03',
                display: 'none',
                type: 'audio',
                tag: 'audio',
                rect: ['1109', '844','320px','45px','auto', 'auto'],
                source: ['media/L_G02_U02_L04_03_03_A03.mp3'],
                preload: 'auto'
            }],
            symbolInstances: [
            {
                id: 'bt_audio',
                symbolName: 'bt_audio'
            },
            {
                id: 'bt_audioCopy',
                symbolName: 'bt_audio'
            },
            {
                id: 'bt_audioCopy2',
                symbolName: 'bt_audio'
            }
            ]
        },
    states: {
        "Base State": {
            "${_bt_audioCopy2}": [
                ["style", "top", '316px'],
                ["transform", "scaleY", '0'],
                ["style", "left", '824px'],
                ["transform", "scaleX", '0']
            ],
            "${_L_G02_U02_L04_03_img2}": [
                ["style", "top", '208px'],
                ["style", "opacity", '0'],
                ["style", "left", '850px'],
                ["transform", "rotateZ", '-2deg']
            ],
            "${_label}": [
                ["style", "top", '0px'],
                ["style", "display", 'none'],
                ["style", "overflow", 'hidden'],
                ["style", "height", '768px'],
                ["style", "opacity", '1'],
                ["style", "left", '0px'],
                ["style", "width", '1366px']
            ],
            "${_instruccion}": [
                ["style", "top", '203px'],
                ["style", "display", 'none'],
                ["style", "width", '1150px'],
                ["style", "font-weight", '400'],
                ["color", "color", 'rgba(102,102,102,1)'],
                ["style", "font-family", 'cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif'],
                ["style", "left", '100px'],
                ["style", "font-size", '26px']
            ],
            "${_textCount}": [
                ["style", "display", 'none'],
                ["style", "top", '100px'],
                ["style", "left", '1049px'],
                ["style", "text-align", 'center']
            ],
            "${_bt_audio}": [
                ["style", "top", '364px'],
                ["transform", "scaleY", '0'],
                ["style", "left", '100px'],
                ["transform", "scaleX", '0']
            ],
            "${_L_G02_U02_L04_03_img1}": [
                ["style", "top", '226px'],
                ["style", "opacity", '0'],
                ["style", "left", '128px'],
                ["transform", "rotateZ", '-10deg']
            ],
            "${_L_G02_U02_L04_03_img3}": [
                ["style", "top", '412px'],
                ["style", "opacity", '0'],
                ["style", "left", '482px'],
                ["transform", "rotateZ", '5deg']
            ],
            "${_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']
            ],
            "${_L_G02_U02_L04_03_bg_photos}": [
                ["style", "top", '391px'],
                ["style", "opacity", '0'],
                ["style", "left", '90px']
            ],
            "${_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']
            ],
            "${_L_G02_U02_L04_03_bg}": [
                ["style", "left", '49px'],
                ["style", "top", '81px']
            ],
            "${_bt_audioCopy}": [
                ["style", "top", '524px'],
                ["transform", "scaleY", '0'],
                ["style", "left", '443px'],
                ["transform", "scaleX", '0']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 2500,
            autoPlay: true,
            labels: {
                "slide_1": 0
            },
            timeline: [
                { id: "eid1298", tween: [ "style", "${_L_G02_U02_L04_03_bg_photos}", "left", '93px', { fromValue: '90px'}], position: 0, duration: 750, easing: "easeOutBack" },
                { id: "eid1312", tween: [ "style", "${_L_G02_U02_L04_03_img2}", "opacity", '1', { fromValue: '0'}], position: 500, duration: 750, easing: "easeOutBack" },
                { id: "eid1310", tween: [ "style", "${_L_G02_U02_L04_03_img1}", "opacity", '1', { fromValue: '0'}], position: 250, duration: 750, easing: "easeOutBack" },
                { id: "eid1324", tween: [ "transform", "${_bt_audioCopy2}", "scaleX", '1', { fromValue: '0'}], position: 1250, duration: 750, easing: "easeOutBack" },
                { id: "eid1304", tween: [ "style", "${_L_G02_U02_L04_03_img1}", "top", '259px', { fromValue: '226px'}], position: 250, duration: 750, easing: "easeOutBack" },
                { id: "eid1300", tween: [ "style", "${_L_G02_U02_L04_03_bg_photos}", "top", '214px', { fromValue: '391px'}], position: 0, duration: 750, easing: "easeOutBack" },
                { id: "eid1320", tween: [ "transform", "${_bt_audioCopy}", "scaleX", '1', { fromValue: '0'}], position: 1500, duration: 750, easing: "easeOutBack" },
                { id: "eid1306", tween: [ "style", "${_L_G02_U02_L04_03_img2}", "top", '241px', { fromValue: '208px'}], position: 500, duration: 750, easing: "easeOutBack" },
                { id: "eid1316", tween: [ "transform", "${_bt_audio}", "scaleX", '1', { fromValue: '0'}], position: 1750, duration: 750, easing: "easeOutBack" },
                { id: "eid1326", tween: [ "transform", "${_bt_audioCopy2}", "scaleY", '1', { fromValue: '0'}], position: 1250, duration: 750, easing: "easeOutBack" },
                { id: "eid1225", tween: [ "style", "${_textCount}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1318", tween: [ "transform", "${_bt_audio}", "scaleY", '1', { fromValue: '0'}], position: 1750, duration: 750, easing: "easeOutBack" },
                { id: "eid1302", tween: [ "style", "${_L_G02_U02_L04_03_bg_photos}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 750, easing: "easeOutBack" },
                { id: "eid1322", tween: [ "transform", "${_bt_audioCopy}", "scaleY", '1', { fromValue: '0'}], position: 1500, duration: 750, easing: "easeOutBack" },
                { id: "eid1314", tween: [ "style", "${_L_G02_U02_L04_03_img3}", "opacity", '1', { fromValue: '0'}], position: 750, duration: 750, easing: "easeOutBack" },
                { id: "eid1308", tween: [ "style", "${_L_G02_U02_L04_03_img3}", "top", '445px', { fromValue: '412px'}], position: 750, duration: 750, easing: "easeOutBack" },
                { id: "eid1296", tween: [ "style", "${_instruccion}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 }            ]
        }
    }
},
"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)']
                    },
                    {
                        type: 'text',
                        rect: ['519px', '304px', '211px', 'auto', 'auto', 'auto'],
                        id: 'txt_medidas',
                        text: '1265px x 650px',
                        align: 'center',
                        font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 24, 'rgba(0,0,0,1)', 'normal', 'none', '']
                    }]
                }
            ],
            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: [
                {
                    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", "clip", [0,90,90,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "height", '180px'],
                ["style", "left", '0px'],
                ["style", "background-position", [0,5], {valueTemplate:'@@0@@px @@1@@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", '1px', { 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-5531445");
