/* -------------------------------------------------------------------
    Custom Functions ------------------------------------------------- */
    function setDisplayed(elementID) {
        $("li.secondYearLink ul").hide();
        $("#"+elementID).show();
    }

    function closeSTF(which) {
        if(which) $(which).slideUp();
        return false;
    };


/* -------------------------------------------------------------------
    jQuery: Prevent Conflict ----------------------------------------- */   
	(function($) {
		$.easing.backout = function(x, t, b, c, d) {
            var s=1.70158;
            return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
        };


    /* -------------------------------------------------------------------
        jQuery: Load Function -------------------------------------------- */   
        $.fn.loadFct = function() {

		/* -------------------------------------------------------------------
			jQuery: IE6 li:hover --------------------------------------------- */
			if ($.browser.msie && $.browser.version < 7){
			    $(".floatFirst, .floatSecond").each(function(){
				    $(this).find("li").hover(
					    function () { $(this).addClass("hover") },
					    function () { $(this).removeClass("hover") }
				    );
			    });
			};

			$(".firstYearLink > li", "#bottomRight").not('.secondYearLink').bind("click", function(){
				$('.selected', '#bottomRight').removeClass("selected");
				$('a', this).addClass("selected");
			});


		/* -------------------------------------------------------------------
			jQuery: Dock Milk Products --------------------------------------- */
			$('#containerMainMenu').Fisheye({
				maxWidth: 15,
				items: 'a',
				itemsText: 'span',
				container: '#m2',
				itemWidth: 55,
				proximity: 40,
				alignment : 'left',
				valign: 'bottom',
				halign : 'center'
			});


			return this;
		};
	})(jQuery);