
        function formatText(index, panel) {
		  return index + "";
	    }

       $(document).ready(function(){
        	
        	$("a[rel*=external]").attr('target','_blank');
        	
        	// ANYTHING SLIDER SETTINGS
            $('div.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 3000,                    // 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
            });
            
            // NAVIGATION LINKS
            $("li.link-home a, h1#main-logo").click(function(){
                $('.anythingSlider').anythingSlider(1);
                return false; // stops page from jumping to the anchor tag when clicked
            });
			$("li.link-equip, p.link-equip a").click(function(){
                $('.anythingSlider').anythingSlider(2);
                return false;
            });
            $("li.link-gallery, p.link-gallery a").click(function(){
                $('.anythingSlider').anythingSlider(3);
                return false;
            });
            $("li.link-about, a.link-about").click(function(){
                $('.anythingSlider').anythingSlider(4);
                return false;
            });    
            $("li.link-contact, p.link-contact a").click(function(){
                $('.anythingSlider').anythingSlider(5);
                return false;
            }); 
            
            $("label").click(function() {
            	return false;
            });
            
			
			// FANCY BOX SETTINGS
				
			$("a#single_image").fancybox();
			/* Using custom settings */
			$("a#inline").fancybox({
				'hideOnContentClick': true
			});
			/* Apply fancybox to multiple items */
			$("a.group").fancybox({
				'transitionIn'	:	'elastic',
				'transitionOut'	:	'elastic',
				'speedIn'		:	600, 
				'speedOut'		:	200, 
				'overlayShow'	:	true,
				'overlayOpacity':	0.7,
				'overlayColor'	:   '#000'
			});

        });
   
