AICMedia.FAQ =  {

	linkSlideTime: 200,
	textFadeTime: 200,

	initialize: function() {
		this.items = AICMedia.PageLoader.currentFrame.find('.js-faq:last .item');
		if ( this.items.length ) {
			this.items.hover($.proxy(this.onMouseEnter), $.proxy(this.onMouseLeave));
			AICMedia.PageLoader.registerOnUnload($.proxy(this.onUnload, this));
		}
	},

	onUnload: function() {
		$('.js-faq .item').unbind('mouseenter');
		$('.js-faq .item').unbind('mouseleave');
	},

	onMouseEnter: function(e) {
		var item = $(e.target).closest('.item');
		var more = item.find('.more');
		item.stop().animate({ marginTop: '65px' }, this.linkSlideTime, 'easeOutBack');
		more.stop().fadeTo(this.textFadeTime, 1);

	},

	onMouseLeave: function(e) {
		var item = $(e.target).closest('.item');
		var more = item.find('.more');
		item.stop().animate({ marginTop: '150px' }, this.linkSlideTime, 'easeInBack');
		more.stop().fadeTo(this.textFadeTime, 0, function() {
            $(this).css({display: 'none'});
        });
	}

};

