/*jslint */
/*global AdobeEdge: false, window: false, document: false, console:false, alert: false */
(function (compId) {

    "use strict";
    var im='images/',
        aud='media/',
        vid='media/',
        js='js/',
        fonts = {
            'Helvetica': '',
            'cabin, sans-serif': '<script src=\"http://use.edgefonts.net/cabin:n4,i4,n7,i7,n5,i5,n6,i6:all.js\"></script>',
            '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>'        },
        opts = {
            'gAudioPreloadPreference': 'auto',
            'gVideoPreloadPreference': 'auto'
        },
        resources = [
        ],
        scripts = [
            js+"jquery-2.0.3.min.js",
            js+"EdgeCommons.js"
        ],
        symbols = {
            "stage": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "both",
                centerStage: "both",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            id: 'IL_M_G01_U03_L03_05_01_01-01',
                            type: 'image',
                            rect: ['49px', '84px', '1265px', '650px', 'auto', 'auto'],
                            fill: ["rgba(0,0,0,0)",im+"IL_M_G01_U03_L03_05_01_01-01.png",'0px','0px']
                        },
                        {
                            id: 'textCount',
                            display: 'none',
                            type: 'text',
                            rect: ['1049', '100', '227px', '42px', 'auto', 'auto'],
                            text: "0/0",
                            align: "center",
                            font: ['Arial, Helvetica, sans-serif', [24, ""], "rgba(0,0,0,1)", "normal", "none", "", "break-word", ""]
                        },
                        {
                            id: 'bt_back',
                            symbolName: 'bt_back',
                            display: 'none',
                            type: 'rect',
                            rect: ['10', '359', '70', '70', 'auto', 'auto'],
                            title: 'Anterior',
                            transform: [[],[],[],['1.28571','1.28571']]
                        },
                        {
                            id: 'bt_next',
                            symbolName: 'bt_next',
                            display: 'none',
                            type: 'rect',
                            rect: ['1286', '359', '70', '70', 'auto', 'auto'],
                            title: 'Siguiente',
                            transform: [[],[],[],['1.28571','1.28571']]
                        },
                        {
                            id: 'subcontainer',
                            type: 'rect',
                            rect: ['100px', '176px', '1150px', '426px', 'auto', 'auto'],
                            fill: ["rgba(255,255,255,0.00)"],
                            stroke: [0,"rgba(0,0,0,1)","none"]
                        },
                        {
                            id: 'descripcion',
                            type: 'text',
                            rect: ['100px', '162px', '1028px', '28px', 'auto', 'auto'],
                            text: "Completa las imágenes de cada edificación.",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [28, "px"], "rgba(26,26,26,1)", "700", "none", "normal", "break-word", ""],
                            textStyle: ["", "", "20px", ""]
                        },
                        {
                            id: 'momento',
                            display: 'none',
                            type: 'text',
                            rect: ['100px', '129px', '150', 'auto', 'auto', 'auto'],
                            text: "Actividad 1",
                            align: "left",
                            font: ['cabin, Trebuchet MS, Myriad Pro, Gill Sans MT, Helvetica, sans-serif', [22, "px"], "rgba(0,73,188,1.00)", "bold", "none", "normal", "break-word", ""]
                        }
                    ],
                    style: {
                        '${Stage}': {
                            isStage: true,
                            rect: ['null', 'null', '1366', '768', 'auto', 'auto'],
                            sizeRange: ['320px','1366px','undefined','undefined'],
                            overflow: 'hidden',
                            fill: ["rgba(255,255,255,0.00)"]
                        }
                    }
                },
                timeline: {
                    duration: 29000,
                    autoPlay: true,
                    labels: {
                        "slide_1": 0,
                        "slide_2": 1000,
                        "slide_3": 2000,
                        "slide_4": 3000,
                        "slide_5": 4000,
                        "slide_6": 5000,
                        "slide_7": 6000,
                        "slide_8": 7000,
                        "slide_9": 8000,
                        "slide_10": 9000,
                        "slide_11": 10000,
                        "slide_12": 11000,
                        "slide_13": 12000,
                        "slide_14": 13000,
                        "slide_15": 14000,
                        "slide_16": 15000,
                        "slide_17": 16000,
                        "slide_18": 17000,
                        "slide_19": 18000,
                        "slide_20": 19000,
                        "slide_21": 20000,
                        "slide_22": 21000,
                        "slide_23": 22000,
                        "slide_24": 23000,
                        "slide_25": 24000,
                        "slide_26": 25000,
                        "slide_27": 26000,
                        "slide_28": 27000,
                        "slide_29": 28000,
                        "slide_30": 29000
                    },
                    data: [
                        [
                            "eid1309",
                            "display",
                            0,
                            0,
                            "linear",
                            "${momento}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1297",
                            "display",
                            0,
                            0,
                            "linear",
                            "${bt_next}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1296",
                            "display",
                            0,
                            0,
                            "linear",
                            "${bt_back}",
                            'none',
                            'none'
                        ],
                        [
                            "eid1225",
                            "display",
                            0,
                            0,
                            "linear",
                            "${textCount}",
                            'none',
                            'none'
                        ]
                    ]
                }
            },
            "bt_next": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'nav_next',
                            rect: [0, 0, 70, 70, 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/nav.png', '-75px', '0px', '145px 145px', '70px']
                        },
                        {
                            type: 'rect',
                            rect: [0, '0px', 70, 70, 'auto', 'auto'],
                            stroke: [0, 'rgba(0,0,0,1)', 'none'],
                            id: 'hotspot_area_next',
                            opacity: '0',
                            cursor: 'pointer',
                            fill: ['rgba(192,192,192,1)']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 2000,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 1000,
                        "up": 2000
                    },
                    data: [
                        [
                            "eid1194",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${nav_next}",
                            [-75,0],
                            [-75,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1195",
                            "background-position",
                            1000,
                            0,
                            "linear",
                            "${nav_next}",
                            [-75,0],
                            [-75,-75],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1196",
                            "background-position",
                            2000,
                            0,
                            "linear",
                            "${nav_next}",
                            [-75,-75],
                            [-75,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            },
            "bt_back": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            type: 'image',
                            id: 'nav_back',
                            rect: [0, 0, 145, 145, 'auto', 'auto'],
                            clip: 'rect(0px 70px 70px 0px)',
                            fill: ['rgba(0,0,0,0)', 'images/nav.png', '0px', '0px', '145px 145px', '70px']
                        },
                        {
                            type: 'rect',
                            rect: ['0px', '0px', 70, 70, 'auto', 'auto'],
                            stroke: [0, 'rgba(0,0,0,1)', 'none'],
                            id: 'hotspot_area_back',
                            opacity: '0',
                            cursor: 'pointer',
                            fill: ['rgba(192,192,192,1)']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            rect: [null, null, 70, 70]
                        }
                    }
                },
                timeline: {
                    duration: 2000,
                    autoPlay: false,
                    labels: {
                        "normal": 0,
                        "down": 1000,
                        "up": 2000
                    },
                    data: [
                        [
                            "eid1191",
                            "background-position",
                            0,
                            0,
                            "linear",
                            "${nav_back}",
                            [0,0],
                            [0,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1190",
                            "background-position",
                            1000,
                            0,
                            "linear",
                            "${nav_back}",
                            [0,0],
                            [0,-78],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ],
                        [
                            "eid1192",
                            "background-position",
                            2000,
                            0,
                            "linear",
                            "${nav_back}",
                            [0,-78],
                            [0,0],
                            {valueTemplate: '@@0@@px @@1@@px'}
                        ]
                    ]
                }
            },
            "Hot_Spot": {
                version: "5.0.0",
                minimumCompatibleVersion: "5.0.0",
                build: "5.0.0.375",
                scaleToFit: "none",
                centerStage: "none",
                resizeInstances: false,
                content: {
                    dom: [
                        {
                            rect: [0, 0, 40, 40, 'auto', 'auto'],
                            stroke: [0, 'rgba(0,0,0,1)', 'none'],
                            id: 'Rectangle',
                            opacity: '0',
                            type: 'rect',
                            fill: ['rgba(255,255,255,0.35)']
                        }
                    ],
                    style: {
                        '${symbolSelector}': {
                            rect: [null, null, 40, 40]
                        }
                    }
                },
                timeline: {
                    duration: 2000,
                    autoPlay: true,
                    labels: {
                        "iniciar": 0,
                        "loop": 2000
                    },
                    data: [
                        [
                            "eid694",
                            "background-color",
                            1000,
                            0,
                            "linear",
                            "${Rectangle}",
                            'rgba(255,255,255,0.35)',
                            'rgba(255,255,255,0.35)'
                        ],
                        [
                            "eid695",
                            "opacity",
                            0,
                            1000,
                            "linear",
                            "${Rectangle}",
                            '0',
                            '1'
                        ],
                        [
                            "eid696",
                            "opacity",
                            1000,
                            1000,
                            "easeInQuad",
                            "${Rectangle}",
                            '1',
                            '0'
                        ]
                    ]
                }
            }
        };

    AdobeEdge.registerCompositionDefn(compId, symbols, fonts, scripts, resources, opts);

    if (!window.edge_authoring_mode) AdobeEdge.getComposition(compId).load("index_edgeActions.js");
})("EDGE-5531445");
