// Create slide up/down effect for login to Basecamp
$(function() {
	$('#login').slideUp(); // Close slider
	$('#login_trigger').click(function() {
		//alert("Read and then click ok(window.parent.document.getElementById('fset').rows): "+window.parent.document.getElementById('fset').rows);
		$('#login').slideToggle('normal', function()
			{
				window.parent.document.getElementById('fset').rows=String(parseInt(105+document.getElementById('login').offsetHeight))+",*";
				//alert(parseInt(105+document.getElementById('login').offsetHeight)+",*");
				//alert(document.getElementById('login').offsetHeight);
			});
		return false;
	});
});


$(function() {
 $('ul.hover_slide li a').hover(
 	function(){$(this).find('img').animate({marginLeft:'174px'},{queue:false,duration:500});}, 
 	function(){$(this).find('img').animate({marginLeft:'0'},{queue:false,duration:500});});
});

$(document).ready(function() { 
	$("ul#course_catalog li a").fancybox({'hideOnContentClick': false});
	$("body#about #content_left p a#whole_bio").fancybox({'hideOnContentClick':false});
});

$(document).ready(function() {
	$('body#services ul#nav_sub > li').prepend('<span>Expand</span>');
	$("body#services ul#nav_sub li:not('[class*=here]') ul").slideUp();
	$('body#services ul#nav_sub li.here span').addClass('expand');
	$('body#services ul#nav_sub li span').click(function()
		{
			$(this).toggleClass("expand")
				.siblings('ul').slideToggle();
		});
	
	
});


