/**
 * Adobe Edge: symbol definitions
 */
(function($, Edge, compId){
var symbols = {
"stage": {
   version: "0.1.3",
   baseState: "Base State",
   initialState: "Base State",
   content: {
      dom: [
        {
            id:'home',
            className:'stage_home_id',
            type:'image',
            tag:'div',
            rect:[0,0,950,223],
            fill:['rgba(0,0,0,0)','images/home.jpg']
        },
        {
            id:'retired',
            className:'stage_retired_id',
            type:'image',
            tag:'div',
            rect:[0,0,950,223],
            fill:['rgba(0,0,0,0)','images/retired.jpg']
        },
        {
            id:'couple',
            className:'stage_couple_id',
            type:'image',
            tag:'div',
            rect:[0,0,950,223],
            fill:['rgba(0,0,0,0)','images/couple.jpg']
        },
        {
            id:'loan',
            className:'stage_loan_id',
            type:'image',
            tag:'div',
            rect:[0,0,950,223],
            fill:['rgba(0,0,0,0)','images/loan.jpg']
        },
        {
            id:'generations',
            className:'stage_generations_id',
            type:'image',
            tag:'div',
            rect:[0,0,950,223],
            fill:['rgba(0,0,0,0)','images/generations.jpg']
        }],
      symbolInstances: [
      ]
   },
   states: {
      "Base State": {
         "${_retired}": [
            ["style", "opacity", '0']
         ],
         "${_home}": [
            ["style", "opacity", '0']
         ],
         "${_couple}": [
            ["style", "opacity", '0']
         ],
         "${_loan}": [
            ["style", "opacity", '0']
         ],
         "${_stage}": [
            ["color", "background-color", 'rgba(255,255,255,0.00)'],
            ["style", "overflow", 'hidden'],
            ["style", "height", '223px'],
            ["style", "width", '950px']
         ],
         "${_generations}": [
            ["style", "opacity", '1']
         ]
      }
   },
   timelines: {
      "Default Timeline": {
         fromState: "Base State",
         toState: "",
         duration: 22000,
         labels: {

         },
         timeline: [
            { id: "eid24", tween: [ "style", "${_home}", "opacity", '1', { fromValue: '0'}], position: 17000, duration: 2000 },
            { id: "eid17", tween: [ "style", "${_generations}", "opacity", '0', { fromValue: '1'}], position: 5000, duration: 2000 },
            { id: "eid28", tween: [ "style", "${_generations}", "opacity", '1', { fromValue: '0'}], position: 21000, duration: 1000 },
            { id: "eid20", tween: [ "style", "${_couple}", "opacity", '1', { fromValue: '0'}], position: 9000, duration: 2000 },
            { id: "eid21", tween: [ "style", "${_couple}", "opacity", '0', { fromValue: '1'}], position: 13000, duration: 2000 },
            { id: "eid22", tween: [ "style", "${_retired}", "opacity", '1', { fromValue: '0'}], position: 13000, duration: 2000 },
            { id: "eid23", tween: [ "style", "${_retired}", "opacity", '0', { fromValue: '1'}], position: 17000, duration: 2000 },
            { id: "eid10", tween: [ "color", "${_stage}", "background-color", 'rgba(255,255,255,0.00)', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'rgba(255,255,255,0.00)'}], position: 0, duration: 0 },
            { id: "eid15", tween: [ "style", "${_loan}", "opacity", '1', { fromValue: '0'}], position: 5000, duration: 2000 },
            { id: "eid19", tween: [ "style", "${_loan}", "opacity", '0', { fromValue: '1'}], position: 9000, duration: 2000 }]
      }
   }
}};

var comp;
Edge.registerCompositionDefn(compId, symbols);

/**
 * Adobe Edge DOM Ready Event Handler
 */
$(window).ready(function() {
     comp = new Edge.Composition(compId, {stage: "." + compId}, {});
	   /**
 * Adobe Edge Timeline Launch
 */
     comp.ready(function() {
         comp.play();
     });
});
})(jQuery, jQuery.Edge, "EDGE-29806271");

