$(document).ready(function() {
	// Code for dropdown navigation
	$(".nav_bg ul li ul").hide();
	$(".nav_bg ul li").hoverIntent(
		function(){
	        $(this).children('ul').slideDown('fast');
	    },
	    function(){
	       $(this).children('ul').slideUp('fast');
	    }
	);

	// Code for sidebar navigation
	$("#sidebar ul li ul li ul").hide();
	$("#sidebar ul li ul li").hoverIntent(
		function(){
	        $(this).children('ul').slideDown('fast');
	    },
	    function(){
	       $(this).children('ul').slideUp('fast');
	    }
	);
	
	// Code for sliding text on bios page(s)
	$(".stoggle").click(function () {
	    $(this).next('.sbox').slideToggle("fast");
	});

	// Code for fancybox iframe
	$(".iframe").fancybox({
		'width'				: 650,
		'height'			: 366,
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	// Toggling on and off the vids
	$("#videos .video").hide();
	$('.toggle').click(function() {
		if($(this).next('.video').is(':hidden')) {
			$('.video').hide();
			$(this).next('.video').fadeIn();	
		} else {
			$('.video').fadeOut();
		}
		
	});
		
	// get height of container white_bg and apply to left column
	 var height = $("#main").height();
	 $('#sidebar').css('height', height);
	
	
	/* 
	// Kills right click on images
	$('img').bind("contextmenu",function(e){
        return false;
    });
	*/
}); // END $(document).ready(function() {
