$(document).ready(function() {

	$('#studentworkgall a').tooltip({ 
	    track: true, 
    	delay: 0, 
    	top: -75, 
    	left: -66, 
    	showURL: false, 
    	showBody: " - ", 
    	fade: 150 
	});


	$('.fac_thumb').click(function(){
		newimg = $(this).attr('src').replace('/small_', '/');
		$('#fullimg').attr('src', newimg);
		return false;
	});

	$('.stud_thumb').click(function(){
		newimg = $(this).attr('src').replace('/small_', '/');
		$('#fullimg').attr('src', newimg);
		return false;
	});


	$('#slideshow').cycle('fade');
 
});

$(window).load(function() {
	docheight = 127+$('#contentcontainer').height()+24;

	if(docheight<$(window).height()){
		dif = $(window).height() - docheight;
		$('#content').height(($('#content').height()+dif));
	}
});
