/**
 * 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': '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_G03_U06_L06_03_01_01',
                type: 'image',
                rect: ['47px', '81px','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G03_U06_L06_03_01_01.png",'0px','0px']
            },
            {
                id: 'help',
                display: 'none',
                type: 'image',
                rect: ['416px', '331px','531px','249px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"help_textarea.png",'0px','0px']
            },
            {
                id: 'IL_L_G03_U06_L06_03_01_19',
                type: 'image',
                rect: ['465px', '303px','804px','387px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G03_U06_L06_03_01_19.png",'0px','0px']
            },
            {
                id: 'ninos',
                type: 'rect',
                rect: ['47', '205','auto','auto','auto', 'auto']
            },
            {
                id: 'descripcion',
                type: 'text',
                rect: ['100px', '160px','1150px','auto','auto', 'auto'],
                text: "Recuerda que a pesar de que los cuentos son historias inventadas, tratan temas que nos dejan enseñanzas para aplicar en nuestra vida diaria.  Algunos de esos temas son: ",
                align: "left",
                font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', 26, "rgba(26,26,26,1.00)", "bold", "none", "normal"]
            }],
            symbolInstances: [
            {
                id: 'ninos',
                symbolName: 'ninos'
            }
            ]
        },
    states: {
        "Base State": {
            "${_IL_L_G03_U06_L06_03_01_19}": [
                ["style", "top", '303px'],
                ["style", "opacity", '0'],
                ["style", "left", '576px']
            ],
            "${_box_01}": [
                ["color", "background-color", 'rgba(255,255,255,0.00)'],
                ["style", "border-top-left-radius", [0,0], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "border-bottom-right-radius", [0,0], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "opacity", '1'],
                ["style", "left", '34px'],
                ["style", "width", '446px'],
                ["style", "top", '226px'],
                ["style", "border-bottom-left-radius", [0,0], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "display", 'block'],
                ["style", "height", '282px'],
                ["style", "border-top-right-radius", [0,0], {valueTemplate:'@@0@@px @@1@@px'} ]
            ],
            "${_descripcion}": [
                ["style", "top", '121px'],
                ["style", "line-height", '27px'],
                ["style", "width", '1150px'],
                ["style", "opacity", '0'],
                ["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", "font-size", '26px']
            ],
            "${_ok37}": [
                ["style", "top", '177px'],
                ["style", "display", 'none'],
                ["style", "height", '20px'],
                ["style", "left", '79px'],
                ["style", "width", '20px']
            ],
            "${_IL_L_G03_U06_L06_03_01_01}": [
                ["style", "left", '47px'],
                ["style", "top", '81px']
            ],
            "${_help}": [
                ["style", "top", '331px'],
                ["style", "left", '416px'],
                ["style", "display", 'none']
            ],
            "${_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: 4750,
            autoPlay: true,
            timeline: [
                { id: "eid1037", tween: [ "style", "${_descripcion}", "top", '160px', { fromValue: '121px'}], position: 0, duration: 500, easing: "easeOutBack" },
                { id: "eid967", tween: [ "style", "${_help}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1047", tween: [ "style", "${_IL_L_G03_U06_L06_03_01_19}", "opacity", '1', { fromValue: '0'}], position: 750, duration: 500, easing: "easeOutBack" },
                { id: "eid497", tween: [ "gradient", "${_box_01}", "background-image", [270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]], { fromValue: [270,[['rgba(255,255,255,0.00)',0],['rgba(255,255,255,0.00)',100]]]}], position: 0, duration: 0 },
                { id: "eid1038", tween: [ "style", "${_descripcion}", "opacity", '1', { fromValue: '0'}], position: 0, duration: 500, easing: "easeOutBack" },
                { id: "eid888", tween: [ "style", "${_ok37}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1045", tween: [ "style", "${_IL_L_G03_U06_L06_03_01_19}", "left", '465px', { fromValue: '576px'}], position: 750, duration: 500, easing: "easeOutBack" }            ]
        }
    }
},
"bt_ayuda": {
    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: {
            dom: [
                {
                    type: 'image',
                    id: 'botones4',
                    rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                    clip: ['rect(0px 70px 70px 0px)'],
                    fill: ['rgba(0,0,0,0)', 'images/botones.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '70px'],
                ["style", "width", '70px'],
                ["style", "overflow", 'hidden']
            ],
            "${_botones4}": [
                ["style", "clip", [0,70,70,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "background-position", [-220,0], {valueTemplate:'@@0@@px @@1@@px'} ]
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "normal": 0,
                "down": 250
            },
            timeline: [
                { id: "eid1280", tween: [ "style", "${_botones4}", "background-position", [-220,0], { valueTemplate: '@@0@@px @@1@@px', fromValue: [-220,0]}], position: 0, duration: 0 },
                { id: "eid1281", tween: [ "style", "${_botones4}", "background-position", [-220,-70], { valueTemplate: '@@0@@px @@1@@px', fromValue: [-220,0]}], position: 250, duration: 0 }            ]
        }
    }
},
"bt_reiniciar": {
    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: {
            dom: [
                {
                    rect: ['0', '0', '290px', '140px', 'auto', 'auto'],
                    id: 'botones3',
                    type: 'image',
                    clip: ['rect(0px 70px 70px 0px)'],
                    fill: ['rgba(0,0,0,0)', 'images/botones.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_botones3}": [
                ["style", "clip", [0,70,70,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["style", "background-position", [-146,0], {valueTemplate:'@@0@@px @@1@@px'} ]
            ],
            "${symbolSelector}": [
                ["style", "height", '70px'],
                ["style", "width", '70px'],
                ["style", "overflow", 'hidden']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 250,
            autoPlay: false,
            labels: {
                "normal": 0,
                "down": 250
            },
            timeline: [
                { id: "eid1278", tween: [ "style", "${_botones3}", "background-position", [-146,0], { valueTemplate: '@@0@@px @@1@@px', fromValue: [-146,0]}], position: 0, duration: 0 },
                { id: "eid1279", tween: [ "style", "${_botones3}", "background-position", [-146,-70], { valueTemplate: '@@0@@px @@1@@px', fromValue: [-146,0]}], position: 250, duration: 0 }            ]
        }
    }
},
"ninos": {
    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: 'IL_L_G03_U06_L06_03_01_16',
                    type: 'image',
                    rect: ['0px', '9px', '277px', '402px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/IL_L_G03_U06_L06_03_01_16.png', '0px', '0px']
                },
                {
                    id: 'IL_L_G03_U06_L06_03_01_17',
                    type: 'image',
                    rect: ['202px', '0px', '253px', '404px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/IL_L_G03_U06_L06_03_01_17.png', '0px', '0px']
                },
                {
                    id: 'IL_L_G03_U06_L06_03_01_18',
                    type: 'image',
                    rect: ['77px', '199px', '301px', '224px', 'auto', 'auto'],
                    fill: ['rgba(0,0,0,0)', 'images/IL_L_G03_U06_L06_03_01_18.png', '0px', '0px']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${_IL_L_G03_U06_L06_03_01_17}": [
                ["style", "top", '0px'],
                ["style", "-webkit-transform-origin", [34.64,94.61], {valueTemplate:'@@0@@% @@1@@%'} ],
                ["style", "-moz-transform-origin", [34.64,94.61],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-ms-transform-origin", [34.64,94.61],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "msTransformOrigin", [34.64,94.61],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-o-transform-origin", [34.64,94.61],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "transform-origin", [34.64,94.61],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "left", '202px'],
                ["transform", "rotateZ", '0deg']
            ],
            "${_IL_L_G03_U06_L06_03_01_16}": [
                ["style", "top", '9px'],
                ["style", "-webkit-transform-origin", [62.09,89.92], {valueTemplate:'@@0@@% @@1@@%'} ],
                ["style", "-moz-transform-origin", [62.09,89.92],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-ms-transform-origin", [62.09,89.92],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "msTransformOrigin", [62.09,89.92],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "-o-transform-origin", [62.09,89.92],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "transform-origin", [62.09,89.92],{valueTemplate:'@@0@@% @@1@@%'}],
                ["style", "left", '0px'],
                ["transform", "rotateZ", '0deg']
            ],
            "${symbolSelector}": [
                ["style", "height", '423px'],
                ["style", "width", '455px']
            ],
            "${_IL_L_G03_U06_L06_03_01_18}": [
                ["style", "left", '77px'],
                ["style", "top", '199px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 4750,
            autoPlay: true,
            timeline: [
                { id: "eid1040", tween: [ "transform", "${_IL_L_G03_U06_L06_03_01_16}", "rotateZ", '-1deg', { fromValue: '0deg'}], position: 500, duration: 500 },
                { id: "eid1041", tween: [ "transform", "${_IL_L_G03_U06_L06_03_01_16}", "rotateZ", '2deg', { fromValue: '-1deg'}], position: 1500, duration: 500 },
                { id: "eid1042", tween: [ "transform", "${_IL_L_G03_U06_L06_03_01_16}", "rotateZ", '-1deg', { fromValue: '2deg'}], position: 2750, duration: 500 },
                { id: "eid1039", tween: [ "transform", "${_IL_L_G03_U06_L06_03_01_17}", "rotateZ", '2deg', { fromValue: '0deg'}], position: 0, duration: 500 },
                { id: "eid1043", tween: [ "transform", "${_IL_L_G03_U06_L06_03_01_17}", "rotateZ", '-2deg', { fromValue: '2deg'}], position: 3750, duration: 500 }            ]
        }
    }
}
};


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

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