$(document).ready(function(){
		
	//Font size tools
	$('a.font-size-normal').click(function(){
		$('body').css('font-size', '100%');
		/*$('#winners').css('height', '386px');
		$('#home-r2').css('height', '520px');*/
		return false;
	});
	
	$('a.font-size-large').click(function(){
		$('body').css('font-size', '112%');
		/*$('#winners').css('height', '450px');
		$('#home-r2').css('height', '560px');*/
		return false;
	});
	
	$('a.font-size-xl').click(function(){
		$('body').css('font-size', '130%');
		/*$('#winners').css('height', '550px');
		$('#home-r2').css('height', '620px');*/
		return false;
	});
	
	//collapsible archive menu's
	$('.winners-2006 h3.collapsible').siblings('ul').css('display', 'none');
	$('.winners-2006 h3.collapsible').click(function(){
		if ($(this).siblings('ul').is(":hidden"))
		{
			$(this).siblings('ul').slideDown();
		}
		else
		{
			$(this).siblings('ul').css('display', 'none');
		}
		return false;
	});
	
	//css mouse pointer on hover archive headings
	$('.winners-2006 h3.collapsible').hover(function(){
		$(this).css('cursor', 'pointer');
	}, function(){
		$(this).css('cursor', ' ');
	});


	$('a[class$="menu-highlight"]').parents('div:first').children('ul').css('display', 'block');
	
	styles_init();
});


function styles_init ()
{
	// add odd class to tds
	$("#content table tr:even").addClass("odd");
	
	// add column numbers to td
	$("#content table tr").each(function()
	{
		$(this).children("td").not("td td").each(function(i)
		{
			$(this).addClass("col-"+(i+1));
		});
	});
	
	// commissions table styles
	$("#content table.commissions-alternating-black-boxes tr:odd").each(function()
	{	
		$(this).find("td:odd").html("<div>"+$(this).find("td:odd").html()+"</div>");
	});
}

