$(document).ready( function() {

/*
	$('.pageButton').click( function(e) {
		var thePage = this.id;
		e.preventDefault();

//		$('#content').fadeOut( 100, function() {
//			var theActualPage = thePage.substring(5,7)		
//			$.get('index.php', { page_id: theActualPage }, updateContent );
//		});

		var theActualPage = thePage.substring(5,7);
		$.get('index.php', { page_id: theActualPage }, function(data) {
				$('#theContent').html(data);						
			});
	});
*/
	
	$('ul#slideshow').fuFade({
		speed: 1000,
		timeout: 8000,
		containerheight: '400px' 
	});
	
	$('.srvLink').click( function(e) {
		e.preventDefault();
		var theID = $(this).attr('id');
		$('#srvDiv_' + theID).slideToggle();		
	});
	
	$('.srvDiv').each( function() {
		var theID = $(this).attr('name');
		$.get( 'index.php', { page_id: theID }, function(data) {
			$('#srvDiv_' + theID ).html(data);
		});
	});
	
});
