$(document).ready(function() 
{
	$('a[@rel*=lightbox]').lightBox(); 
	$('#gallery a').lightBox();
/*	//$('form input[type=text]').addClass("textfield");
	
	
    $('#guestbookform').ajaxForm(function() { 
    	alert("Thank you for your comment!"); 
    }); 
	
	var hash = window.location.hash.substr(1);
	var href = $('li a').each(function()
	{
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5))
		{
			var toLoad = 'pages.php?page='+hash+'#content';
			$('#content').load(toLoad)
		}											
	});

	$('li a').click(function()
	{							  
		var toLoad = $(this).attr('href')+' #content';
		$('#content').hide('fast',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load">LOADING...</span>');
		$('#load').fadeIn('normal');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() 
		{
			$('#content').load(toLoad,'',showNewContent())
		}
		function showNewContent() 
		{
			$('#content').show('normal',hideLoader());
		}
		function hideLoader() 
		{
			$('#load').fadeOut('normal');
		}
		
		return false;
		
	});
	
	*/
});
