$(document).ready(function()
{
	$('div.content img').each(function()
	{
		var _this = $(this);
		switch (_this.attr('align'))
		{
			case 'left':
				_this.addClass('imageLeft');
			break;
			
			case 'right':
				_this.addClass('imageRight');
			break;
			
			default:
				_this.addClass('image');
			break;
		}
	});
			
	$('#navigation > li:not(.divider)').hover(function()
	{
		var _this = $(this);
		_this.addClass('hover');
		var _id = _this.attr('id').replace('nav','sub');
		$('#'+_id).show();
		
	},
	function()
	{
		var _this = $(this);
		_this.removeClass('hover');
		var _id = _this.attr('id').replace('nav','sub');
		$('#'+_id).hide();
	});
});
