 function formatText(index, panel) {
		  return index + "";
	    }

        $(function () {

            $('.anythingSlider').anythingSlider({
                easing: "linear",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 8000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 800,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
        		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
        		startText: "Go",                // Start text
		        stopText: "Stop",               // Stop text
		        navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
            });

         $("#lien_pub").click(function(e){
         $('.anythingSlider').anythingSlider(2);
         e.preventDefault();
         });
         
         $("#lien_corpo").click(function(e){
         $('.anythingSlider').anythingSlider(3);
         e.preventDefault();
         });
         
         $("#lien_training").click(function(e){
         $('.anythingSlider').anythingSlider(4);
         e.preventDefault();
         });
         
         $("#lien_relations").click(function(e){
         $('.anythingSlider').anythingSlider(5);
         e.preventDefault();
         });
         
         $("#lien_webtv").click(function(e){
         $('.anythingSlider').anythingSlider(6);
         e.preventDefault();
         });
         
          $("#lien_news").click(function(e){
         $('.anythingSlider').anythingSlider(2);
         e.preventDefault();
         });

         $("#lien_sport").click(function(e){
         $('.anythingSlider').anythingSlider(3);
         e.preventDefault();
         });

         $("#lien_mag").click(function(e){
         $('.anythingSlider').anythingSlider(4);
         e.preventDefault();
         });

         $("#lien_doc").click(function(e){
         $('.anythingSlider').anythingSlider(5);
         e.preventDefault();
         });
         
         $("a[rel]").overlay({
         mask: {
         color: '#000000',
         loadSpeed: 200,
         opacity: 0.6
         },
         effect: 'apple',
         onBeforeLoad: function() {
         // grab wrapper element inside content
         var wrap = this.getOverlay().find(".contentWrap");
         // load the page specified in the trigger
         wrap.load(this.getTrigger().attr("href"));

		}

	});
	
	$(".scrollable").scrollable({ vertical: true, circular: true });
	
	$("#monForm").validator();



        });


