/**
 * Adobe Helium: symbol definitions
 */
window.symbols = {
"stage": {
   version: "0.1",
   baseState: "Base State",
   initialState: "Base State",
   parameters: {

   },
   content: {
      dom: [
        {
            id:'Image2',
            type:'image',
            rect:[0,0,1280,800],
            fill:['transparent'],
        },
        {
            id:'Image3',
            type:'image',
            rect:[0,0,414,237],
            fill:['rgba(0,0,0,0)','/intro/images/sofaalmo1.png'],
            transform:[[408,309]],
        },
        {
            id:'Image4',
            type:'image',
            rect:[0,0,626.31141868512,146.97577854671],
            fill:['rgba(0,0,0,0)','/intro/images/shadow.png'],
            transform:[[307.68858,504.02422]],
        },
        {
            id:'Image5',
            type:'image',
            rect:[0,0,153,153],
            fill:['rgba(0,0,0,0)','/intro/images/logomb.png'],
            transform:[[540,293],[360]],
        },
        {
            id:'Image6',
            type:'image',
            rect:[0,0,122,1],
            fill:['rgba(0,0,0,0)','/intro/images/tracofino.png'],
            transform:[[556,372]],
        },
        {
            id:'Image7',
            type:'image',
            rect:[0,0,121,2],
            fill:['rgba(0,0,0,0)','/intro/images/traco_grasso.png'],
            transform:[[556,371]],
        },
      ],
      symbolInstances: [
      ],
   },
   states: {
      "Base State": {
         "#stage": [
            ["style", "height", '800px'],
           
            ["style", "width", '1280px']
         ],
         "#Image3": [
            ["transform", "translateX", '386px'],
            ["transform", "translateY", '-301px'],
            ["transform", "rotateZ", '-18deg']
         ],
         "#Image7": [
            ["transform", "scaleX", '0'],
            ["transform", "translateX", '497px'],
            ["transform", "scaleY", '1'],
            ["transform", "translateY", '371px']
         ],
         "#Image5": [
            ["transform", "translateX", '540px'],
            ["transform", "rotateZ", '0deg'],
            ["transform", "scaleX", '0'],
            ["transform", "translateY", '293px'],
            ["transform", "scaleY", '0']
         ],
         "#Image6": [
            ["transform", "scaleX", '0'],
            ["transform", "translateX", '497px'],
            ["transform", "scaleY", '1'],
            ["transform", "translateY", '372px']
         ],
         "#Image4": [
            ["transform", "translateX", '307.68858px'],
            ["transform", "scaleY", '0'],
            ["transform", "scaleX", '0'],
            ["style", "height", '146.97577854671px'],
            ["transform", "translateY", '504.02422px'],
            ["style", "width", '626.31141868512px']
         ]
      }
   },
   actions: {

   },
   bindings: [

   ],
   timelines: {
      "Default Timeline": {
         fromState: "Base State",
         toState: "",
         duration: 3000,
         timeline: [
            { id: "eid35", tween: [ "transform", "#Image4", "scaleY", '1', { valueTemplate: undefined, fromValue: '0'}], position: 0, duration: 1000, easing: "easeOutBounce" },
            { id: "eid17", tween: [ "transform", "#Image3", "rotateZ", '1.9982986647675deg', { valueTemplate: undefined, fromValue: '-18deg'}], position: 0, duration: 591, easing: "easeOutBounce" },
            { id: "eid23", tween: [ "transform", "#Image3", "rotateZ", '6deg', { valueTemplate: undefined, fromValue: '1.9982986647675deg'}], position: 591, duration: 75, easing: "linear" },
            { id: "eid24", tween: [ "transform", "#Image3", "rotateZ", '2deg', { valueTemplate: undefined, fromValue: '6deg'}], position: 666, duration: 146, easing: "linear" },
            { id: "eid20", tween: [ "transform", "#Image3", "rotateZ", '0deg', { valueTemplate: undefined, fromValue: '2deg'}], position: 813, duration: 186, easing: "linear" },
            { id: "eid15", tween: [ "transform", "#Image3", "translateY", '363px', { valueTemplate: undefined, fromValue: '-301px'}], position: 0, duration: 1000, easing: "easeOutBounce" },
            { id: "eid69", tween: [ "transform", "#Image6", "translateY", '372px', { valueTemplate: undefined, fromValue: '372px'}], position: 1500, duration: 0, easing: "linear" },
            { id: "eid73", tween: [ "transform", "#Image6", "translateY", '372px', { valueTemplate: undefined, fromValue: '372px'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid33", tween: [ "transform", "#Image4", "scaleX", '0.81', { valueTemplate: undefined, fromValue: '0'}], position: 0, duration: 1000, easing: "easeOutBounce" },
            { id: "eid67", tween: [ "transform", "#Image6", "scaleY", '1', { valueTemplate: undefined, fromValue: '1'}], position: 1500, duration: 0, easing: "linear" },
            { id: "eid71", tween: [ "transform", "#Image6", "scaleY", '1', { valueTemplate: undefined, fromValue: '1'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid79", tween: [ "transform", "#Image6", "translateX", '556px', { valueTemplate: undefined, fromValue: '497px'}], position: 1500, duration: 500, easing: "linear" },
            { id: "eid63", tween: [ "transform", "#Image5", "scaleX", '1', { valueTemplate: undefined, fromValue: '0'}], position: 1000, duration: 500, easing: "easeOutElastic" },
            { id: "eid75", tween: [ "transform", "#Image6", "scaleX", '1', { valueTemplate: undefined, fromValue: '0'}], position: 1500, duration: 500, easing: "linear" },
            { id: "eid81", tween: [ "transform", "#Image7", "scaleY", '1', { valueTemplate: undefined, fromValue: '1'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid85", tween: [ "transform", "#Image7", "scaleY", '1', { valueTemplate: undefined, fromValue: '1'}], position: 3000, duration: 0, easing: "linear" },
            { id: "eid65", tween: [ "transform", "#Image5", "scaleY", '1', { valueTemplate: undefined, fromValue: '0'}], position: 1000, duration: 500, easing: "easeOutElastic" },
            { id: "eid19", tween: [ "transform", "#Image3", "translateX", '410px', { valueTemplate: undefined, fromValue: '386px'}], position: 0, duration: 1000, easing: "easeOutBounce" },
            { id: "eid89", tween: [ "transform", "#Image7", "scaleX", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2000, duration: 1000, easing: "linear" },
            { id: "eid91", tween: [ "transform", "#Image7", "translateX", '556px', { valueTemplate: undefined, fromValue: '497px'}], position: 2000, duration: 1000, easing: "linear" },
            { id: "eid83", tween: [ "transform", "#Image7", "translateY", '371px', { valueTemplate: undefined, fromValue: '371px'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid87", tween: [ "transform", "#Image7", "translateY", '371px', { valueTemplate: undefined, fromValue: '371px'}], position: 3000, duration: 0, easing: "linear" }]
      }
   },
}};

/**
 * Adobe Edge DOM Ready Event Handler
 */
$(window).ready(function() {
     $.Edge.initialize(symbols);
});
/**
 * Adobe Edge Timeline Launch
 */
$(window).load(function() {
    $.Edge.play();
    $.Edge.symbol.get($("#stage"))._getTimeline("Default Timeline").addObserver({ onComplete: function() {
				setTimeout(function(){
					location.href='home.php';
				},2000);      
    }});
});

