
var j = jQuery.noConflict();
j(document).ready(function($){
	
    // Expand collapse Right Nav content sections
    $('#rightnavcell h5')
		.each(function(){ $(this).nextUntil('h5, h6').wrapAll('<div class="wrap"></div>'); })
		.prepend('<span></span>')
		.hover(
			function(){ $(this).addClass('hover'); },
			function(){ $(this).removeClass('hover'); })
		.click(
			function(){
				$(this).children('span').toggleClass('open');
				$(this).next('.wrap').slideToggle();
			});
    $('#rightnavcell h5:first span').addClass('open');
    $('#rightnavcell h5:first + div').slideDown('slow');
	
	
	// Wrap Navigations
	if ($('#navtop1list').length){
	    $('#navtop1list').after('<div id="navtop1div"></div>');
	} else {
	    $('img[src*=assnbanner]').wrap('<div id="navtop1div"></div>');		
	}
	$('#navtop1div').append($('#navtop1list'));

	// Remove Banner
	$('#assnbannerrow,#assnbanner2row').hide();

	// Wrap Footer
	$('#assnfootercell, #footertablecell').children().wrapAll('<div id="assnfooterdiv"></div>');
	
    // Sliding Flyouts
    $('#navtop1list, #navtop2list').addSlidingFlyouts();
    
    // Truncate Calendar Descriptions
    $('.quick-cal li').each(function(){
        $(this).children('h4').nextAll().wrap('<div class="desc"></div>');
    });

});

