/**
 * Adobe Edge: symbol definitions
 */
(function($, Edge, compId) {
    var symbols = {
        "stage": {
            version: "0.1.3",
            baseState: "Base State",
            initialState: "Base State",
            content: {
                dom: [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
],
                symbolInstances: [
      ]
            },
            states: {
                "Base State": {
                    "${_toppromo}": [
            ["transform", "translateX", '7px'],
            ["transform", "translateY", '-43px']
         ],
                    "${_toppromo} > img:nth-child(4)": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '-330px'],
            ["transform", "translateX", '477px']
         ],
                    "${_toppromo} > img:nth-child(1)": [
            ["transform", "translateX", '0px'],
            ["transform", "translateY", '-324px'],
            ["transform", "rotateZ", '19deg']
         ],
                    "${_toppromo} > img:nth-child(2)": [
            ["style", "opacity", '0'],
            ["transform", "translateY", '-167px'],
            ["transform", "translateX", '254px']
         ],
                    "${_toppromo} > a:nth-child(4)": [
            ["transform", "translateX", '687px'],
            ["transform", "translateY", '-452px']
         ],
                    "${_toppromo} > img:nth-child(3)": [
            ["transform", "translateX", '483px'],
            ["transform", "scaleX", '1'],
            ["style", "opacity", '0'],
            ["transform", "translateY", '-178.00001px'],
            ["transform", "scaleY", '1']
         ],
                    "${_loginform}": [
            ["style", "height", '39px'],
            ["transform", "translateX", '488px'],
            ["transform", "translateY", '-435px'],
            ["style", "width", '512px']
         ]
                }
            },
            timelines: {
                "Default Timeline": {
                    fromState: "Base State",
                    toState: "",
                    duration: 1790,
                    labels: {

                },
                timeline: [
            { id: "eid37", tween: ["style", "${_toppromo} > img:nth-child(3)", "opacity", '1', { fromValue: '0'}], position: 1415, duration: 375 },
            { id: "eid23", tween: ["transform", "${_toppromo} > img:nth-child(2)", "translateX", '483px', { fromValue: '254px'}], position: 670, duration: 655, easing: "easeInOutQuad" },
            { id: "eid29", tween: ["style", "${_toppromo} > img:nth-child(2)", "opacity", '1', { fromValue: '0'}], position: 670, duration: 655 },
            { id: "eid19", tween: ["transform", "${_toppromo} > img:nth-child(1)", "translateX", '0px', { fromValue: '-0.64986px'}], position: 0, duration: 545 },
            { id: "eid43", tween: ["transform", "${_loginform}", "translateY", '-391px', { fromValue: '-435px'}], position: 2310, duration: 940 },
            { id: "eid17", tween: ["transform", "${_toppromo} > img:nth-child(1)", "rotateZ", '0deg', { fromValue: '19deg'}], position: 0, duration: 545 },
            { id: "eid15", tween: ["transform", "${_toppromo} > img:nth-child(1)", "translateY", '20px', { fromValue: '-324px'}], position: 0, duration: 545}]
            }
        }
    }
};

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() {
     if ($.browser.msie && (parseInt($.browser.version, 10) == 7||parseInt($.browser.version, 10) == 8)) {
         $('#toppromo').removeAttr('style');
         var arrID = $('#toppromo').find('img').map(function() {
             $(this).removeAttr('style');
         });

         $('#img1').attr('style', 'position:absolute;top:40px;left:10px;');
         $('#img2').attr('style', 'position:absolute;top:100px;left:450px;');
         $('#img3').attr('style', 'position:absolute;top:175px;left:450px;');

     }  
        else
        {comp.play();}        
    });
});
})(jQuery, jQuery.Edge, "EDGE-27919861");

