$(document).ready(function() {
		
		$("a.embed").fancybox({
		'hideOnContentClick': false,
		'frameWidth': 670, 'frameHeight':600 
	});
			$("a.summer").fancybox({
			'frameWidth': 534, 'frameHeight': 583
			});
			$("a.pop").fancybox({
			'hideOnContentClick': false,
			'frameWidth': 525, 'frameHeight': 583
			});
			$("a.youtube").fancybox({
			  'hideOnContentClick': false,
			  'frameWidth': 425, 'frameHeight': 344
			});
			$("a.fall").fancybox({
			  'hideOnContentClick': false,
			  'frameWidth': 576, 'frameHeight': 572
			});
		
			$(".toggle_container").hide();

	$("h2.trigger").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	
	$("h2.trigger").click(function(){
		$(this).next(".toggle_container").slideToggle("slow,");
	});
	$("h2.expand").click(function(){
		$(".toggle_container").show();
		});
	$("h2.collapse").click(function(){
		$(".toggle_container").hide();
		});
	$("h2.expcol").toggle(function(){
		$(".toggle_container").slideToggle("slow,").show();
		}, function() {
		$(".toggle_container").slideToggle("slow,").hide();
		});
		

		
			function addMega(){ 
				$(this).addClass("hovering"); 
			} 
	 
			function removeMega(){ 
				$(this).removeClass("hovering"); 
			} 
	var megaConfig = {
         interval: 150,
         sensitivity: 50,
         over: addMega,
         timeout: 325,
         out: removeMega
    };

    $("li.mega").hoverIntent(megaConfig)

	$("#slider").easySlider({
		auto: true,
		continuous: true 
	});

      
    });