/** Javascript code to over write presentation */

/**This allows us to hide dynamic content so we don't get a flicker before
the content switches out.  To use, assign a class of 'hidden' to the content 
you want to hide.  With JS turned off, the content will be present.  With JS
turned on, the content will hide until your JS event turns it back on**/
$('HTML').addClass("jsHidden");

$(function() { /** document ready function */

	/** remove the last border from the left navigation */
	$("#left-navigation li:last").css("border","0px");
		
	/** roundboxes */
	$('.roundbox').wrap(
		'<div class="btnouter">'+ 
			'<div class="btncontent btn">'+
			'</div>'+
		'</div>');
	
	$('div.btncontent').prepend(
		'<div class="btnt btn"></div>')
	$('div.btnouter').append(
		'<div class="btnb btn">'+
		'	<div class="btn"></div>'+
		'</div>');
	$('.roundbox').css({ backgroundColor:'transparent' });
	$('.btn_account a').css({ backgroundColor:'transparent' });
	

	$('div.cornered').corner("5px");
	$('div.cornered_with_parent').corner("5px").parent().css('padding', '1px').corner("7px");
	$('div.cornered_top').corner("top 5px");
	$('div.cornered_btm').corner("bottom 5px");
	//end rounded corners
	
	/**For the home page marketing tile */
	$('.tile-content').css({ borderColor:'#FFF', borderWidth:'0px 1px', cursor:'pointer' })
	$('.tile-content').wrap('<div class="tile-main"></div>');
	//prepend the top and append the bottom divs for the rounded corners and drop shadows
	$('.tile-main').before('<div class="tile-top"></div>').after('<div class="tile-btm"></div>');

	/** custom font sizing **/
	fontResizer('63%','76%','100%');	
    
});

//applies alternating rows to tables
function zebraTable () {
	$('table.sortable tr:odd').addClass('odd');
	$('table.sortable tr:even').addClass('even');
}
