
// OnLoad
$(window).load(function() {

	$("#fadeBG").fadeTo(500, .8).fadeTo(1000,.98);

    

	$(".fader").fadeTo(1000, 1).fadeTo('slow', 0.6);	
	$(".fader2").fadeTo(1000, 0.6).fadeTo('fast', 1);	
	
	    $("#linkon").fadeTo(500, 0.8);
});







$(document).ready(function() {
	
	
	
		
	  function formatText(index, panel) {
    return index + "";
  }
  $('.anythingSlider').anythingSlider({
      easing: "easeInOutExpo",        // 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:750,             // How long the slide transition takes
      hashTags: false,                 // 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)
  });	
		
		
		
		

	$("a#single_1").fancybox();
		
	$("a#single_2").fancybox({
		'zoomOpacity'			: true,
		'overlayShow'			: false,
		'zoomSpeedIn'			: 500,
		'zoomSpeedOut'		: 500
	});
	
	$("a#single_3").fancybox({
		'overlayShow'			: false,
		'zoomSpeedIn'			: 600,
		'zoomSpeedOut'		: 500,
		'easingIn'			: 'easeOutBack',
		'easingOut'			: 'easeInBack'
	});
	
	$("a.group").fancybox({
		'hideOnContentClick': false
	});
	
	
	
	
	
	
		/////////////////////////
 	// Fader Stuff
 	
 
	$('.fader2').hover(
		  function(){
			$(this).fadeTo('fast', 0.8);
			$('#fadeBG').fadeTo('fast', .6).fadeTo('fast',.98);
					  },
		  function(){
			$(this).fadeTo('slow', 1);
		});
		
		$('.fader2').click(
		  function(){
		  	$(".fader").fadeTo(0, 1);	
		  });
		
	
$('.fader').click(
		  function(){
		  	$(".fader").fadeTo(0, 0.6);	
		  	$(this).addClass('#linkon');
		  	$(this).fadeTo(0, 1);	

		});
		
		$('.fader').hover(
		  function(){
		  	
			$(this).fadeTo('fast', 1);
			$('#fadeBG').fadeTo('fast', 0.6).fadeTo('fast',.98);
	     
	        
	        
				  },
				  
		  function(){
		  	
			$(this).fadeTo('slow', 0.6);
			$('#linkon').fadeTo('fast',1);

		});
	
	// Submit Buttons
	
	

});