$( function() {
	$.FontSizer.Init( $( '#main-content' ) );

	var z = document.createElement( "div" );
 	var cb = document.createElement( "div" );
 	$( z ).addClass( "zoom buttons" );
 	$( z ).css( "width", 240 );
 	$( z ).css( "height", 50 );
 	
 	z.appendChild( createButton( 'do_text_larger', '/asset/img/text_larger.gif', ZOOM_IN ) );
 	z.appendChild( createButton( 'do_text_smaller', '/asset/img/text_smaller.gif', ZOOM_OUT ) );
 	z.appendChild( createButton( 'do_text_reset', '/asset/img/text_reset.gif', ZOOM_RESET ) );
 	
 	z.appendChild( createButton( 'do_print', '/asset/img/print.gif', LINK_PRINT ) );
 	
	$("#logo").html($(z));

 	$( "#do_print" ).unbind();  $( "#do_print" ).click( function() { window.print(); } );
 	$( "#do_text_larger" ).unbind();  $( "#do_text_larger" ).click( function() { $.FontSizer.IncreaseSize(); } );
 	$( "#do_text_smaller" ).unbind();  $( "#do_text_smaller" ).click( function() { $.FontSizer.DecreaseSize(); } );
 	$( "#do_text_reset" ).unbind();  $( "#do_text_reset" ).click( function() { $.FontSizer.Reset(); } );

	$( ".button" ).fadeIn( 5000 );
	
});


function dumpEmail( label, start, end ) 
{
	document.write( "<strong>" + label + ":<\/strong> " );
	document.write( start );
	document.write( "<img src='/asset/css/img/at.gif' alt='' /> " );
	document.write( end );
}

function createButton( id, src, title ) 
{
 	var d = document.createElement( "div" );
 	$( d ).addClass( "button" );
 	$( d ).css( "float", "right" );
	$( d ).css( "margin-right", "2px" );
 	var i = document.createElement( "img" );
 	$( i ).attr( "id", id );
 	$( i ).attr( "src", src );
 	$( i ).attr( "title", title );
 	$( i ).attr( "alt", title );
 	$( d ).css( "display", "none" );
 	
 	d.appendChild( i );
 	return d;
 	
}


