$(document).ready(function(){




	$('.page-item-228 a').click(function(event)
		{
		event.preventDefault();
		}
	);


	// cases submenu
	var ctime;
	
	$('.page-item-228').hover(function()
		{
		clearTimeout(ctime);
		$('#casesMenu').css({ display: 'block' });
		},function()
		{
		ctime = setTimeout("$('#casesMenu').fadeOut('fast')",500);
		}
	);
	$('#casesMenu').hover(function()
		{
		clearTimeout(ctime);
		$(this).css({ display: 'block' });
		},function()
		{
		$(this).fadeOut('fast');
		}
	);
	
	
	
	
	
	
	
	//
	
	//$('body#frontpage #title h2 a:first').addClass('current');
	//Cufon.refresh();
	
	$('body#frontpage #title h2 a').click(function(e)
		{
		e.preventDefault();
		}
	);
		
	$('body#frontpage #title h2').click(function()
		{
		var index = $('body#frontpage #title h2').index(this);
		
		$('#mainContent .post').css({ visibility: 'hidden'});
		$('#mainContent .post').eq(index).css({ visibility: 'visible'});

		$('body#frontpage #title h2 a').removeClass('current');	
		Cufon.refresh();
		$(this).children('a').addClass('current');	
		}
	);
	
	

	
	
	

});
