$(document).ready(function() {

    //qtip init
    $('#socialBar img').qtip({
        content: {
            attr: 'title'
        },
        position: {
            my: 'right center',
            at: 'left center',
            target: 'event',
            effect: function(api, pos, viewport) {
                // "this" refers to the tooltip
                $(this).animate(pos, {
                    duration: 600,
                    queue: true
                });
            }
        },
        style: {
            top: 0,
            left: 0,
            classes: 'ui-tooltip-light ui-tooltip-shadow ui-tooltip-rounded'
        }
    });

		
    $('div.logoContainer img').qtip({
        content: {
            attr: 'title'
        },
        position: {
            my: 'bottom center',
            at: 'top center',
            target: 'event',
            effect: function(api, pos, viewport) {
                // "this" refers to the tooltip
                $(this).animate(pos, {
                    duration: 600,
                    queue: true
                });
            }
        },
        style: {
            top: 0,
            left: 0,
            classes: 'ui-tooltip-light ui-tooltip-rounded'
        }
    });
		
		
		

    //carousel init
    $("#carousel").carouFredSel({
        items: 1,
        direction: "up",
				pagination : {
				container : "#carousel_pag",
					onAfter : function(oldItems, newItems) {
					oldItems.find("> div").hide();
					newItems.find("> div").slideDown();
				}
			},
        scroll: {
            duration: 600,
            pauseDuration: 8000,
            delay: 400,
            pauseOnHover: true,
            easing: "easeInOutQuad"
        },
        auto: {
            onAfter: function(oldItems, newItems) {
                oldItems.find("> div").hide();
                newItems.find("> div").slideDown();
            }
        }
    }).find(".slide:first > div").show();
				
});
