$textsize = 11;

$(document).ready(function()
{
	$('#content table').css('font-size', $textsize + 'px');
	$('.sub_menu').css('font-size', $textsize + 'px');
});

function toggleMenuItem($id)
{
	$item = $('#item_' + $id + '');	
	$display = $item.css('display');
	
	if($display == 'none' && $item.html() != '')
	{
		$item.show('slow');
	}
	else
	{
		$item.hide('slow');
	}
	
	loadPage('id=' + $id + '');
}

function loadPage($data)
{
	//$('#content_container').html('<img src="images/loading.gif" />');
	
	$.ajax({
		type: "GET",
		url: "xmlhttp/getcontent.xmlhttp.php",
		data: $data,
		success: function($html)
		{
			$('#content_container').html($html);
		}
	}); 
}

function toggleNewsItem($id)
{
	$item = $('#news_' + $id + '');
	
	if($item.css('display') == 'none')
	{
		$item.show('slow');
	}
	else
	{
		$item.hide('slow');
	}
}

function evalthis($eval)
{
	eval(Base64.decode($evalthis));
}	

function textBigger()
{
	$textsize++;
	
	$('#content table').css('font-size', $textsize + 'px');
	$('.sub_menu').css('font-size', $textsize + 'px');
}

function textSmaller()
{
	$textsize--;	
	
	$('#content table').css('font-size', $textsize + 'px');
	$('.sub_menu').css('font-size', $textsize + 'px');
}