/**
 * Adobe Helium: symbol definitions
 */
window.symbols = {

"stage": {
   version: "0.1",
   baseState: "Base State",
   initialState: "Base State",
   parameters: {

   },
   content: {
      dom: [
        {
            id:'Image1',
            type:'image',
            rect:[0,0,532,450],
            fill:['rgba(0,0,0,0)','images/20110427_198.png']
        },
        {
            id:'Image3',
            type:'image',
            rect:[0,0,550,314],
            fill:['rgba(0,0,0,0)','images/20110427_2021.png']
        },
        {
            id:'Image4',
            type:'image',
            rect:[0,0,524,450],
            fill:['rgba(0,0,0,0)','images/20110427_87.png']
        },
        {
            id:'Image5',
            type:'image',
            rect:[0,0,600,391],
            fill:['rgba(0,0,0,0)','images/5popup.png']
        },
        {
            id:'Image6',
            type:'image',
            rect:[0,0,512,450],
            fill:['rgba(0,0,0,0)','images/20110427_18.png']
        }
      ],
      symbolInstances: [
      ]
   },
   states: {
      "Base State": {
         "#Image1": [
            ["style", "opacity", '1'],
            ["transform", "translateY", '2px'],
            ["transform", "translateX", '104px']
         ],
         "#stage": [
            ["style", "height", '460px'],
            ["style", "overflow", 'hidden'],
            ["color", "background-color", 'transparent'],
            ["style", "width", '730px']
         ],
         "#Image3": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '77px'],
            ["transform", "translateX", '104px']
         ],
         "#Image6": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '5px'],
            ["transform", "translateX", '125px']
         ],
         "#Image5": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '44px'],
            ["transform", "translateX", '89px']
         ],
         "#Image4": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '7px'],
            ["transform", "translateX", '116px']
         ]
      }
   },
   actions: {

   },
   bindings: [

   ],
   timelines: {
      "Default Timeline": {
         fromState: "Base State",
         toState: "",
         duration: 15000,
         timeline: [
            { id: "eid28", tween: [ "transform", "#Image5", "translateY", '44px', { valueTemplate: undefined, fromValue: '44px'}], position: 8000, duration: 0, easing: "linear" },
            { id: "eid2", tween: [ "style", "#stage", "height", '460px', { valueTemplate: undefined, fromValue: '460px'}], position: 0, duration: 0, easing: "linear" },
            { id: "eid34", tween: [ "transform", "#Image6", "translateY", '5px', { valueTemplate: undefined, fromValue: '5px'}], position: 11000, duration: 0, easing: "linear" },
            { id: "eid23", tween: [ "transform", "#Image4", "translateX", '116px', { valueTemplate: undefined, fromValue: '116px'}], position: 5000, duration: 0, easing: "linear" },
            { id: "eid9", tween: [ "transform", "#Image1", "translateX", '104px', { valueTemplate: undefined, fromValue: '104px'}], position: 0, duration: 0, easing: "linear" },
            { id: "eid1", tween: [ "style", "#stage", "width", '730px', { valueTemplate: undefined, fromValue: '730px'}], position: 0, duration: 0, easing: "linear" },
            { id: "eid13", tween: [ "style", "#Image1", "opacity", '0', { valueTemplate: undefined, fromValue: '1'}], position: 0, duration: 3000, easing: "linear" },
            { id: "eid42", tween: [ "style", "#Image1", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 13750, duration: 1250, easing: "linear" },
            { id: "eid10", tween: [ "transform", "#Image1", "translateY", '2px', { valueTemplate: undefined, fromValue: '2px'}], position: 0, duration: 0, easing: "linear" },
            { id: "eid30", tween: [ "style", "#Image5", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 8000, duration: 1000, easing: "linear" },
            { id: "eid31", tween: [ "style", "#Image5", "opacity", '0', { valueTemplate: undefined, fromValue: '1'}], position: 9000, duration: 2750, easing: "linear" },
            { id: "eid25", tween: [ "style", "#Image4", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 5000, duration: 1000, easing: "linear" },
            { id: "eid26", tween: [ "style", "#Image4", "opacity", '0', { valueTemplate: undefined, fromValue: '1'}], position: 6000, duration: 3000, easing: "linear" },
            { id: "eid17", tween: [ "style", "#Image3", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 2000, duration: 1000, easing: "linear" },
            { id: "eid18", tween: [ "style", "#Image3", "opacity", '0', { valueTemplate: undefined, fromValue: '1'}], position: 3000, duration: 3000, easing: "linear" },
            { id: "eid36", tween: [ "style", "#Image6", "opacity", '1', { valueTemplate: undefined, fromValue: '0'}], position: 11000, duration: 750, easing: "linear" },
            { id: "eid37", tween: [ "style", "#Image6", "opacity", '0', { valueTemplate: undefined, fromValue: '1'}], position: 11750, duration: 3250, easing: "linear" },
            { id: "eid22", tween: [ "transform", "#Image4", "translateY", '7px', { valueTemplate: undefined, fromValue: '7px'}], position: 5000, duration: 0, easing: "linear" },
            { id: "eid14", tween: [ "transform", "#Image3", "translateX", '104px', { valueTemplate: undefined, fromValue: '104px'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid32", tween: [ "transform", "#Image6", "translateX", '125px', { valueTemplate: undefined, fromValue: '125px'}], position: 11000, duration: 0, easing: "linear" },
            { id: "eid27", tween: [ "transform", "#Image5", "translateX", '89px', { valueTemplate: undefined, fromValue: '89px'}], position: 8000, duration: 0, easing: "linear" },
            { id: "eid15", tween: [ "transform", "#Image3", "translateY", '77px', { valueTemplate: undefined, fromValue: '77px'}], position: 2000, duration: 0, easing: "linear" },
            { id: "eid3", tween: [ "color", "#stage", "background-color", 'transparent', { animationColorSpace: 'RGB', valueTemplate: undefined, fromValue: 'transparent'}], position: 0, duration: 0, easing: "linear" }]
      }
   }
}};

/**
 * Adobe Edge DOM Ready Event Handler
 */
 var ieanim;
$(window).ready(function() {
	if ($.support.htmlSerialize == false) {
		ieanim = new SlideShow("stage", 'Scripts/images.php');
		$('#stage').css('marginLeft',325);
	} else {
     $.Edge.initialize(symbols);
		 $.Edge.symbol.get($("#stage"))._getTimeline("Default Timeline").addObserver({ onComplete: function() {
            $.Edge.symbol.get($("#stage")).play("Default Timeline");
        }});
			}
});
/**
 * Adobe Edge Timeline Launch
 */
$(window).load(function() {
	if ($.support.htmlSerialize == false) {
		//ieanim.play;
	} else {
    $.Edge.play();
	}
});

