$( function() {
/*
	var viewMore =
		$(document.createElement( 'A' ))
		.text( 'View More' )
		.attr( { 'href': '#', 'className': 'read-more' } )
		.click( function( e ) {
			e.preventDefault();
			$(this)
			.fadeOut( 'slow', function() {
				$(this).remove();
				$('#fold-wrapper').css( { 'overflow': 'visible' } );
			} );
		} )
		.hide();
	$('body:not(.EditMode, .DesignMode) #form1')
	.wrap(
		$(document.createElement( 'DIV' ))
		.attr( { 'id': 'fold-wrapper' } )
	)
	.after( viewMore );

	$(window)
	.resize( function() {
		if( $('#fold-wrapper').height() < $('#form1').outerHeight() ) viewMore.fadeIn( 'slow' );
		else viewMore.fadeOut( 'slow' );
	} )
	.load( function() {
		$(this).resize();
	} )
	.resize();
*/
	$('img[src$="HorizontalDots907.aspx"]').attr( { 'align': '' } ).css( { 'display': 'block', 'clear': 'both' } );
	$('.header-holder ul li a').wrapInner( '<span><span></span></span>' );
	$('.collapsible-heading > *:last-child:not(br)')
	.add( $('.collapsible-heading > br:last-child').prev() )
	.each( function() {
		$(this).after(
			$(document.createElement('A'))
			.text( '[+]' )
			.attr( { 'href': '#', 'className': 'expand-link' } )
			.toggle( function( e ) {
				e.preventDefault();
				$(this)
				.text( '[-]' )
				.parent().next().slideDown( 'slow' );
			}, function( e ) {
				e.preventDefault();
				$(this)
				.text( '[+]' )
				.parent().next().slideUp( 'slow' );
			} )
		)
		.parent().next().hide();
	} );
	$('#Username')
	.focus( function() { if( $(this).val() == $(this).data( 'default value' ) ) $(this).val( '' ); } )
	.blur( function() { if( !$(this).val() ) $(this).val( $(this).data( 'default value' ) ); } )
	.data( 'default value', $('#Username').val() );
} );